Line 50: | Line 50: | ||
for (link in links) {console.log(link[0], link[1])}; | for (link in links) {console.log(link[0], link[1])}; | ||
− | for ( | + | for (var i = 0; i < links.length; i++) { |
− | $(svg.getElementById( | + | $(svg.getElementById(links[i][0])).hover(function () { |
$(this).css('cursor', 'pointer'); | $(this).css('cursor', 'pointer'); | ||
}, function () { | }, function () { | ||
$(this).css('cursor', 'auto'); | $(this).css('cursor', 'auto'); | ||
}).click(function () { | }).click(function () { | ||
− | window.location.href = | + | window.location.href = links[i][1]; |
}); | }); | ||
} | } |
Revision as of 13:03, 28 October 2017