diff options
Diffstat (limited to 'page/static/js/introduction.js')
-rw-r--r-- | page/static/js/introduction.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/page/static/js/introduction.js b/page/static/js/introduction.js deleted file mode 100644 index b0ff02c..0000000 --- a/page/static/js/introduction.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * js for introduction page - */ - -$(document).ready(function() { - $('#sidebar').affix({ - offset: { - top: 235 - } - }); - - var $body = $(document.body); - var navHeight = $('.navbar').outerHeight(true) + 10; - - $body.scrollspy({ - target: '#sidebar-col', - offset: navHeight - }); - - /* smooth scrolling sections */ - $('a[href*=#]:not([href=#])').click(function() { - if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { - var target = $(this.hash); - target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); - if (target.length) { - $('html,body').animate({ - scrollTop: target.offset().top - 50 - }, 100); - return false; - } - } - }); -}); - |