diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 19:46:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 19:50:54 +0000 |
commit | 816030ce9e72559d3d8cbd0ee26329500bfcf44a (patch) | |
tree | 9825c2af0fa6e29f0236a26af7c64e1527db0dd5 | |
parent | Add accesskey attribute to nav links (diff) | |
download | gentoobrowse-816030ce9e72559d3d8cbd0ee26329500bfcf44a.tar.bz2 gentoobrowse-816030ce9e72559d3d8cbd0ee26329500bfcf44a.tar.xz gentoobrowse-816030ce9e72559d3d8cbd0ee26329500bfcf44a.zip |
Tidy js.js
-rw-r--r-- | gentoobrowse/js/js.js | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/gentoobrowse/js/js.js b/gentoobrowse/js/js.js index 24d569a..1839f3f 100644 --- a/gentoobrowse/js/js.js +++ b/gentoobrowse/js/js.js @@ -1,25 +1,13 @@ - -// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT -// IT'S ALL JUST JUNK FOR OUR DOCS! -// ++++++++++++++++++++++++++++++++++++++++++ - !function ($) { - - $(function(){ - - var $window = $(window) - - // Disable certain links in docs - $('section [href^=#]').click(function (e) { - e.preventDefault() - }) - - // side bar - $('.bs-docs-sidenav').affix({ - offset: { - top: function () { return $window.width() <= 980 ? 290 : 210 } - , bottom: 240 - } - }) + $(function() { + var $window = $(window); + // side bar + $('.bs-docs-sidenav').affix({ + offset: { + top: function () { return $window.width() <= 980 ? 290 : 210 }, + bottom: 240 + } + }); }) -}(window.jQuery) +}(window.jQuery); + |