Line 13: | Line 13: | ||
window.onload = () => { | window.onload = () => { | ||
var svg = document.getElementById("hero-image").getSVGDocument(); | var svg = document.getElementById("hero-image").getSVGDocument(); | ||
+ | $(svg.getElementById("bio")).hover(function() { | ||
+ | $(this).css('cursor','pointer'); | ||
+ | }, function() { | ||
+ | $(this).css('cursor','auto'); | ||
+ | }); | ||
$(svg.getElementById("bio")).popover({container: "body", title: "Biology", content: "Stuff", placement: | $(svg.getElementById("bio")).popover({container: "body", title: "Biology", content: "Stuff", placement: | ||
'top', position:'fixed'}); | 'top', position:'fixed'}); |
Revision as of 10:46, 26 October 2017