Rahannazeer (Talk | contribs) |
|||
Line 3: | Line 3: | ||
<html> | <html> | ||
+ | <script> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $('a[href^="#"]').on('click',function (e) { | ||
+ | e.preventDefault(); | ||
+ | |||
+ | var target = this.hash; | ||
+ | var $target = $(target); | ||
+ | |||
+ | $('html, body').stop().animate({ | ||
+ | 'scrollTop': $target.offset().top - $('#top_menu_14').height() - $('#top_menu_14').height() - $('#navbar-top').height() | ||
+ | }, 900, 'swing'); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
<!-- Row & container for main content of the page --> | <!-- Row & container for main content of the page --> |
Revision as of 14:49, 29 October 2017