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

updated all docs to jQuery 1.7, move all docs JS to application.js, and move dropdowns css to dedicated file

This commit is contained in:
Mark Otto
2011-12-21 16:22:20 -06:00
parent 8a7abc7493
commit 20aecb9838
13 changed files with 260 additions and 113 deletions

View File

@@ -1,5 +1,36 @@
$(function(){
// Hide the Mobile Safari address bar once loaded
// ==============================================
window.addEventListener("load",function() {
// Set a timeout...
setTimeout(function(){
// Hide the address bar!
window.scrollTo(0, 1);
}, 0);
});
// Docs topbar nav
// ===============
$('.nav .active').click(function(e) {
e.preventDefault();
$(this).siblings().toggle();
});
// Show grid dimensions on hover
// =============================
$('.show-grid > div').hover(function() {
var width = $(this).width();
$(this).attr('title', width);
$(this).twipsy();
});
// table sort example
// ==================