Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
<html> | <html> | ||
− | |||
<head> | <head> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | <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"> | ||
</head> | </head> | ||
+ | <style> | ||
+ | /***************************************************** DEFAULT WIKI SETTINGS ***************************************/ | ||
+ | /* Clear the default wiki settings */ | ||
+ | |||
+ | #home_logo, #sideMenu { display:none; } | ||
+ | #sideMenu, #top_title, .patrollink {display:none;} | ||
+ | #content { width:100%; padding:0px; margin-top:-7px; margin-left:0px;} | ||
+ | body {background-color:white; } | ||
+ | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; } | ||
+ | |||
+ | /**************************************************************** MENU ***********************************************/ | ||
− | + | /**** Class for splitting different section = Clear content below while adds extra spacing when clearing content ****/ | |
− | + | .clear { | |
+ | clear:both; | ||
+ | height: 50px; | ||
+ | } | ||
+ | .clear-largespace{ | ||
+ | clear:both; | ||
+ | height: 100px; | ||
+ | } | ||
− | // | + | /************************************************** Back to top button style ****************************************/ |
− | + | #BacktoTopBtn { | |
+ | display: none; | ||
+ | position: fixed; | ||
+ | bottom: 20px; | ||
+ | right: 50px; | ||
+ | z-index: 99; | ||
+ | border: none; | ||
+ | outline: none; | ||
+ | background-color: #F5B041; | ||
+ | color: white; | ||
+ | cursor: pointer; | ||
+ | padding: 15px; | ||
+ | border-radius: 20px; | ||
+ | } | ||
− | + | #BacktoTopBtn:hover { | |
− | + | background-color: #2980B9; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | . | + | |
− | + | /***************************************** Top menu and Dropdown list **************************************/ | |
− | + | ||
− | font-size: | + | /* The outer border wraps the content outside of the box */ |
− | font- | + | .outer-border{ |
+ | max-width: 100%; | ||
+ | height: auto; | ||
+ | margin: 0px; | ||
+ | padding: 35px; | ||
+ | } | ||
+ | |||
+ | /*This controls the 'Connect with us' that is rotated on the left side*/ | ||
+ | .nusgem_mail{ | ||
+ | font-family: "Montserrat"; | ||
+ | font-size: .9em; | ||
+ | letter-spacing: .275em; | ||
+ | font-weight: 100; | ||
+ | width: auto; | ||
+ | height: auto; | ||
+ | -ms-transform: rotate(270deg); | ||
+ | -webkit-transform: rotate(270deg); | ||
+ | transform: rotate(270deg); | ||
+ | transform-origin: left 0; | ||
+ | position: fixed; | ||
+ | top: 400px; | ||
+ | left: 12px; | ||
+ | } | ||
+ | /* The inner border contains the nav bar, header and whatever content is in the page....I NEED TO USE THIS CLASS FOR EVERY DIV AS AN OVERALL PAGE WRAPPER*/ | ||
+ | .inner-border{ | ||
+ | border-left: 2px solid black; | ||
+ | border-right: 2px solid black; | ||
+ | max-width: 100%; | ||
+ | height: auto; | ||
+ | margin: 5px 5px -10px 5px; | ||
text-align: center; | text-align: center; | ||
− | + | /*background-color: white;*/ | |
} | } | ||
− | . | + | |
+ | .content-wrapper{ | ||
+ | max-width: 90%; | ||
+ | position: relative; | ||
+ | margin: auto; | ||
+ | } | ||
+ | |||
+ | /* The NUSIGEM logo, no background-color added*/ | ||
+ | .nus-logo{ | ||
+ | max-width: 100%; | ||
+ | height: 150px; | ||
+ | width: 150px; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* The wrapper for the nav menu*/ | ||
+ | .nav { | ||
width: 100%; | width: 100%; | ||
+ | height: 60px; | ||
+ | /*padding-top: 1em;*/ | ||
+ | /* This color means white and slightly transparent */ | ||
+ | background-color: rgba(255, 255, 255, 0.82); | ||
+ | font-family: "Montserrat"; | ||
+ | font-weight: 400; | ||
+ | letter-spacing: .1em; | ||
+ | text-align: center; | ||
+ | position: relative; | ||
+ | z-index: 3; | ||
} | } | ||
− | . | + | |
− | + | /* the dropdwn class is given to any button which require a dropdown menu...which is all*/ | |
− | + | .nav .dropdwn{ | |
− | + | display: inline-block; | |
+ | overflow: hidden; | ||
+ | height: 100%; | ||
} | } | ||
− | + | ||
− | + | /* The dropdwn-content class contains the hidden content (sub-menu) */ | |
− | + | .nav .dropdwn .dropdwn-content{ | |
− | width: | + | display: none; |
+ | position: absolute; | ||
+ | /*Change this to change the color of the background that houses the dropdown menu content. The last number affects the opacity of the color*/ | ||
+ | background-color: rgba(255, 255, 255, 0.9); | ||
+ | text-align: left; | ||
+ | max-width: 250px; | ||
+ | z-index: 3; | ||
} | } | ||
− | . | + | /* This configures the main button (Project, Hardware, Team, blah blah) */ |
− | + | ||
− | + | .nav .dropdwn button{ | |
− | + | font-family: "Montserrat"; | |
+ | font-weight: 400; | ||
+ | font-size: 1.1em; | ||
+ | letter-spacing: 0.2em; | ||
+ | margin: auto 10px; | ||
+ | padding: 10px 5px; | ||
+ | height: 100%; | ||
+ | border: none; | ||
+ | outline: none; | ||
+ | background-color: transparent; | ||
+ | display: flex; | ||
} | } | ||
− | . | + | /* This styles the links within the dropdwn-content */ |
− | + | .nav .dropdwn .dropdwn-content a{ | |
− | + | float: none; | |
− | width: | + | padding: 5px; auto; |
+ | margin: auto auto; | ||
+ | text-decoration: none; | ||
+ | color: black; | ||
+ | display: block; | ||
+ | min-width: inherit; | ||
+ | font-size: 1.1em; | ||
+ | font-family: "Montserrat"; | ||
+ | font-weight: 400; | ||
+ | letter-spacing: 0.2em; | ||
} | } | ||
− | + | ||
− | + | /* Add the hover colors and the reveal of the menu */ | |
− | + | .dropdwn:hover { | |
− | + | background-color: #dddddd; | |
} | } | ||
− | . | + | .dropdwn:hover .dropdwn-content { |
− | + | display: block; | |
− | + | } | |
− | + | .dropdwn-content a:hover{ | |
+ | background-color: #dddddd; | ||
} | } | ||
+ | /* A sticky class cause this fking mediawiki doesn't have one */ | ||
+ | .sticky{ | ||
+ | position: fixed; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | } | ||
− | + | /* Hide the link that should open and close the topnav on small screens */ | |
+ | .topnav .icon { | ||
+ | display: none; | ||
+ | } | ||
− | + | /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */ | |
− | + | @media screen and (max-width: 600px) { | |
+ | .nav a:not(:first-child), .dropdown .dropdwn button { | ||
+ | display: none; | ||
+ | } | ||
+ | .nav a.icon { | ||
+ | float: right; | ||
+ | display: block; | ||
+ | } | ||
+ | } | ||
− | + | /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ | |
+ | @media screen and (max-width: 600px) { | ||
+ | .nav.responsive {position: relative;} | ||
+ | .nav.responsive a.icon { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | top: 0; | ||
+ | } | ||
+ | .dropdwn-content.responsive a { | ||
+ | float: none; | ||
+ | display: block; | ||
+ | text-align: left; | ||
+ | } | ||
+ | .nav.responsive .dropdwn {float: none;} | ||
+ | .nav.responsive .dropdwn-content {position: relative;} | ||
+ | .nav.responsive .dropdwn .dropdwn button { | ||
+ | display: block; | ||
+ | width: 100%; | ||
+ | text-align: left; | ||
+ | } | ||
+ | } | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* Positioning and sizing of the social media icons */ | |
+ | .instalogo{ | ||
+ | position: fixed; | ||
+ | top: 75px; | ||
+ | left: 10px; | ||
+ | font-size: 2.0em !important; | ||
+ | color: #1e1e1e; | ||
+ | } | ||
+ | .instalogo:hover{ | ||
+ | color: #3d4d6d; | ||
+ | } | ||
+ | .fblogo{ | ||
+ | position: fixed; | ||
+ | top: 115px; | ||
+ | left: 15px; | ||
+ | font-size: 1.5em !important; | ||
+ | color: #1e1e1e; | ||
+ | } | ||
+ | .fblogo:hover{ | ||
+ | color: #3d4d6d; | ||
+ | } | ||
+ | .maillogo{ | ||
+ | position: fixed; | ||
+ | top: 150px; | ||
+ | left: 10px; | ||
+ | font-size: 1.5em !important; | ||
+ | color: #1e1e1e; | ||
+ | } | ||
+ | .maillogo:hover{ | ||
+ | color: #3d4d6d; | ||
+ | } | ||
+ | |||
+ | |||
+ | /*********** Change of Background Color *************/ | ||
+ | .bg-primary { | ||
+ | background-image: url("https://static.igem.org/mediawiki/2018/0/04/T--NUS_Singapore-A--Wiki_theme5.jpg"); | ||
+ | background-size: 100% 100%; | ||
+ | color: black; | ||
+ | } | ||
+ | |||
+ | |||
+ | /*Responsive Design*/ | ||
+ | /********************* Responsive Design *********************/ | ||
+ | |||
+ | /* | ||
+ | ##Device = Tablets, Ipads (landscape) | ||
+ | ##Screen = B/w 768px to 1024px | ||
+ | */ | ||
+ | |||
+ | @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { | ||
− | + | } | |
− | + | ||
+ | /* | ||
+ | ##Device = Most of the Smartphones Mobiles (Portrait) | ||
+ | ##Screen = B/w 320px to 479px | ||
+ | ##Device = Tablets, Ipads (portrait) | ||
+ | ##Screen = B/w 768px to 1024px | ||
+ | */ | ||
− | + | @media (min-width: 0px) and (max-width: 1024px) { | |
+ | /* | ||
+ | /*Basics*/ | ||
+ | p { | ||
+ | font-size: 13px; | ||
+ | } | ||
+ | .dropdown .dropbtn { | ||
+ | font-size: 18px; | ||
+ | padding: 7px 4px; | ||
+ | font-weight:1000; | ||
+ | display: inline-block; | ||
+ | } | ||
+ | */ | ||
+ | .dropdown-content { | ||
+ | min-width: 10px; | ||
+ | box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.2); | ||
+ | } | ||
− | + | .dropdown-content a{ | |
− | + | padding: 8px; | |
+ | } | ||
+ | /************************************************** 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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | + | <script> |
+ | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
− | + | $(document).ready(function() { | |
+ | $("#HQ_page").attr('id',''); | ||
+ | |||
− | + | //highlight current page on the menu | |
− | + | highlight_current_page_menu(); | |
+ | |||
+ | //accessing submenus | ||
+ | $(".menu_item").click(function(){ | ||
+ | $(".submenu_control_icon", this).toggleClass("open"); | ||
+ | $(this).next(".submenu").fadeToggle(400); | ||
+ | }); | ||
+ | |||
+ | //mobile menu access | ||
+ | $(".igem_2018_team_mobile_bar").click(function(){ | ||
+ | $(this).next().toggleClass("displaying_menu"); | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | function highlight_current_page_menu() { | ||
+ | |||
+ | var page_url="https://2018.igem.org/"; | ||
+ | page_url = page_url + wgPageName; | ||
+ | $("a[href$='"+ page_url +"']").children().addClass("current_page"); | ||
+ | |||
+ | //if the page is in a submenu, open the submenu and make the appropiate changes | ||
+ | if( $( ".current_page" ).hasClass( "submenu_item" )){ | ||
+ | |||
+ | $(".current_page").parent().parent().fadeToggle(400); | ||
+ | $(".current_page").parent().parent().prev().addClass("current_page"); | ||
+ | $(".menu_item.current_page > .submenu_control_icon").toggleClass("open"); | ||
+ | |||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | </script> | ||
+ | </head> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <!--******************************** Here is where the main content starts ************************************--> | ||
+ | |||
+ | <body> | ||
+ | <!-------------------------------------START OF NAV BAR HTML------------------------------------------------------> | ||
+ | |||
+ | |||
+ | <div class="nusgem_mail">CONNECT WITH US</div> | ||
+ | <div class="outer-border bg-primary"> | ||
+ | <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 class="inner-border" style="border-top: 2px solid black; 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> | </div> | ||
− | </div> | + | |
+ | <div class="nav" id="myNav"> | ||
+ | <div class="dropdwn"> | ||
+ | <button><a href="https://2018.igem.org/Team:NUS_Singapore-A" clas="active">HOME</a></button> | ||
+ | <button>PROJECT</button> | ||
+ | <div class="dropdwn-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> | ||
+ | </div> | ||
+ | <div class="dropdwn"> | ||
+ | <button>LAB</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Notebook">Notebook</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Safety">Safety</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/InterLab">InterLab Study</a> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Measurement">Measurement</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="dropdwn"> | ||
+ | <button>PARTS</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Basic_Part">Basic Parts</a> | ||
+ | <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">Improved Parts</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="dropdwn"> | ||
+ | <button>MODELLING</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model">Modelling</a> | ||
+ | <!-- <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model/Data">Data</a> --> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="dropdwn"> | ||
+ | <button>HARDWARE</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware">Overview</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/Hardware/Sensor">Light Wait - 2-in-1 Sensor</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/Hardware/CoJar">Light Wait - Fermentation Chamber</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="dropdwn"> | ||
+ | <button>HUMAN PRACTICES</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Human_Practices">Integrated Human Practices</a> | ||
+ | <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="dropdwn"> | ||
+ | <button>TEAM</button> | ||
+ | <div class="dropdwn-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="dropdwn"> | ||
+ | <button>AWARDS</button> | ||
+ | <div class="dropdwn-content"> | ||
+ | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Medals">Medals</a> | ||
+ | </div> | ||
+ | <button><a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a></button> | ||
+ | </div> | ||
+ | </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 scrollFunction() { | ||
+ | if (document.body.scrollTop > 500 || document.documentElement.scrollTop > 500) { | ||
+ | document.getElementById("BacktoTopBtn").style.display = "block"; | ||
+ | } else { | ||
+ | document.getElementById("BacktoTopBtn").style.display = "none"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | // When the user clicks on the button, scroll to the top of the document | ||
+ | function topFunction() { | ||
+ | document.body.scrollTop = 0; | ||
+ | document.documentElement.scrollTop = 0; | ||
+ | } | ||
+ | </script> | ||
</body> | </body> | ||
+ | |||
</html> | </html> | ||
− |
Revision as of 20:22, 15 October 2018
CONNECT WITH US