Difference between revisions of "Template:Manchester/CSS"

Line 1,384: Line 1,384:
 
<script>
 
<script>
 
$(document).ready(function(){
 
$(document).ready(function(){
 +
  $(window).scroll(function () {
 +
      //if you hard code, then use console
 +
      //.log to determine when you want the
 +
      //nav bar to stick. 
 +
      console.log($(window).scrollTop())
 +
    if ($(window).scrollTop() > window.innerHeight ) {
 +
 
     if($(window).width() > 1300){
 
     if($(window).width() > 1300){
 
         setTimeout(function(){
 
         setTimeout(function(){
Line 1,392: Line 1,399:
 
         },3000);
 
         },3000);
 
     }
 
     }
 +
  }
 +
  })
 
});
 
});
 
</script>
 
</script>
Line 1,406: Line 1,415:
 
<script>
 
<script>
 
$(document).ready(function(){
 
$(document).ready(function(){
 +
  $(window).scroll(function () {
 +
      //if you hard code, then use console
 +
      //.log to determine when you want the
 +
      //nav bar to stick. 
 +
      console.log($(window).scrollTop())
 +
    if ($(window).scrollTop() > window.innerHeight ) {
 
     if($(window).width() > 1300){
 
     if($(window).width() > 1300){
 
         setTimeout(function(){
 
         setTimeout(function(){
Line 1,412: Line 1,427:
 
         },3000);
 
         },3000);
 
     }
 
     }
 +
  }
 +
  })
 
})
 
})
 
</script>
 
</script>

Revision as of 22:40, 3 October 2016

Manchester iGEM 2016