Difference between revisions of "Team:NAIT Edmonton/Bios"

Line 15: Line 15:
  
  
<script type="text/javascript">
 
$(document).ready(function() {
 
// grab the initial top offset of the navigation
 
  var stickyNavTop = $('.nav').offset().top;
 
 
 
  // our function that decides weather the navigation bar should have "fixed" css position or not.
 
  var stickyNav = function(){
 
    var scrollTop = $(window).scrollTop(); // our current vertical position from the top
 
       
 
    // if we've scrolled more than the navigation, change its position to fixed to stick to top,
 
    // otherwise change it back to relative
 
    if (scrollTop > stickyNavTop) {
 
        $('.nav').addClass('sticky');
 
    } else {
 
        $('.nav').removeClass('sticky');
 
    }
 
};
 
 
stickyNav();
 
// and run it again every time you scroll
 
$(window).scroll(function() {
 
stickyNav();
 
});
 
});
 
</script>
 
 
<script type="text/javascript" src="https://2015.igem.org/Team:NAIT_Edmonton/StickyMenu?action=raw&amp;ctype=text/javascript"></script>
 
 
<script type="text/javascript" charset="utf-8">
 
 
var $ = jQuery.noConflict();
 
  $(window).load(function() {
 
    $('.flexslider').flexslider({
 
          animation: "fade"
 
    });
 
  });
 
</script>
 
  
 
</head>
 
</head>

Revision as of 16:56, 13 August 2015

Team NAIT 2015

Meet Our Team