base.js 423 B

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