(54 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
<title>Template:2018_NAU-CHINA</title> | <title>Template:2018_NAU-CHINA</title> | ||
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:NAU-CHINA/MainCSS&action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:NAU-CHINA/MainCSS&action=raw&ctype=text/css" /> | ||
+ | <script> | ||
+ | $(document).ready(function () { | ||
+ | var icon1 = $('#icon1'); | ||
+ | var icon2 = $('#icon2'); | ||
+ | var icon3 = $('#icon3'); | ||
+ | var icon4 = $('#icon4'); | ||
+ | setInterval(function() { | ||
+ | var h = $(window).scrollTop(); | ||
+ | var H = $(document).height(); | ||
+ | if (h < 500) { | ||
+ | if (h >= 200) { | ||
+ | icon1.animate({ left: '1.6vw' }, 800); | ||
+ | icon1.animate({ top: '30vh' }, 500); | ||
+ | icon2.animate({ left: '1.6vw' }, 800); | ||
+ | icon2.animate({ top: '45vh' }, 500); | ||
+ | |||
+ | icon3.animate({ left: '1.6vw' }, 800); | ||
+ | icon3.animate({ top: '60vh' }, 500); | ||
+ | |||
+ | icon4.animate({ left: '1.6vw' }, 800); | ||
+ | icon4.animate({ top: '75vh' }, 500); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if (H - h <= 1000) { | ||
+ | icon1.animate({ top: '80vh' }, 500); | ||
+ | icon1.animate({ left: '35vw' }, 800); | ||
+ | |||
+ | icon2.animate({ top: '80vh' }, 500); | ||
+ | icon2.animate({ left: '45vw' }, 800); | ||
+ | |||
+ | icon3.animate({ top: '80vh' }, 500); | ||
+ | icon3.animate({ left: '55vw' }, 800); | ||
+ | |||
+ | icon4.animate({ left: '5vw' }, 800); | ||
+ | icon4.animate({ top: '65vh' }, 500); | ||
+ | } | ||
+ | |||
+ | }, 10); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
<style> | <style> | ||
#icon1 { | #icon1 { | ||
− | top: | + | top: 60vh; |
left: 35vw; | left: 35vw; | ||
} | } | ||
#icon2 { | #icon2 { | ||
− | top: | + | top: 60vh; |
left: 45vw; | left: 45vw; | ||
} | } | ||
#icon3 { | #icon3 { | ||
− | top: | + | top: 60vh; |
left: 55vw; | left: 55vw; | ||
+ | } | ||
+ | #icon4 { | ||
+ | top: 60vh; | ||
+ | left: 65vw; | ||
} | } | ||
@keyframes toSide { | @keyframes toSide { | ||
Line 33: | Line 79: | ||
.guide-icon { | .guide-icon { | ||
− | width: | + | width: 80px; |
position: fixed; | position: fixed; | ||
+ | z-index:999; | ||
+ | background-color:rgba(245,245,245,0.5); | ||
+ | border-radius:10%; | ||
} | } | ||
+ | |||
/*==========================Global===============================*/ | /*==========================Global===============================*/ | ||
Line 44: | Line 94: | ||
#mw-content-text { | #mw-content-text { | ||
margin: 60px 0 0 0; | margin: 60px 0 0 0; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 57: | Line 103: | ||
margin:0 !important; | margin:0 !important; | ||
position: absolute !important; | position: absolute !important; | ||
+ | font-family:sans-serif !important; | ||
font-size: 9vw !important; | font-size: 9vw !important; | ||
− | |||
top:42vh !important; | top:42vh !important; | ||
left:9vw !important; | left:9vw !important; | ||
Line 67: | Line 113: | ||
font-size: 4vw !important; | font-size: 4vw !important; | ||
color: #000000 !important; | color: #000000 !important; | ||
− | top: | + | top:72vh !important; |
left:27vw !important; | left:27vw !important; | ||
} | } | ||
Line 78: | Line 124: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
− | z-index: | + | z-index: 99999999; |
background: url("https://static.igem.org/mediawiki/2018/0/0c/T--NAU-CHINA--loading_icon.gif") no-repeat black; | background: url("https://static.igem.org/mediawiki/2018/0/0c/T--NAU-CHINA--loading_icon.gif") no-repeat black; | ||
background-position: left 50% top 30%; | background-position: left 50% top 30%; | ||
Line 108: | Line 154: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
/*小图标移动放大*/ | /*小图标移动放大*/ | ||
Line 129: | Line 170: | ||
.main-content { | .main-content { | ||
− | margin:0 | + | margin:0 14%; |
text-align:justify; | text-align:justify; | ||
} | } | ||
− | + | ||
− | + | figure { | |
− | margin: | + | margin-top:15px !important; |
+ | margin-bottom:30px !important; | ||
} | } | ||
+ | |||
figure img { | figure img { | ||
display: block; | display: block; | ||
margin:15px auto 15px auto; | margin:15px auto 15px auto; | ||
/*width:800px;*/ | /*width:800px;*/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
figcaption { | figcaption { | ||
− | + | text-align: justify; | |
− | text-align: | + | |
font-family: 'Times New Roman','sans-serif'; | font-family: 'Times New Roman','sans-serif'; | ||
+ | font-size:0.9em; | ||
+ | line-height:1.2em; | ||
+ | |||
} | } | ||
._table { | ._table { | ||
Line 169: | Line 208: | ||
font-size:48px; | font-size:48px; | ||
font-weight:bold !important; | font-weight:bold !important; | ||
+ | line-height:60px !important; | ||
} | } | ||
Line 175: | Line 215: | ||
margin:19px 0 !important; | margin:19px 0 !important; | ||
font-weight:bold !important; | font-weight:bold !important; | ||
+ | line-height:30px !important; | ||
} | } | ||
− | |||
− | |||
− | |||
.main-content p { | .main-content p { | ||
font-family: 'Avenir Light','Helvetica',sans-serif !important; | font-family: 'Avenir Light','Helvetica',sans-serif !important; | ||
− | + | font-size: 20px !important; | |
− | line-height:2em; | + | line-height: 1.7em; |
+ | text-align: justify !important; | ||
+ | margin-bottom: 2em; | ||
+ | |||
} | } | ||
− | . | + | .main-content a { |
− | + | color:blue !important; | |
− | + | ||
− | + | ||
} | } | ||
+ | .photo { | ||
+ | width:100%; | ||
+ | margin:0 auto; | ||
+ | } | ||
+ | .hp-photo { | ||
+ | width:700px; | ||
+ | margin:0 15%; | ||
+ | } | ||
+ | .divvideo,video { | ||
+ | text-align:center; | ||
+ | |||
+ | } | ||
</style> | </style> | ||
Line 209: | Line 260: | ||
var lp = $("#loading_icon span").width() | var lp = $("#loading_icon span").width() | ||
//Loading Icon | //Loading Icon | ||
− | $("#loading_icon").fadeOut( | + | $("#loading_icon").fadeOut(2000); //Aply: 2000,Debug: 1 |
Line 231: | Line 282: | ||
<body> | <body> | ||
<div id="loading_icon"> | <div id="loading_icon"> | ||
− | <span>MOSFET</span> | + | <!--<span>MOSFET</span>--> |
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 01:03, 9 November 2018