From bbe70cbe78e55c7779440f8127b1dd156d6cb5ce Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 27 Feb 2013 15:00:51 +0000 Subject: Add missing js file --- gentoobrowse/js/js.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gentoobrowse/js/js.js diff --git a/gentoobrowse/js/js.js b/gentoobrowse/js/js.js new file mode 100644 index 0000000..24d569a --- /dev/null +++ b/gentoobrowse/js/js.js @@ -0,0 +1,25 @@ + +// 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 + } + }) + }) +}(window.jQuery) -- cgit v1.2.3