Difference between revisions of "Template:Groningen"

Line 986: Line 986:
 
// Add scrollspy to document
 
// Add scrollspy to document
 
$( document ).ready(function() { $("body").scrollspy({target: "#myScrollspy", offset:100}); });
 
$( document ).ready(function() { $("body").scrollspy({target: "#myScrollspy", offset:100}); });
// Add smooth scrolling on all links inside the navbar
 
  
 +
// Add smooth scrolling on all links inside the navbar
 
var jump=function(e)
 
var jump=function(e)
 
{
 
{
 
   if (e){
 
   if (e){
 
       e.preventDefault();
 
       e.preventDefault();
 +
      $( document ).ready(function() { $("body").scrollspy({target: "#myScrollspy", offset:100}); });
 
       var target = $(this).attr("href");
 
       var target = $(this).attr("href");
 
   }else{
 
   }else{

Revision as of 23:16, 30 October 2017