Difference between revisions of "Template:Groningen"

Line 151: Line 151:
 
     height:1000px;
 
     height:1000px;
 
     width: 1000px;
 
     width: 1000px;
     overflow: auto;  
+
     //overflow: auto;  
     overflow-y: hidden;  //hide vertical
+
     //overflow-y: hidden;  hide vertical
     overflow-x: hidden;  //hide horizontal
+
     //overflow-x: hidden;  hide horizontal
 
}
 
}
  
Line 999: Line 999:
 
  }
 
  }
  
  $(window).animate( { scrollTop: $(target).offset().top - 90 },1000,function() { location.hash = target; });
+
  $('html, body').animate( { scrollTop: $(target).offset().top - 90 },1000,function() { location.hash = target; });
 
}
 
}
  
Line 1,009: Line 1,009:
 
  if (location.hash){
 
  if (location.hash){
 
   setTimeout(function(){
 
   setTimeout(function(){
   $(window).scrollTop(0).show();
+
   $('html, body').scrollTop(0).show();
 
   $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0);
 
   $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0);
 
   }
 
   }

Revision as of 13:02, 31 October 2017