(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
<html> | <html> | ||
<head> | <head> | ||
Line 18: | Line 19: | ||
<!-- My own CSS stylesheet --> | <!-- My own CSS stylesheet --> | ||
− | <link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/ | + | <link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/NYUAD_CSSstylesheet?action=raw&ctype=text/css"> |
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 134: | Line 135: | ||
</div> | </div> | ||
</nav> | </nav> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | |||
+ | $(window).scroll(function() { | ||
+ | if ($(document).scrollTop() > 50) { | ||
+ | // alert('you'); | ||
+ | $('nav').addClass('shrink'); | ||
+ | $('#nyuad-logo').css("height","44px"); | ||
+ | |||
+ | } else { | ||
+ | $('nav').removeClass('shrink'); | ||
+ | $('#nyuad-logo').css("height","66px"); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> |
Latest revision as of 20:27, 5 October 2016