Permalink
Browse files

New main.js file re-initialising #highlights skiplinks when shuffled

  • Loading branch information...
1 parent 4079f3b commit 74e5e5541b7e6c3e70e68225fe2a773cb1f74b62 @chambaz chambaz committed Oct 3, 2013
Showing with 9 additions and 1 deletion.
  1. +1 −1 index.html
  2. +8 −0 js/main.js
View
@@ -365,7 +365,7 @@ <h4>Companion quarters</h4>
gumby.min.js contains gumby.js, all UI modules and gumby.init.js
<script src="js/libs/gumby.min.js"></script> -->
<script src="bower_components/gumby/js/plugins.js"></script>
- <script src="bower_components/gumby/js/main.js"></script>
+ <script src="js/main.js"></script>
<!-- Change UA-XXXXX-X to be your site's ID -->
<!--<script>
View
@@ -0,0 +1,8 @@
+Gumby.ready(function() {
+ Gumby.debug('Gumby is ready to go');
+
+ // re-initialise skiplinks when #highlights are shuffled
+ $('#highlights').on('gumby.onShuffle', function() {
+ Gumby.initialize('skiplink');
+ });
+});

0 comments on commit 74e5e55

Please sign in to comment.