From 816030ce9e72559d3d8cbd0ee26329500bfcf44a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 4 Nov 2017 19:46:15 +0000 Subject: Tidy js.js --- gentoobrowse/js/js.js | 34 +++++++++++----------------------- 1 file 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); + -- cgit v1.2.3