summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-02-27 15:00:51 +0000
committerrandomdan <randomdan@localhost>2013-02-27 15:00:51 +0000
commitbbe70cbe78e55c7779440f8127b1dd156d6cb5ce (patch)
tree27f887b7bd8576a59332302b68f23c5f4457f35e
parentNew bootstrapped GentooBrowse site (diff)
downloadgentoobrowse-bbe70cbe78e55c7779440f8127b1dd156d6cb5ce.tar.bz2
gentoobrowse-bbe70cbe78e55c7779440f8127b1dd156d6cb5ce.tar.xz
gentoobrowse-bbe70cbe78e55c7779440f8127b1dd156d6cb5ce.zip
Add missing js file
-rw-r--r--gentoobrowse/js/js.js25
1 files changed, 25 insertions, 0 deletions
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)