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'); | ||
+ | setInterval(function() { | ||
+ | var h = $(window).scrollTop(); | ||
+ | var H = $(document).height(); | ||
+ | if (h < 500) { | ||
+ | if (h >= 200) { | ||
+ | icon1.animate({ left: '5vw' }, 800); | ||
+ | icon1.animate({ top: '30vh' }, 500); | ||
+ | icon2.animate({ left: '5vw' }, 800); | ||
+ | icon2.animate({ top: '40vh' }, 500); | ||
+ | |||
+ | icon3.animate({ left: '5vw' }, 800); | ||
+ | icon3.animate({ top: '50vh' }, 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); | ||
+ | } | ||
+ | |||
+ | }, 10); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
Revision as of 10:37, 17 October 2018
MOSFET