Maddiewu123 (Talk | contribs) |
Galaxydud3 (Talk | contribs) |
||
Line 170: | Line 170: | ||
<div id="big_header"> | <div id="big_header"> | ||
− | <img src="https://static.igem.org/mediawiki/2021/ | + | <img src="https://static.igem.org/mediawiki/2021/f/f2/T--LINKS_China--bigimg_communication.png" style="position: absolute; top: 17vw; left: 22vw; width: 56vw;"> |
− | <img src="https://static.igem.org/mediawiki/2021/ | + | <img src="https://static.igem.org/mediawiki/2021/f/fa/T--LINKS_China--descriptionplace_darkpurple.jpg" style="position: absolute; top:12vw; left: 22.5vw; width: 55vw;"> |
</div> | </div> | ||
Line 424: | Line 424: | ||
@media only screen and (min-device-width: 768px) { | @media only screen and (min-device-width: 768px) { | ||
#sidebar_and_texts { | #sidebar_and_texts { | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 526: | Line 522: | ||
@media only screen and (max-device-width: 768px) { | @media only screen and (max-device-width: 768px) { | ||
#sidebar_and_texts { | #sidebar_and_texts { | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
#sidebar { | #sidebar { | ||
− | display: | + | display: none; |
border: 0px solid #600136; | border: 0px solid #600136; | ||
} | } | ||
Line 574: | Line 566: | ||
.section-nav{ | .section-nav{ | ||
− | display: | + | display: none; |
background-color: #FFFFFF; | background-color: #FFFFFF; | ||
} | } | ||
Line 638: | Line 630: | ||
letter-spacing: 0.6px; | letter-spacing: 0.6px; | ||
text-shadow: 2px 2px 5px #C0C0C0; | text-shadow: 2px 2px 5px #C0C0C0; | ||
+ | margin-left: 4.5vw; | ||
+ | margin-right: 4.5vw; | ||
} | } | ||
Line 656: | Line 650: | ||
border-radius: 24px; | border-radius: 24px; | ||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); | ||
− | margin-left: | + | margin-left: 4.5vw; |
− | margin-right: | + | margin-right: 4.5vw; |
} | } | ||
Line 765: | Line 759: | ||
border-radius: 24px; | border-radius: 24px; | ||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); | ||
− | margin-left: | + | margin-left: 4.5vw; |
− | margin-right: | + | margin-right: 4.5vw; |
font-family: "LatoLight"; | font-family: "LatoLight"; | ||
} | } | ||
Line 781: | Line 775: | ||
font-family: "LatoLight"; | font-family: "LatoLight"; | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | #show_on_click1, #show_on_click2, #show_on_click3, #show_on_click4, #show_on_click5{ | ||
+ | display:none; | ||
+ | transition: all 0.5s !important; | ||
+ | } | ||
+ | |||
+ | .show{ | ||
+ | display:block !important; | ||
+ | transition: all 0.5s !important; | ||
+ | } | ||
+ | |||
+ | |||
+ | .show_buttons{ | ||
+ | color: grey; | ||
+ | font-family: "Lato"; | ||
+ | cursor: pointer; | ||
+ | border: none; | ||
+ | font-size: 1.5vw; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
Line 786: | Line 804: | ||
/*--------------------------------------MAIN BACKGROUND------------------------------------------*/ | /*--------------------------------------MAIN BACKGROUND------------------------------------------*/ | ||
#main_content{ | #main_content{ | ||
− | background-image: url(https://static.igem.org/mediawiki/2021/ | + | background-image: url(https://static.igem.org/mediawiki/2021/e/e8/T--LINKS_China--background_darkpurple.png); |
background-attachment:scroll; | background-attachment:scroll; | ||
background-repeat: repeat; | background-repeat: repeat; | ||
Line 945: | Line 963: | ||
z-index: 100; | z-index: 100; | ||
transition: top 0.3s; /* Transition effect when sliding down (and up) */ | transition: top 0.3s; /* Transition effect when sliding down (and up) */ | ||
+ | top:-100px; | ||
} | } | ||
Line 1,028: | Line 1,047: | ||
− | |||
<script> | <script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var prevScrollpos = window.pageYOffset; | var prevScrollpos = window.pageYOffset; | ||
window.onscroll = function() { | window.onscroll = function() { | ||
Line 1,094: | Line 1,053: | ||
if (prevScrollpos > currentScrollPos) { | if (prevScrollpos > currentScrollPos) { | ||
document.getElementById("outnav").style.top = "17px"; | document.getElementById("outnav").style.top = "17px"; | ||
− | |||
} else { | } else { | ||
document.getElementById("outnav").style.top = "-100px"; | document.getElementById("outnav").style.top = "-100px"; | ||
− | |||
} | } | ||
prevScrollpos = currentScrollPos; | prevScrollpos = currentScrollPos; | ||
Line 1,105: | Line 1,062: | ||
+ | function myFunction1() { | ||
+ | var element = document.getElementById("show_on_click1"); | ||
+ | element.classList.toggle("show"); | ||
+ | } | ||
+ | function myFunction2() { | ||
+ | var element = document.getElementById("show_on_click2"); | ||
+ | element.classList.toggle("show"); | ||
+ | } | ||
− | + | function myFunction3() { | |
+ | var element = document.getElementById("show_on_click3"); | ||
+ | element.classList.toggle("show"); | ||
+ | } | ||
− | + | function myFunction4() { | |
− | + | var element = document.getElementById("show_on_click4"); | |
− | + | element.classList.toggle("show"); | |
− | + | } | |
− | + | ||
− | + | function myFunction5() { | |
− | + | var element = document.getElementById("show_on_click5"); | |
− | + | element.classList.toggle("show"); | |
− | + | } | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> | ||
+ | |||
</html> | </html> |
Revision as of 00:17, 22 October 2021
![](https://static.igem.org/mediawiki/2021/f/f2/T--LINKS_China--bigimg_communication.png)
![](https://static.igem.org/mediawiki/2021/f/fa/T--LINKS_China--descriptionplace_darkpurple.jpg)