Line 13: | Line 13: | ||
<script type="text/javascript" src="//code.jquery.com/jquery-1.6.4.js"></script> | <script type="text/javascript" src="//code.jquery.com/jquery-1.6.4.js"></script> | ||
+ | |||
+ | <script type='text/javascript'>//<![CDATA[ | ||
+ | $(window).load(function(){ | ||
+ | $('a').click(function(){ | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $( $(this).attr('href') ).offset().top | ||
+ | }, 500); | ||
+ | return false; | ||
+ | }); | ||
+ | });//]]> | ||
+ | |||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $('body').scrollspy({ | ||
+ | target: '.bs-docs-sidebar', | ||
+ | offset: 130 | ||
+ | }); | ||
+ | </script> | ||
Revision as of 11:48, 27 September 2016