Difference between revisions of "Template:Manchester/CSS1"

Line 704: Line 704:
 
<script>
 
<script>
 
function checkScroll(){
 
function checkScroll(){
    var startY = $('nav > ul').height() * 2; //The point where the navbar changes in px
 
  
     if($(window).scrollTop() > window.innerHeight + startY){
+
     if($(window).scrollTop() > window.innerHeight){
 
         $('nav > ul').addClass("scrolled");
 
         $('nav > ul').addClass("scrolled");
 
     }else{
 
     }else{

Revision as of 10:51, 16 September 2016