1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00

add basic back to top link via affix

This commit is contained in:
Mark Otto
2013-03-30 18:41:26 -07:00
parent e560c41ed1
commit 40f671a531
3 changed files with 61 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
e.preventDefault()
})
// side bar
// back to top
// setTimeout(function () {
// $('.bs-docs-sidenav').affix({
// offset: {
@@ -23,6 +23,10 @@
// })
// }, 100)
setTimeout(function () {
$('.bs-docs-top').affix()
}, 100)
// make code pretty
window.prettyPrint && prettyPrint()