Difference between revisions of "Team:NYU Abu Dhabi"

Line 48: Line 48:
 
             ]
 
             ]
  
             for (var i = 0; i < links.length; i++) {
+
             for (var link in links) {
                var current_link = links[i];
+
                 $(svg.getElementById(link[0])).hover(function () {
                 $(svg.getElementById(current_link[0])).hover(function () {
+
 
                     $(this).css('cursor', 'pointer');
 
                     $(this).css('cursor', 'pointer');
 
                 }, function () {
 
                 }, function () {
 
                     $(this).css('cursor', 'auto');
 
                     $(this).css('cursor', 'auto');
                 }).click(function() {window.location.href = current_link[1];});
+
                 }).click(function() {window.location.href = link[1];});
 
             }
 
             }
 
         }
 
         }

Revision as of 13:28, 28 October 2017