(8 intermediate revisions by the same user not shown) | |||
Line 35: | Line 35: | ||
window.onscroll = function() { | window.onscroll = function() { | ||
var currentScrollPos = window.pageYOffset; | var currentScrollPos = window.pageYOffset; | ||
+ | //If At (or above @safari) the top | ||
+ | if(currentScrollPos <= 0 ) { | ||
+ | |||
+ | document.getElementById("navbar").style.top = "10px"; | ||
+ | $(".dropdown").removeClass("nomouse"); | ||
+ | if(!$(".dropdown").is(":visible")) | ||
+ | { | ||
+ | |||
+ | $(".navigation").show(); | ||
+ | } | ||
+ | else { $(".navigation").css("display", "");} | ||
+ | return; | ||
+ | } | ||
+ | |||
+ | //If Scrolling Up | ||
if (prevScrollpos > currentScrollPos) { | if (prevScrollpos > currentScrollPos) { | ||
document.getElementById("navbar").style.top = "10px"; | document.getElementById("navbar").style.top = "10px"; | ||
Line 44: | Line 59: | ||
} | } | ||
else { $(".navigation").css("display", "");} | else { $(".navigation").css("display", "");} | ||
− | } else { | + | } |
+ | //If Scrolling Down | ||
+ | else { | ||
if($(".navigation").hasClass("open"))if(!$(".dropdown").is(":visible")){return;} | if($(".navigation").hasClass("open"))if(!$(".dropdown").is(":visible")){return;} | ||
document.getElementById("navbar").style.top = "-45px"; | document.getElementById("navbar").style.top = "-45px"; | ||
Line 60: | Line 77: | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> | ||
Line 111: | Line 91: | ||
} | } | ||
− | + | .container a:visited{ | |
− | . | + | color: #800080; |
− | + | ||
− | + | ||
} | } | ||
.nomouse | .nomouse | ||
Line 393: | Line 371: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
− | font-family: 'Open Sans'; | + | font-family: 'Open Sans', sans-serif !important; |
font: initial !important; | font: initial !important; | ||
} | } | ||
Line 457: | Line 435: | ||
h1,h2,h3{ | h1,h2,h3{ | ||
− | font-family: sans-serif; | + | font-family: 'Arimo', sans-serif !important; |
− | font-weight: lighter; | + | font-weight: lighter !important; |
} | } | ||
p{ | p{ | ||
− | + | font-family: 'Open sans', sans-serif !important; | |
− | line-height: 1.5em; | + | line-height: 1.5em !important; |
− | font-size: 1.1em; | + | font-size: 1.1em !important; |
} | } | ||
Line 642: | Line 620: | ||
<!--PROJECT DROPDOWN--> | <!--PROJECT DROPDOWN--> | ||
<div class="dropdown"> | <div class="dropdown"> | ||
− | <a href="Description">PROJECT</a> | + | <a href="/Team:WLC-Milwaukee/Description">PROJECT</a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="\Team:WLC-Milwaukee\Description">Overview</a> | <a href="\Team:WLC-Milwaukee\Description">Overview</a> | ||
<a href="\Team:WLC-Milwaukee\Background">Background</a> | <a href="\Team:WLC-Milwaukee\Background">Background</a> | ||
<a href="\Team:WLC-Milwaukee\Applied_Design">System Design</a> | <a href="\Team:WLC-Milwaukee\Applied_Design">System Design</a> | ||
− | <a href="\Team:WLC-Milwaukee\Experiments"> | + | <a href="\Team:WLC-Milwaukee\Experiments">Wet Lab</a> |
<a href="\Team:WLC-Milwaukee\Demonstrate">Results</a> | <a href="\Team:WLC-Milwaukee\Demonstrate">Results</a> | ||
<a href="\Team:WLC-Milwaukee\Improve">Parts</a> | <a href="\Team:WLC-Milwaukee\Improve">Parts</a> | ||
Line 692: | Line 670: | ||
<div class="menu"> | <div class="menu"> | ||
<div class="menu-header"> | <div class="menu-header"> | ||
− | <a href=" | + | <a href="/Team:WLC-Milwaukee"> |
<p> | <p> | ||
<img height="40" title="WLC-Milwaukee iGEM Home" src="https://static.igem.org/mediawiki/2018/7/7b/T--WLC-Milwaukee--wlcMilwaukeeIgemLogo.png" alt="WLC-Milwaukee"> | <img height="40" title="WLC-Milwaukee iGEM Home" src="https://static.igem.org/mediawiki/2018/7/7b/T--WLC-Milwaukee--wlcMilwaukeeIgemLogo.png" alt="WLC-Milwaukee"> |
Latest revision as of 02:13, 18 October 2018