Skip to content
Snippets Groups Projects
Commit 01739d9a authored by raven233's avatar raven233
Browse files

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
......@@ -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());
})
......@@ -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" > -->
......
......@@ -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 %}
......@@ -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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment