aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-12-21 16:22:20 -0600
committerMark Otto <[email protected]>2011-12-21 16:22:20 -0600
commit20aecb983838422c7b43e20960b10d4d79fefaa3 (patch)
treee036dea172ade5df4cd2834cc1075b75ff057425 /docs/assets/js
parent8a7abc7493a07935d4d91b2cc56a82523fd53970 (diff)
downloadbootstrap-20aecb983838422c7b43e20960b10d4d79fefaa3.tar.xz
bootstrap-20aecb983838422c7b43e20960b10d4d79fefaa3.zip
updated all docs to jQuery 1.7, move all docs JS to application.js, and move dropdowns css to dedicated file
Diffstat (limited to 'docs/assets/js')
-rw-r--r--docs/assets/js/application.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 74024caa1..255f624be 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -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
// ==================