Line 1: | Line 1: | ||
− | {{TAS Taipei/CSS2}} | + | {{TAS Taipei/CSS2}} {{TAS Taipei/Bootstrap}} {{TAS Taipei/BootstrapJS}} |
<html lang="en"> | <html lang="en"> | ||
Line 20: | Line 20: | ||
<body> | <body> | ||
− | <div class=" | + | <div class="return"> |
− | <div class="box2" id="project" | + | <h1>X</h1> |
− | < | + | </div> |
− | < | + | <div class="yellow"> |
− | + | <div class="box right"> | |
− | </ | + | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Background" id="project"> |
− | </ | + | <img src="https://static.igem.org/mediawiki/2017/9/92/Project.png" id="dna"> |
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Experimental_Summary" id="experiment"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/9/9c/Exp.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Model" id="modeling"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/3/3c/Modeling.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Prototype" id="prototype"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/3/31/Prototype.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Human_Practices" id="policy"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/5/55/Hp2.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Safety" id="biosafety"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/b/b9/Biosafety.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Team" id="about"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/a/a3/About_us1.png" id="dna"> | ||
+ | </div> | ||
+ | <div class="box2 right" href="https://2017.igem.org/Team:TAS_Taipei/Attributions" id="acknowledgments"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/8/8d/Attributions.png" id="dna"> | ||
+ | </div> | ||
</div> | </div> | ||
− | <div class=" | + | <div class="blue"> |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Background" id="project"> | |
− | + | <h1>Project</h1> | |
− | + | </div> | |
− | < | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Experimental_Summary" id="experiment"> |
− | + | <h1>Experiment</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Model" id="modeling"> | |
− | + | <h1>Modeling</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Prototype" id="prototype"> | |
− | + | <h1>Prototype</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Human_Practices" id="policy"> | |
− | + | <h1>Human Practice</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://static.igem.org/mediawiki/2017/b/b9/Biosafety.png" id="biosafety"> | |
− | + | <h1>Biosafety</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Team" id="about"> | |
− | + | <h1>About Us</h1> | |
− | + | </div> | |
− | + | <div class="box3 left" href="https://2017.igem.org/Team:TAS_Taipei/Attributions" id="acknowledgments"> | |
− | < | + | <h1>Attributions</h1> |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | </ | + | |
</div> | </div> | ||
</div> | </div> | ||
<box class="home"> | <box class="home"> | ||
− | <img src="https://static.igem.org/mediawiki/2017/ | + | <img src="https://static.igem.org/mediawiki/2017/0/0d/5home.svg" alt="Home" id="home" onclick="location.href='https://2017.igem.org/Team:TAS_Taipei';" style="cursor: pointer;"> |
</box> | </box> | ||
+ | <!--全版面大型看板開始--> | ||
+ | <div class="jumbotron"> | ||
+ | <div class="container"> | ||
+ | <h1>Biosafety</h1> | ||
+ | <h4>It’s not only what happens in the lab, but also what happens in our community.</h4> | ||
+ | </div> | ||
+ | </div> | ||
+ | <!--全版面大型看板結尾--> | ||
<div class="cv"> | <div class="cv"> | ||
<!-- header --> | <!-- header --> | ||
Line 344: | Line 353: | ||
</section> | </section> | ||
</div> | </div> | ||
+ | <script> | ||
+ | $(function() { | ||
+ | $('.yellow').removeClass('active'); | ||
+ | $('.yellow').mouseenter(function() { | ||
+ | var windowsize = $(window).width(); | ||
+ | if (windowsize > 1020) { | ||
+ | //if the window is greater than 1020px wide then hover | ||
+ | $('.yellow').addClass('active'); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | $('.yellow').mouseleave(function() { | ||
+ | var windowsize = $(window).width(); | ||
+ | if (windowsize > 1020) { | ||
+ | //if the window is greater than 1020px wide then hover | ||
+ | $('.yellow').removeClass('active'); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | |||
+ | $('.box2').click(function() { | ||
+ | var windowsize = $(window).width(); | ||
+ | if (windowsize < 1020) { | ||
+ | //if the window is less than 1020px wide then turn on click for mobile. | ||
+ | if ($('.yellow').hasClass('active')) { | ||
+ | window.location = $(this).attr('href'); | ||
+ | } else { | ||
+ | $('.yellow').addClass('active'); | ||
+ | $('.return').addClass('active'); | ||
+ | $('.home').addClass('deactive'); | ||
+ | } | ||
+ | } else { | ||
+ | window.location = $(this).attr('href'); | ||
+ | } | ||
+ | |||
+ | }) | ||
+ | |||
+ | $('.box3').click(function() { | ||
+ | var windowsize = $(window).width(); | ||
+ | if (windowsize < 1020) { | ||
+ | //if the window is less than 1020px wide then turn on click for mobile. | ||
+ | if ($('.yellow').hasClass('active')) { | ||
+ | window.location = $(this).attr('href'); | ||
+ | } else { | ||
+ | $('.yellow').addClass('active'); | ||
+ | $('.return').addClass('active'); | ||
+ | $('.home').addClass('deactive'); | ||
+ | } | ||
+ | } else { | ||
+ | window.location = $(this).attr('href'); | ||
+ | } | ||
+ | }) | ||
+ | |||
+ | $('.return').click(function() { | ||
+ | $('.yellow').removeClass('active'); | ||
+ | $('.return').removeClass('active'); | ||
+ | $('.home').removeClass('deactive'); | ||
+ | }) | ||
+ | |||
+ | $('.cv').click(function() { | ||
+ | $('.yellow').removeClass('active'); | ||
+ | $('.return').removeClass('active'); | ||
+ | $('.home').removeClass('deactive'); | ||
+ | }) | ||
+ | }) | ||
+ | |||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 08:17, 28 June 2017