summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/js/js.js34
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);
+