summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)