Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WHU-China
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
WHU-China
Commits
01739d9a
Commit
01739d9a
authored
6 months ago
by
raven233
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.igem.org:2024/whu-china
parents
2a694823
479cc1d0
No related branches found
No related tags found
No related merge requests found
Pipeline
#525469
passed
6 months ago
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
static/wxy.js
+35
-29
35 additions, 29 deletions
static/wxy.js
wiki/menu.html
+1
-1
1 addition, 1 deletion
wiki/menu.html
wiki/pages/attributions.html
+6
-0
6 additions, 0 deletions
wiki/pages/attributions.html
wiki/pages/team.html
+2
-4
2 additions, 4 deletions
wiki/pages/team.html
with
44 additions
and
34 deletions
static/wxy.js
+
35
−
29
View file @
01739d9a
...
...
@@ -9,6 +9,29 @@ function closeLoading() {
}
window
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
// 响应式;
const
responsive
=
function
()
{
var
container1_first
=
document
.
querySelector
(
"
.container1
"
);
var
title_ratio
=
container1_first
.
offsetWidth
/
1530
;
var
title_container
=
document
.
querySelector
(
"
.til
"
);
title_container
.
style
.
setProperty
(
"
transform
"
,
`scale(
${
title_ratio
}
)`
);
console
.
log
(
"
我请问呢兄弟你到底运行没
"
);
}
responsive
();
window
.
addEventListener
(
"
resize
"
,
responsive
());
// 响应式结束
// Enlarged Fig Module
const
figs
=
document
.
querySelectorAll
(
"
.enlargeable
"
);
const
img_container
=
document
.
getElementById
(
"
enlarged-photo-bg
"
);
...
...
@@ -36,20 +59,6 @@ img_container.onclick = function() {
},
500
);
};
// 调整导航栏和正文顶端的对齐
const
elevator
=
document
.
querySelector
(
"
.elevator
"
);
const
first_col
=
document
.
querySelector
(
"
.col-lg-9
"
);
const
function1
=
function
()
{
var
ele_h
=
elevator
.
offsetHeight
;
console
.
log
(
ele_h
);
console
.
log
(
first_col
);
first_col
.
style
.
setProperty
(
"
margin-top
"
,
`-
${
ele_h
+
80
}
px`
);
}
function1
();
window
.
addEventListener
(
"
resize
"
,
function1
());
// 弹窗关闭
const
support_btn
=
document
.
getElementById
(
"
warning-button
"
);
...
...
@@ -67,21 +76,6 @@ img_container.onclick = function() {
// 响应式;
const
responsive
=
function
()
{
const
container1_first
=
document
.
querySelector
(
"
.container1
"
);
const
title_ratio
=
container1_first
.
offsetWidth
/
1530
;
const
title_container
=
document
.
querySelector
(
"
.til
"
);
title_container
.
style
.
setProperty
(
"
transform
"
,
`scale(
${
title_ratio
}
)`
);
}
responsive
();
window
.
addEventListener
(
"
resize
"
,
responsive
());
// 响应式结束
...
...
@@ -109,6 +103,18 @@ for (q = 0; q < fold_button.length; q++){
// 调整导航栏和正文顶端的对齐
const
elevator
=
document
.
querySelector
(
"
.elevator
"
);
const
first_col
=
document
.
querySelector
(
"
.col-lg-9
"
);
const
function1
=
function
()
{
var
ele_h
=
elevator
.
offsetHeight
;
console
.
log
(
ele_h
);
console
.
log
(
first_col
);
first_col
.
style
.
setProperty
(
"
margin-top
"
,
`-
${
ele_h
+
80
}
px`
);
}
function1
();
window
.
addEventListener
(
"
resize
"
,
function1
());
})
This diff is collapsed.
Click to expand it.
wiki/menu.html
+
1
−
1
View file @
01739d9a
...
...
@@ -111,7 +111,7 @@
<!-- -->
<div
class=
"menu-column"
>
<div
class=
"menu-column"
style=
"display: none;"
>
<div
class=
"menu-icon-container"
>
<img
class=
"pict51"
style=
"width:100%;height: auto;left:-10%;top:10%;"
src=
"https://static.igem.wiki/teams/5048/awardslogo3.png"
>
<!-- <img class="pict52" src="https://static.igem.wiki/teams/5048/awardslogo1.png" > -->
...
...
This diff is collapsed.
Click to expand it.
wiki/pages/attributions.html
+
6
−
0
View file @
01739d9a
...
...
@@ -18,6 +18,8 @@
<img
class=
"tilt"
style=
"margin-left:400px;margin-top:300px;height: 160px;"
src=
"https://static.igem.wiki/teams/5048/attributions.png"
>
</div>
<div
class=
"col-lg-9"
>
<div
class=
"row mt-4"
>
<script
type=
"text/javascript"
>
// Listen to size change and update form height
...
...
@@ -41,4 +43,8 @@
</div>
</div>
<script
src=
"{{ url_for('static', filename = 'wxy.js') }}"
></script>
{% endblock %}
This diff is collapsed.
Click to expand it.
wiki/pages/team.html
+
2
−
4
View file @
01739d9a
...
...
@@ -4,7 +4,6 @@
{% block lead %}On this page you can introduce your team members, instructors, and advisors.{% endblock %}
{% block page_content %}
<body>
<!--以下是正文-->
<div
class=
"container1"
>
<div
class=
"til"
style=
"margin-bottom: 0px;"
>
...
...
@@ -17,7 +16,7 @@
<img
class=
"teama7"
src=
"https://static.igem.wiki/teams/5048/awardslogo1.png"
>
<img
class=
"teama8"
src=
"https://static.igem.wiki/teams/5048/awardslogo2.png"
>
</div>
<div
><h3
class=
"text-551"
style=
"position: relative;width:100%;text-align: center;margin-left: auto;
<div><h3
class=
"text-551"
style=
"position: relative;width:100%;text-align: center;margin-left: auto;
"
>
Meet our team!
</h3></div>
<div
class=
"col-lg-91"
>
<div
class=
"f1"
>
...
...
@@ -167,6 +166,5 @@
</div>
</div>
</body>
<script
src=
"{{ url_for('static', filename = 'wxy.js') }}"
></script>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment