Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 451: | Line 451: | ||
function loadContent(cont,link,height){ | function loadContent(cont,link,height){ | ||
document.title = "σ-Re Counter | UT-Tokyo 2014"; | document.title = "σ-Re Counter | UT-Tokyo 2014"; | ||
- | var op = cont.replace("-block",""); | + | |
- | + | if(typeof cont !== "undefined"){ | |
- | + | var op = cont.replace("-block",""); | |
- | + | var opNode = document.getElementById(op); | |
- | + | if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){ | |
+ | open(op); | ||
+ | } | ||
} | } | ||
var node = document.getElementById("pageContents"); | var node = document.getElementById("pageContents"); |