Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 532: Line 532:
}
}
 +
var box = document.getElementsByClassName("pageContentsBox");
 +
var pc = document.getElementById("pageContents");
if(str == "Project-block"){
if(str == "Project-block"){
-
var box = document.getElementsByClassName("pageContentsBox");
 
-
var pc = document.getElementById("pageContents");
 
box[0].style.height = "12300px";
box[0].style.height = "12300px";
pc.style.height = "12250px";
pc.style.height = "12250px";
}else if(str == "Modeling-block"){
}else if(str == "Modeling-block"){
-
var box = document.getElementsByClassName("pageContentsBox");
 
-
var pc = document.getElementById("pageContents");
 
box[0].style.height = "18000px";
box[0].style.height = "18000px";
pc.style.height = "17950px";
pc.style.height = "17950px";
 +
}else if(str == "Attribution-block"){
 +
box[0].style.height = "3000px";
 +
pc.style.height = "2950px";
}else if(str == "Team-top"){
}else if(str == "Team-top"){
-
var box = document.getElementsByClassName("pageContentsBox");
 
-
var pc = document.getElementById("pageContents");
 
box[0].style.height = "1900px";
box[0].style.height = "1900px";
pc.style.height = "1850px";
pc.style.height = "1850px";

Revision as of 16:01, 12 October 2014