Line 74: | Line 74: | ||
#headerWrapper a:visited, | #headerWrapper a:visited, | ||
#headerWrapper a:active { | #headerWrapper a:active { | ||
− | + | text-decoration:none; | |
color:black; | color:black; | ||
} | } | ||
#headerWrapper #current-navigation a { | #headerWrapper #current-navigation a { | ||
− | background-color:# | + | background-color:#750000; /*#990000*/ |
color:white; | color:white; | ||
} | } | ||
Line 118: | Line 118: | ||
} | } | ||
+ | #Topnav { | ||
+ | width:100%; | ||
+ | margin: auto; | ||
+ | } | ||
+ | |||
#Topnav { | #Topnav { | ||
width:100%; | width:100%; | ||
Line 150: | Line 155: | ||
float: right; | float: right; | ||
font-size: 0.93em; | font-size: 0.93em; | ||
− | font-weight: | + | font-weight: bold; |
width: 94%; | width: 94%; | ||
} | } | ||
Line 281: | Line 286: | ||
#Topnav a:hover{ | #Topnav a:hover{ | ||
− | background-color: # | + | background-color: #990000; /*4A0000, 750000, |
B81414, DA3535*/ | B81414, DA3535*/ | ||
color: white; | color: white; | ||
Line 287: | Line 292: | ||
#Topnav a.active{ | #Topnav a.active{ | ||
− | background-color: # | + | background-color: #750000; |
border-top-left-radius: 10px; | border-top-left-radius: 10px; | ||
border-top-right-radius: 10px; | border-top-right-radius: 10px; | ||
Line 640: | Line 645: | ||
<div id="navigation"> | <div id="navigation"> | ||
<ul id="nav-items"> | <ul id="nav-items"> | ||
− | <li><a href="https://2016.igem.org/Team:DTU-Denmark/bla" class="achievements nav-item" id="achievements" | + | <li><a href="https://2016.igem.org/Team:DTU-Denmark/bla" class="achievements nav-item" id="achievements">Achievements</a></li> |
− | <li><a href="#" class="project nav-item" id="project" | + | <li><a href="#" class="project nav-item" id="project">Project</a></li> |
− | <li><a href="#" class="results nav-item" id="parts" | + | <li><a href="#" class="results nav-item" id="parts">Parts</a></li> |
− | <li><a href="#" class="notebook nav-item" id="notebook" | + | <li><a href="#" class="notebook nav-item" id="notebook">Notebook</a></li> |
− | <li><a href="#" class="hardware nav-item" id="hardware" | + | <li><a href="#" class="hardware nav-item" id="hardware">Hardware</a></li> |
− | <li><a href="#" class="modeling nav-item" id="modeling" | + | <li><a href="#" class="modeling nav-item" id="modeling">Modeling</a></li> |
− | <li><a href="#" class="practices nav-item" id="practices" | + | <li><a href="#" class="practices nav-item" id="practices">Practices</a></li> |
− | <li><a href="#" class="collaborations nav-item" id="collaborations" | + | <li><a href="#" class="collaborations nav-item" id="collaborations">Collaboration</a></li> |
− | <li><a href="#" class="attributions nav-item" id="attributions" | + | <li><a href="#" class="attributions nav-item" id="attributions">Attributions</a></li> |
− | <li><a href="#" class="interlab nav-item" id="interlab" | + | <li><a href="#" class="interlab nav-item" id="interlab">InterLab</a></li> |
</ul> | </ul> | ||
</div> | </div> | ||
Line 796: | Line 801: | ||
// Open sub menue | // Open sub menue | ||
− | var open_sub = function( | + | var open_sub = function(cName){ |
− | var navig = | + | var navig = cName |
navig = navig.split(" ")[0] | navig = navig.split(" ")[0] | ||
navig = navig + "-sub" | navig = navig + "-sub" | ||
Line 810: | Line 815: | ||
// Open sub menues | // Open sub menues | ||
$(document).ready(window.onmouseover = function(e) { | $(document).ready(window.onmouseover = function(e) { | ||
− | open_sub( | + | var cName = e.target.className |
+ | open_sub(cName) | ||
}); | }); | ||
− | + | $(window).bind('touchstart', function(event){ | |
− | + | var cName = event.target.className | |
− | + | open_sub( cName ); | |
+ | }); | ||
+ | // window.addEventListener('touchstart', function(){ | ||
+ | // $(document).click = function(e){ | ||
+ | // console.log("hello") | ||
+ | // }; | ||
+ | // }); | ||
+ | |||
// Open current sub menue when the window opens | // Open current sub menue when the window opens | ||
window.onload = function (){ | window.onload = function (){ |
Revision as of 13:08, 9 August 2016