CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 164: | Line 164: | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
svgDoc.getElementById(item.image_id).setAttribute('display', 'none'); | svgDoc.getElementById(item.image_id).setAttribute('display', 'none'); | ||
+ | svgDoc.getElementById(item.image_id + '_1_').setAttribute('display', 'none'); | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionalityClick(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionalityClick(item) }); | ||
svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ svgFunctionalityHover(item) }); | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ svgFunctionalityHover(item) }); | ||
Line 171: | Line 172: | ||
svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
svgDoc.getElementById(item.image_id).setAttribute('display', 'none'); | svgDoc.getElementById(item.image_id).setAttribute('display', 'none'); | ||
+ | svgDoc.getElementById(item.image_id + '_1_').setAttribute('display', 'none'); | ||
svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionalityClick(item) }); | svgDoc.getElementById(item.id).addEventListener('click', function(){ svgFunctionalityClick(item) }); | ||
svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ svgFunctionalityHover(item) }); | svgDoc.getElementById(item.id).addEventListener('mouseover', function(){ svgFunctionalityHover(item) }); |
Revision as of 20:29, 22 October 2017
Click on the miRNAs to get to know us!