diff options
| author | Mark Otto <[email protected]> | 2012-08-15 14:45:41 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-15 14:45:41 -0700 |
| commit | fd509cb370867d6a2d2ad45d3bae88d4fecdd088 (patch) | |
| tree | eabc447b12d1cc05b5922db475d2b0b3e5071d04 /docs/assets/js/application.js | |
| parent | ada5589184550ea87b37ae3cba9edfce57c04e99 (diff) | |
| parent | 74bda55d4caa3fd68b5993e5301cf2cc03fb48e8 (diff) | |
| download | bootstrap-fd509cb370867d6a2d2ad45d3bae88d4fecdd088.tar.xz bootstrap-fd509cb370867d6a2d2ad45d3bae88d4fecdd088.zip | |
Merge branch '2.1.0-wip' of github.com:twitter/bootstrap into 2.1.0-wip
Diffstat (limited to 'docs/assets/js/application.js')
| -rw-r--r-- | docs/assets/js/application.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 9f1fa704f..69760bee3 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() |
