base.js 335 B

123456789101112131415161718192021
  1. /* Highlight */
  2. $( document ).ready(function() {
  3. hljs.initHighlightingOnLoad();
  4. $('table').addClass('table table-striped table-hover');
  5. });
  6. $('body').scrollspy({
  7. target: '.bs-sidebar',
  8. });
  9. /* Prevent disabled links from causing a page reload */
  10. $("li.disabled a").click(function() {
  11. event.preventDefault();
  12. });