Team:Aalto-Helsinki/footer

From 2014.igem.org

(Difference between revisions)
Line 99: Line 99:
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
-
$('.extrabar').affix({
+
if($('.extrabar') != undefined){
-
      offset: {
+
    $('.extrabar').affix({
-
        top: $('.splash').height() * 1.115
+
        offset: {
-
      }
+
          top: $('.splash').height() * 1.115
 +
        }
 +
    }
});
});
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
-
$('.update').waypoint(function(direction) {
+
  if($('.update') != undefined){
-
  var selector = "#" + ($(this)[0].classList[1]) + "-submenu";
+
    $('.update').waypoint(function(direction) {
-
  $('.extrabar a.active').removeClass("active");
+
      var selector = "#" + ($(this)[0].classList[1]) + "-submenu";
-
  $(selector).addClass("active");
+
      $('.extrabar a.active').removeClass("active");
 +
      $(selector).addClass("active");
 +
    }
});
});
</script>
</script>

Revision as of 12:55, 10 October 2014