(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
<html> | <html> | ||
<head> | <head> | ||
Line 5: | Line 6: | ||
+ | <!-- Bootstrap CSS and javascript --> | ||
<link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/bootstrap-3_3_6?action=raw&ctype=text/css"> | <link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/bootstrap-3_3_6?action=raw&ctype=text/css"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<script type="text/javascript" src="https://2016.igem.org/Team:NYU-AD/libraries/Bootstrap-js?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2016.igem.org/Team:NYU-AD/libraries/Bootstrap-js?action=raw&ctype=text/javascript"></script> | ||
− | |||
+ | <!-- font awesome css --> | ||
+ | <link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/css/font-awesome_min_css?action=raw&ctype=text/css" type="text/css" /> | ||
+ | <!-- jquery javascript --> | ||
+ | <script type="text/javascript" src="https://2016.igem.org/Team:NYU-AD/libraries/jquery-1_12_4_min_js?action=raw&ctype=text/javascript"> | ||
+ | </script> | ||
− | + | <!-- My own CSS stylesheet --> | |
+ | <link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/NYUAD_CSSstylesheet?action=raw&ctype=text/css"> | ||
− | . | + | $(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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</head> | </head> | ||
Line 203: | 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