aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index c541d57fb..4e405521d 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -25,7 +25,18 @@
<!-- Le javascript -->
<!-- placed up here so that the inline demos can be next to their markup -->
- <script src="http://code.jquery.com/jquery-1.7.js"></script>
+ <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
+
+ <script type="text/javascript">
+ // NOT FINAL BY ANY MEANS, JUST MAH JANK CODE BRO
+ $(document).ready(function() {
+ $('.nav .active a').click(function(e) {
+ e.preventDefault();
+ $(this).parent().siblings().toggle();
+ });
+ });
+ </script>
+
<script src="assets/js/google-code-prettify/prettify.js"></script>
<script>$(function () { prettyPrint() })</script>
<script src="../js/bootstrap-transition.js"></script>