1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

get affix actually working and update docs

This commit is contained in:
Jacob Thornton
2012-08-14 21:06:08 -07:00
parent 4bf93a2d76
commit dee57462e2
20 changed files with 95 additions and 74 deletions

View File

@@ -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()