Template:Team:Calgary Entrepreneurial/Header
From 2013.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
<head> | <head> | ||
- | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
- | |||
<!--Fonts--> | <!--Fonts--> | ||
Line 62: | Line 60: | ||
}); | }); | ||
+ | //resets navigation states for window resizing (e.g. iPad orientation flip) | ||
$(window).resize(function(){ | $(window).resize(function(){ | ||
if(viewport().width > 768){ | if(viewport().width > 768){ | ||
Line 69: | Line 68: | ||
} | } | ||
else{ | else{ | ||
+ | $('#blackheader').show(); | ||
+ | $('#whiteheader').hide(); | ||
navlist.hide(); | navlist.hide(); | ||
- | $('#navbutton'). | + | $('#navbutton').css('background', 'transparent'); |
$('#navbutton').addClass('active'); | $('#navbutton').addClass('active'); | ||
} | } | ||
Line 106: | Line 107: | ||
}); | }); | ||
} | } | ||
+ | } | ||
+ | else{ | ||
+ | //show only the black header otherwise | ||
+ | white.hide(); | ||
+ | black.show(); | ||
} | } | ||
}); | }); | ||
Line 139: | Line 145: | ||
<nav> | <nav> | ||
<ul> | <ul> | ||
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Team">Team</a></li> | + | <li><a class="team" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Team">Team</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project">Project</a></li> | + | <li><a class="project" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project">Project</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project/HumanPractices">Human Practices</a></li> | + | <li><a class="hp" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project/HumanPractices">Human Practices</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Contact">Contact</a></li> | + | <li><a class="contact" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Contact">Contact</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Data">Sources</a></li> | + | <li><a class="sources" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Data">Sources</a></li> |
- | <li><a href="https://2013.igem.org" target="_blank">iGEM</a></li> | + | <li><a class="igem" href="https://2013.igem.org" target="_blank">iGEM</a></li> |
</ul> | </ul> | ||
</nav> | </nav> | ||
Line 156: | Line 162: | ||
<nav> | <nav> | ||
<ul> | <ul> | ||
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Team">Team</a></li> | + | <li><a class="team" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Team">Team</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project">Project</a></li> | + | <li><a class="project" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project">Project</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project/HumanPractices">Human Practices</a></li> | + | <li><a class="hp" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Project/HumanPractices">Human Practices</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Contact">Contact</a></li> | + | <li><a class="contact" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Contact">Contact</a></li> |
- | <li><a href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Data">Sources</a></li> | + | <li><a class="sources" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Data">Sources</a></li> |
- | <li><a href="https://2013.igem.org" target="_blank">iGEM</a></li> | + | <li><a class="igem" href="https://2013.igem.org" target="_blank">iGEM</a></li> |
</ul> | </ul> | ||
</nav> | </nav> |
Latest revision as of 18:09, 28 October 2013
FREDsense's website works best with Javascript enabled, especially on mobile devices. Please enable Javascript for optimal viewing.