Line 48: | Line 48: | ||
] | ] | ||
− | + | Array.prototype.forEach(function (link) { | |
$(svg.getElementById(link[0])).hover(function () { | $(svg.getElementById(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 = link[1];}); | + | }).click(function () { |
− | } | + | window.location.href = link[1]; |
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
} | } | ||
</script> | </script> |
Revision as of 13:30, 28 October 2017