Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 419: Line 419:
margin-left:30px;
margin-left:30px;
font-size:medium;
font-size:medium;
 +
}
 +
#bttop img{
 +
height:50px;
 +
float:right;
}
}
</style>
</style>
Line 451: Line 455:
function loadContent(cont,link,height){
function loadContent(cont,link,height){
document.title = "σ-Re Counter | UT-Tokyo 2014";
document.title = "σ-Re Counter | UT-Tokyo 2014";
 +
 +
if(typeof cont === "undefined"){
 +
if(getUrlVars()["page"]){
 +
var str = getUrlVars()["page"];
 +
}else{
 +
var str = "Project-block";
 +
}
 +
}else{
 +
var str = cont;
 +
}
 +
if(typeof cont !== "undefined"){
if(typeof cont !== "undefined"){
if(cont != "Team-top"){
if(cont != "Team-top"){
Line 475: Line 490:
}
}
-
if(typeof cont === "undefined"){
+
 
-
if(getUrlVars()["page"]){
+
-
var str = getUrlVars()["page"];
+
-
}else{
+
-
var str = "Project-block";
+
-
}
+
-
}else{
+
-
var str = cont;
+
-
}
+
if(str == "Project-block"){
if(str == "Project-block"){
var box = document.getElementsByClassName("pageContentsBox");
var box = document.getElementsByClassName("pageContentsBox");
Line 493: Line 500:
var node = document.getElementById(str);
var node = document.getElementById(str);
node.style.display = "block";
node.style.display = "block";
 +
 +
var node = document.getElementById("bttop");
 +
node.style.display = "block";
 +
if(link){
if(link){
var href = "#" + link;
var href = "#" + link;

Revision as of 16:38, 9 October 2014