CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 128: | Line 128: | ||
leftElements.forEach(function(item, index, array){ | leftElements.forEach(function(item, index, array){ | ||
if(item.id != element.id){ | if(item.id != element.id){ | ||
− | |||
− | |||
− | |||
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.image_id_sec).setAttribute('display', 'none'); | ||
+ | }else{ | ||
+ | svgDoc.getElementById(item.image_id).setAttribute('display', 'block'); | ||
+ | svgDoc.getElementById(item.image_id_sec).setAttribute('display', 'block'); | ||
} | } | ||
}); | }); | ||
rightElements.forEach(function(item, index, array){ | rightElements.forEach(function(item, index, array){ | ||
if(item.id != element.id){ | if(item.id != element.id){ | ||
− | |||
− | |||
− | |||
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.image_id_sec).setAttribute('display', 'none'); | ||
+ | }else{ | ||
+ | svgDoc.getElementById(item.image_id).setAttribute('display', 'block'); | ||
+ | svgDoc.getElementById(item.image_id_sec).setAttribute('display', 'block'); | ||
} | } | ||
}); | }); |
Revision as of 20:36, 22 October 2017
Click on the miRNAs to get to know us!