Template:Team:Berkeley/header

From 2013.igem.org

(Difference between revisions)
Line 91: Line 91:
<script>
<script>
-
$$('.clickables').each(function(clickable) {
+
$('.clickables').each(function(clickable) {
     var list = clickable.getElements('li');
     var list = clickable.getElements('li');
-
     list.addEvent('click', function() {
+
     list.bind('click', function() {
-
         var link = this.getElement('a');
+
         var link = $(this).first('a');
-
         if(this.getFirst('a')) {
+
         if($(this).first('a')) {
             window.location = link
             window.location = link
         }
         }

Revision as of 18:20, 15 October 2013