1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00

add jank js for prototyping new topbar to all docs pages

This commit is contained in:
Mark Otto
2011-12-09 11:41:00 -08:00
parent 312ee6cdfb
commit 1d1805ee5c
6 changed files with 57 additions and 1 deletions

View File

@@ -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>