CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 174: | Line 174: | ||
leftElements.forEach(function(item, index, array){ | leftElements.forEach(function(item, index, array){ | ||
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_sec).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 182: | Line 182: | ||
rightElements.forEach(function(item, index, array){ | rightElements.forEach(function(item, index, array){ | ||
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_sec).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:39, 22 October 2017
Click on the miRNAs to get to know us!