diff options
author | Mark Otto <markdotto@gmail.com> | 2011-12-22 02:22:20 +0400 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2011-12-22 02:22:20 +0400 |
commit | 20aecb983838422c7b43e20960b10d4d79fefaa3 (patch) | |
tree | e036dea172ade5df4cd2834cc1075b75ff057425 /docs/assets/js/application.js | |
parent | 8a7abc7493a07935d4d91b2cc56a82523fd53970 (diff) |
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/application.js')
-rw-r--r-- | docs/assets/js/application.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 74024caa1d..255f624bed 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 // ================== |