Line 15: | Line 15: | ||
var segments = Array.prototype.slice.call(svg.getElementsByTagName("g")); | var segments = Array.prototype.slice.call(svg.getElementsByTagName("g")); | ||
for (item in segments) { | for (item in segments) { | ||
− | if (item.id = | + | if (item.id.indexOf(bio) != -1) { |
console.log(item); | console.log(item); | ||
} | } |
Revision as of 10:34, 26 October 2017