Difference between revisions of "Template:NYU-AD"

 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
  
 
<!-- My own CSS stylesheet -->
 
<!-- My own CSS stylesheet -->
<link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/CSSstylesheet?action=raw&amp;ctype=text/css">
+
<link rel="stylesheet" href="https://2016.igem.org/Team:NYU-AD/libraries/NYUAD_CSSstylesheet?action=raw&amp;ctype=text/css">
  
 
$(document).ready(function(){
 
$(document).ready(function(){
Line 135: 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

iGEM NYUAD Wiki $(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"); } }); });