Difference between revisions of "Template:Groningen"

Line 999: Line 999:
 
  }
 
  }
  
  $('html,body').animate( { scrollTop: $(target).offset().top - 90 },1000,function() { location.hash = target; });
+
  $(window).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(){
   $('html, body').scrollTop(0).show();
+
   $(window).scrollTop(0).show();
 
   $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0);
 
   $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0);
 
   }
 
   }

Revision as of 13:00, 31 October 2017