Difference between revisions of "Template:Groningen"

Line 1,002: Line 1,002:
 
  else {
 
  else {
 
   var target = location.hash;
 
   var target = location.hash;
}
 
 
if ('scrollRestoration' in history) {
 
  history.scrollRestoration = 'manual';
 
 
  }
 
  }
 
   
 
   
 
  $('html,body').animate( {
 
  $('html,body').animate( {
   scrollTop: $(target).offset().top - 90
+
   scrollTop: $(target).offset().top
 
   },1000,function() { location.hash = target; });
 
   },1000,function() { location.hash = target; });
 
}
 
}
Line 1,020: Line 1,016:
 
  if (location.hash){
 
  if (location.hash){
 
   setTimeout(function(){
 
   setTimeout(function(){
   $('html, body').scrollTop(-90).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 18:28, 31 October 2017