CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 131: | Line 131: | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | ||
− | |||
svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | ||
+ | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | ||
}); | }); | ||
Line 138: | Line 138: | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionality(item) }); | ||
− | |||
svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | svgDoc.getElementById(item.image_id).setAttribute('opacity', '0'); | ||
+ | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | ||
}); | }); | ||
Revision as of 17:29, 21 October 2017