Line 49: | Line 49: | ||
for (var i = 0; i < links.length; i++) { | for (var i = 0; i < links.length; i++) { | ||
− | $(svg.getElementById( | + | var current_link = links[i]; |
+ | $(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'); | ||
− | }). | + | }).onclick(function() {window.location.href = current_link[0];}); |
} | } | ||
} | } |
Revision as of 13:17, 28 October 2017