CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 105: | Line 105: | ||
console.log(item.image_id); | console.log(item.image_id); | ||
console.log(typeof(item.image_id)); | console.log(typeof(item.image_id)); | ||
+ | console.log(svgDoc.getElementById(item_id + '')); | ||
+ | console.log(typeof(svgDoc.getElementById(item_id + '')); | ||
} | } | ||
}); | }); | ||
Line 126: | Line 128: | ||
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.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | ||
}); | }); | ||
Line 133: | Line 135: | ||
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.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ $('#' + item.id).css('cursor', 'pointer') }); | ||
}); | }); |
Revision as of 17:38, 21 October 2017