Line 14: | Line 14: | ||
var svg = document.getElementById("hero-image").getSVGDocument(); | var svg = document.getElementById("hero-image").getSVGDocument(); | ||
var segments = Array.prototype.slice.call(svg.getElementsByTagName("g")); | var segments = Array.prototype.slice.call(svg.getElementsByTagName("g")); | ||
+ | var segments = segments.filter(function(e) {return e.id}) | ||
for (item in segments) { | for (item in segments) { | ||
if (item.id.indexOf(bio) != -1) { | if (item.id.indexOf(bio) != -1) { |
Revision as of 10:35, 26 October 2017