BambooPanda (Talk | contribs) |
BambooPanda (Talk | contribs) (Undo revision 403838 by BambooPanda (talk)) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
− | + | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
− | + | <meta charset="utf-8"> | |
− | + | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
− | </ | + | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,400i"> |
+ | <link rel="icon" href="https://static.igem.org/mediawiki/2018/2/2a/T--NUS_Singapore-A--TeamLogo.png"> | ||
+ | <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | ||
+ | </head> | ||
<style> | <style> | ||
/***************************************************** DEFAULT WIKI SETTINGS ***************************************/ | /***************************************************** DEFAULT WIKI SETTINGS ***************************************/ | ||
Line 56: | Line 56: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | /***************************************** W3.CSS Style change **************************************/ | ||
.w3-bar .w3-button { | .w3-bar .w3-button { | ||
padding: 16px; | padding: 16px; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 353: | Line 294: | ||
} | } | ||
+ | |||
+ | /************************************************** Back to top button style **************************************************/ | ||
+ | |||
+ | #BacktoTopBtn { | ||
+ | display: none; | ||
+ | position: fixed; | ||
+ | bottom: 3px; | ||
+ | right: 10px; | ||
+ | z-index: 99; | ||
+ | border: none; | ||
+ | outline: none; | ||
+ | background-color: #F5B041; | ||
+ | color: white; | ||
+ | cursor: pointer; | ||
+ | padding: 5px; | ||
+ | border-radius: 20px; | ||
+ | } | ||
+ | |||
+ | #BacktoTopBtn:hover { | ||
+ | background-color: #2980B9; | ||
+ | } | ||
+ | |||
+ | } | ||
</style> | </style> | ||
+ | |||
+ | |||
Line 396: | Line 362: | ||
} | } | ||
} | } | ||
+ | |||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
</script> | </script> | ||
+ | </head> | ||
+ | |||
+ | |||
+ | |||
+ | <!--******************************** Here is where the main content starts ************************************--> | ||
<body> | <body> | ||
+ | <!-------------------------------------START OF NAV BAR HTML------------------------------------------------------> | ||
+ | |||
<div class="nusgem_mail">CONNECT WITH US</div> | <div class="nusgem_mail">CONNECT WITH US</div> | ||
<div class="outer-border bg-primary"> | <div class="outer-border bg-primary"> | ||
− | |||
<div class="w3-hide-small"> | <div class="w3-hide-small"> | ||
− | + | <a href="https://www.instagram.com/nusgem2018/"><i class="fa fa-instagram instalogo"></i></a> | |
− | + | <a href="https://www.facebook.com/NUSGEM2018/"><i class="fa fa-facebook fblogo"></i></a> | |
− | + | <a href="mailto:nusigem@gmail.com"><i class="fa fa-envelope maillogo"></i></a> | |
</div> | </div> | ||
<div class="inner-border" style="background-image: none;"> | <div class="inner-border" style="background-image: none;"> | ||
− | + | <div style="text-align:center;"><a href="https://2018.igem.org/Team:NUS_Singapore-A"><img class='nus-logo' src='https://static.igem.org/mediawiki/2018/2/2a/T--NUS_Singapore-A--TeamLogo.png' alt='nus logo'></a> | |
− | + | ||
− | + | ||
− | + | ||
− | <div style="text-align:center | + | |
</div> | </div> | ||
+ | |||
+ | <div class="nav" id="myNav"> | ||
+ | |||
+ | <div class="dropdown"> | ||
+ | <button class="dropbtn"><a href="https://2018.igem.org/Team:NUS_Singapore-A" style="text-decoration: none; color: black;">HOME</a></button></div> | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn">PROJECT</button> | |
− | + | <div class="dropdown-content"> | |
− | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Description">Description</a> | |
− | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Design">Design</a> | |
− | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Results">Results</a> | |
− | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Demonstrate">Demonstrate</a> | |
− | + | ||
− | + | ||
− | <div class=" | + | |
− | <button class=" | + | |
− | <div class=" | + | |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Description | + | |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Design | + | |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Results | + | |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Demonstrate | + | |
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdown"> | |
− | <div class=" | + | <button class="dropbtn">LAB</button> |
− | <button class=" | + | <div class="dropdown-content"> |
− | <div class=" | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Notebook">Notebook</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Notebook | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Safety">Safety</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Safety | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/InterLab">InterLab Study</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/InterLab | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Measurement">Measurement</a> |
− | <a href=" | + | |
</div> | </div> | ||
</div> | </div> | ||
− | <div class=" | + | <div class="dropdown"> |
− | <button class=" | + | <button class="dropbtn">PARTS</button> |
− | <div class=" | + | <div class="dropdown-content"> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Part_Collection | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Part_Collection">Parts Overview</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Composite_Part | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Composite_Part">Composite Parts</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Improve | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Improve">Improved Parts</a> |
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn">MODELLING</button> | |
− | <div class=" | + | <div class="dropdown-content"> |
− | <button class=" | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model">Modelling</a> |
− | <div class=" | + | <!-- <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model/Data">Data</a> --> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | ||
− | <div class=" | + | <div class="dropdown"> |
− | <button class=" | + | <button class="dropbtn">HARDWARE</button> |
− | <div class=" | + | <div class="dropdown-content"> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware">Overview</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/PDF-LA!">PDF-LA!</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/Sensor">Light Wait - 2-in-1 Sensor</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/Pump">Light Wait - Peristaltic Pump</a> |
− | <a href="https://2018.igem.org/Team:NUS_Singapore-A/ | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/CoJar">Light Wait - Fermentation Chamber</a> |
− | + | ||
</div> | </div> | ||
</div> | </div> | ||
− | |||
− | |||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn">HUMAN PRACTICES</button> | |
− | + | <div class="dropdown-content"> | |
− | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Human_Practices">Integrated Human Practices</a> | |
− | </div> | + | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Public_Engagement">Education & Public Engagement</a> |
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Collaborative_Report">Collaborative Report</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="dropdown"> | ||
+ | <button class="dropbtn">TEAM</button> | ||
+ | <div class="dropdown-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Team">Members</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Supervisors">Supervisors</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Sponsors">Sponsors</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Attributions">Attributions</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Collaborations">Collaborations</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Gallery">Gallery</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="dropdown"> | ||
+ | <button class="dropbtn">AWARDS</button> | ||
+ | <div class="dropdown-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Medals">Medals</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a> | ||
+ | </div> | ||
</div> | </div> | ||
− | <!-- | + | <!----------------------------------------SCRIPT FOR STICKY NAV BAR-------------------------------------------------> |
− | + | <script> | |
− | + | ||
− | + | var yourNavigation = $(".nav"); | |
− | + | stickyDiv = "sticky"; | |
− | + | yourHeader = $('.logo').height()+120; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | $(window).scroll(function() { | |
− | + | if( $(this).scrollTop() > yourHeader ) { | |
− | + | yourNavigation.addClass(stickyDiv); | |
− | + | } else { | |
− | + | yourNavigation.removeClass(stickyDiv); | |
− | + | } | |
− | + | }); | |
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */ | |
+ | function myFunction() { | ||
+ | var x = document.getElementById("myNav"); | ||
+ | if (x.className === "nav") { | ||
+ | x.className += " responsive"; | ||
+ | } else { | ||
+ | x.className = "nav"; | ||
+ | } | ||
+ | } | ||
− | + | </script> | |
− | + | <!------------------------------------END OF SCRIPT FOR STICKY NAV BAR-----------------------------------------------> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <!------------------------------------------END OF NAV BAR HTML------------------------------------------------------> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | + | <!--****************************************** Back to top button ***********************************************--> |
− | + | <button onclick="topFunction()" id="BacktoTopBtn" title="Go to top">Back to Top</button> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | // | + | <script> |
− | + | //**************************************** Back to top button Javascript ****************************************// | |
+ | // When the user scrolls down 50px from the top of the document, show the button | ||
+ | window.onscroll = function() {scrollFunction()}; | ||
− | function | + | function scrollFunction() { |
− | if ( | + | if (document.body.scrollTop > 500 || document.documentElement.scrollTop > 500) { |
− | + | document.getElementById("BacktoTopBtn").style.display = "block"; | |
} else { | } else { | ||
− | + | document.getElementById("BacktoTopBtn").style.display = "none"; | |
} | } | ||
} | } | ||
− | // | + | // When the user clicks on the button, scroll to the top of the document |
− | function | + | function topFunction() { |
− | + | document.body.scrollTop = 0; | |
+ | document.documentElement.scrollTop = 0; | ||
} | } | ||
</script> | </script> | ||
+ | |||
+ | </body> | ||
+ | |||
</html> | </html> |
Revision as of 09:27, 17 October 2018
CONNECT WITH US