Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 484: Line 484:
function open(name){
function open(name){
var node = document.getElementById(name);
var node = document.getElementById(name);
-
 
-
var list = new Array(7);
 
-
list[0] = "Project";
 
-
list[1] = "Result";
 
-
list[2] = "Lab";
 
-
list[3] = "Modeling";
 
-
list[4] = "Achievement";
 
-
list[5] = "Attribution";
 
-
list[6] = "Humanpractice";
 
-
 
-
var i;
 
-
for(i = 0;i<7;i++){
 
-
if(list[i] != name){
 
-
close(list[i]);
 
-
}
 
-
}
 
if(node.childNodes[0].childNodes[0].src.indexOf("open") == -1){
if(node.childNodes[0].childNodes[0].src.indexOf("open") == -1){
Line 549: Line 533:
}
}
}
}
 +
 +
var list = new Array(7);
 +
list[0] = "Project";
 +
list[1] = "Result";
 +
list[2] = "Lab";
 +
list[3] = "Modeling";
 +
list[4] = "Achievement";
 +
list[5] = "Attribution";
 +
list[6] = "Humanpractice";
 +
 +
if(typeof cont !== "undefined"){
if(typeof cont !== "undefined"){
Line 578: Line 573:
}
}
 +
var i;
 +
for(i = 0;i<7;i++){
 +
if(list[i] != op){
 +
close(list[i]);
 +
}
 +
}
if(typeof cont === "undefined"){
if(typeof cont === "undefined"){

Revision as of 14:51, 17 October 2014