Difference between revisions of "Template:Groningen"

Line 993: Line 993:
  
 
// Add smooth scrolling on all links inside the navbar
 
// Add smooth scrolling on all links inside the navbar
 +
 
var animateScroll = function(target, offset) {
 
var animateScroll = function(target, offset) {
 
     var is = $(document).scrollTop();
 
     var is = $(document).scrollTop();
Line 998: Line 999:
 
     if (is < must) {
 
     if (is < must) {
 
         $(document).scrollTop(is+(must/200));
 
         $(document).scrollTop(is+(must/200));
         setTimeout(function() {animateScroll(target);}, 10);
+
         setTimeout(function() {animateScroll(target, offset);}, 10);
 
     }
 
     }
 
}
 
}

Revision as of 21:07, 31 October 2017