Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 489: | Line 489: | ||
if(typeof cont !== "undefined"){ | if(typeof cont !== "undefined"){ | ||
if(cont != "Team-top"){ | if(cont != "Team-top"){ | ||
- | var op = cont.replace("-block",""); | + | if(cont != "Safety-block"){ |
- | + | var op = cont.replace("-block",""); | |
- | + | var opNode = document.getElementById(op); | |
- | + | if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){ | |
+ | open(op); | ||
+ | } | ||
} | } | ||
} | } |