Team:Aalto-Helsinki/footer
From 2014.igem.org
(Difference between revisions)
Vaakapallo (Talk | contribs) |
|||
Line 99: | Line 99: | ||
</script> | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $('.extrabar').affix({ | + | if($('.extrabar') != undefined){ |
- | + | $('.extrabar').affix({ | |
- | + | offset: { | |
- | + | top: $('.splash').height() * 1.115 | |
+ | } | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $('.update').waypoint(function(direction) { | + | if($('.update') != undefined){ |
- | + | $('.update').waypoint(function(direction) { | |
- | + | var selector = "#" + ($(this)[0].classList[1]) + "-submenu"; | |
- | + | $('.extrabar a.active').removeClass("active"); | |
+ | $(selector).addClass("active"); | ||
+ | } | ||
}); | }); | ||
</script> | </script> |
Revision as of 12:55, 10 October 2014