Template:Team:Sheffield/NavigationBar
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<script> | <script> | ||
$(document).ready(function() { // Document ready | $(document).ready(function() { // Document ready | ||
- | + | $(document).scroll(function() { | |
- | + | if ($(document).scrollTop() > 0) { | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | $( | + | |
- | if ($( | + | |
$("#navigationBar").addClass("scrolling"); | $("#navigationBar").addClass("scrolling"); | ||
$("#navigationBar li a").addClass("scrolling"); | $("#navigationBar li a").addClass("scrolling"); |
Revision as of 10:44, 4 October 2014