Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
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","");
+
 
-
var opNode = document.getElementById(op);
+
if(typeof cont !== "undefined"){
-
+
var op = cont.replace("-block","");
-
if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){
+
var opNode = document.getElementById(op);
-
open(op);
+
if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){
 +
open(op);
 +
}
}
}
var node = document.getElementById("pageContents");
var node = document.getElementById("pageContents");

Revision as of 17:10, 8 October 2014