diff options
| author | Mark Otto <[email protected]> | 2011-08-26 09:54:08 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-08-26 09:54:08 -0700 |
| commit | fd844c6d5dca4e1c28d17baf7fc73c0883121efb (patch) | |
| tree | d26f9a170f8ab56a3985ef1397da96f16262fc56 /docs | |
| parent | ebfe465b28d9e4530bc59a1982f8a1b8b71f2d58 (diff) | |
| parent | 0a34a6d4b2131d28ed3d09857c2ccf78f139f837 (diff) | |
| download | bootstrap-fd844c6d5dca4e1c28d17baf7fc73c0883121efb.tar.xz bootstrap-fd844c6d5dca4e1c28d17baf7fc73c0883121efb.zip | |
Merge pull request #89 from karthikv/clean-up
Made JavaScript Unobtrusive and Removed Unused Class
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/application.js | 16 | ||||
| -rw-r--r-- | docs/index.html | 4 |
2 files changed, 16 insertions, 4 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 3319e607d..ddf6b7b9a 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -1,10 +1,22 @@ $(document).ready(function(){ + // Google code prettify + // ================ + + // cache $(window), as it is used in scroll spy logic later on + var $window = $(window); + + $window.load(function() { + // prettyPrint cannot be set as the event handler to load directly; see + // http://google-code-prettify.googlecode.com/svn/trunk/README.html + prettyPrint(); + }); + + // scroll spy logic // ================ var activeTarget, - $window = $(window), position = {}, nav = $('body > .topbar li a'), targets = nav.map(function () { @@ -127,4 +139,4 @@ $(document).ready(function(){ }); -});
\ No newline at end of file +}); diff --git a/docs/index.html b/docs/index.html index 58be9e8b5..be77950e7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -29,7 +29,7 @@ <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png"> </head> - <body onload="prettyPrint();"> + <body> <!-- Topbar ================================================== --> @@ -1383,4 +1383,4 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita </div> </body> -</html>
\ No newline at end of file +</html> |
