Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-08-15 08:06:08 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-08-15 08:06:08 +0400
commitdee57462e2805421a0fe0d786229446bbaef677b (patch)
tree49c7e0f61ba1bac7c8804ad07b96a3ad0ec654f3 /docs/assets/js/application.js
parent4bf93a2d76ddec19e22be771ef1832ef563c91a5 (diff)
get affix actually working and update docs
Diffstat (limited to 'docs/assets/js/application.js')
-rw-r--r--docs/assets/js/application.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 9f1fa704f3..69760bee36 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -6,11 +6,21 @@
$(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: 270
+ }
+ })
+
// make code pretty
window.prettyPrint && prettyPrint()