aboutsummaryrefslogtreecommitdiff
path: root/docs/assets
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
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')
-rw-r--r--docs/assets/css/docs.css5
-rw-r--r--docs/assets/js/application.js31
2 files changed, 36 insertions, 0 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 8432f92ea..5ed38bb47 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -317,6 +317,11 @@ h2 + table {
.example-sites img {
width: 290px;
}
+.built-with {
+ margin: -18px 0 27px;
+ color: #999;
+ text-align: center;
+}
.scrollspy-example {
height: 200px;
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
// ==================