Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 74e5e5541b7e6c3e70e68225fe2a773cb1f74b62 1 parent 4079f3b
@chambaz chambaz authored
Showing with 9 additions and 1 deletion.
  1. +1 −1  index.html
  2. +8 −0 js/main.js
View
2  index.html
@@ -365,7 +365,7 @@ <h3 class="row text-center xlarge">Bigger engineering for bigger insides</h3>
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
8 js/main.js
@@ -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');
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.