Difference between revisions of "Template:Washington"

Line 352: Line 352:
 
         $('html,body').animate({ scrollTop: targetOffset }, speed);
 
         $('html,body').animate({ scrollTop: targetOffset }, speed);
 
     }
 
     }
});
 
 
$(document).ready(function(e){ 
 
    var str= location.hash;
 
    var n=str.replace("_temp","");
 
    $('html,body').animate({scrollTop:$(n).offset().top}, 1000);
 
});
 
 
/* to make the sidebar anchor*/
 
 
$(document).ready(function(){
 
 
    /**
 
    * This part does the "fixed navigation after scroll" functionality
 
    * We use the jQuery function scroll() to recalculate our variables as the
 
    * page is scrolled/
 
    */
 
 
     $(window).scroll(function(){
 
     $(window).scroll(function(){
 
         var window_top = $(window).scrollTop() + 12; // the "12" should equal the margin-top value for nav.stick
 
         var window_top = $(window).scrollTop() + 12; // the "12" should equal the margin-top value for nav.stick
Line 380: Line 363:
  
 
});
 
});
 +
 +
$(document).ready(function(e){ 
 +
    var str= location.hash;
 +
    var n=str.replace("_temp","");
 +
    $('html,body').animate({scrollTop:$(n).offset().top}, 1000);
 +
});
 +
 +
/* to make the sidebar anchor*/
 +
 
</script>
 
</script>
 
</head>
 
</head>

Revision as of 06:50, 14 September 2015