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