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";
-
alert(cont);
 
var op = cont.replace("-block","");
var op = cont.replace("-block","");
var opNode = document.getElementById(op);
var opNode = document.getElementById(op);
Line 465: Line 464:
}
}
-
if(cont){
+
if(typeof cont === "undefined"){
-
var str = cont;
+
-
}else{
+
if(window.location.search){
if(window.location.search){
var str = window.location.search.substring(1,window.location.search.length);
var str = window.location.search.substring(1,window.location.search.length);
Line 473: Line 470:
var str = "Project-block";
var str = "Project-block";
}
}
 +
}else{
 +
var str = cont;
}
}
if(str == "Project-block"){
if(str == "Project-block"){

Revision as of 17:08, 8 October 2014