CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 180: | Line 180: | ||
svgDoc.getElementById(item.id).setAttribute('cursor', 'pointer'); | svgDoc.getElementById(item.id).setAttribute('cursor', 'pointer'); | ||
} | } | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | function svgFunctionalityMouseLeave(element){ | ||
+ | |||
+ | leftElements.forEach(function(item, index, array){ | ||
+ | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
+ | }); | ||
+ | rightElements.forEach(function(item, index, array){ | ||
+ | svgDoc.getElementById(item.id).setAttribute('transform', item.translate_before); | ||
}); | }); | ||
} | } | ||
Line 193: | Line 203: | ||
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) }); | ||
+ | svgDoc.getElementById(item.id).addEventListener('mouseleave', function(){ svgFunctionalityMouseLeave(item) }); | ||
}); | }); | ||
Line 201: | Line 212: | ||
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) }); | ||
+ | svgDoc.getElementById(item.id).addEventListener('mouseleave', function(){ svgFunctionalityMouseLeave(item) }); | ||
}); | }); | ||
Revision as of 02:11, 23 October 2017
Click on the miRNAs to get to know us!
SVG span box for dry lab
SVG span box for wet lab