CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 27: | Line 27: | ||
'translate_before' : 'matrix(0.48, 0, 0, 0.48, -85, 15.8398)', | 'translate_before' : 'matrix(0.48, 0, 0, 0.48, -85, 15.8398)', | ||
'translate_after' : 'matrix(0.48, 0, 0, 0.48, 0, 15.8398)', | 'translate_after' : 'matrix(0.48, 0, 0, 0.48, 0, 15.8398)', | ||
− | ' | + | 'sharapatagka' : 'asteris_on_click_mirna_xA0_Image' |
}, | }, | ||
Line 98: | Line 98: | ||
if(item.id != element.id){ | if(item.id != element.id){ | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
− | svgDoc.getElementById(item. | + | svgDoc.getElementById(item.sharapatagka).setAttribute('opacity', '0'); |
}else{ | }else{ | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_after); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_after); | ||
− | svgDoc.getElementById(item. | + | svgDoc.getElementById(item.sharapatagka).setAttribute('opacity', '1'); |
− | console.log(item. | + | |
− | console.log(typeof(item. | + | console.log(item.sharapatagka); |
− | console.log(svgDoc.getElementById(item. | + | console.log(typeof(item.sharapatagka)); |
− | console.log(typeof(svgDoc.getElementById(item. | + | console.log(svgDoc.getElementById(item.sharapatagka)); |
+ | console.log(typeof(svgDoc.getElementById(item.sharapatagka))); | ||
} | } | ||
}); | }); |
Revision as of 17:31, 21 October 2017