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",""); | 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"){ |
- | + | ||
- | + | ||
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"){ |