Template:CSS/UT-Tokyo/CTCD/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 453: | Line 453: | ||
margin-left:100px; | margin-left:100px; | ||
margin-right:100px; | margin-right:100px; | ||
+ | } | ||
+ | img.math{ | ||
+ | padding-left:50px; | ||
+ | } | ||
+ | img.sponsor{ | ||
+ | height:50px; | ||
+ | padding-left:50px; | ||
} | } | ||
</style> | </style> | ||
Line 484: | Line 491: | ||
function loadContent(cont,link){ | function loadContent(cont,link){ | ||
- | document.title = " | + | document.title = "σ-Re Counter | UT-Tokyo 2014"; |
- | + | ||
if(typeof cont !== "undefined"){ | if(typeof cont !== "undefined"){ | ||
if(cont != "Team-top"){ | if(cont != "Team-top"){ | ||
- | var op = cont.replace("-block",""); | + | if(cont != "Safety-block"){ |
- | + | var op = cont.replace("-block",""); | |
- | + | var opNode = document.getElementById(op); | |
- | + | if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){ | |
+ | open(op); | ||
+ | } | ||
} | } | ||
} | } | ||
Line 502: | Line 510: | ||
} | } | ||
if(tmp != "Team-top"){ | if(tmp != "Team-top"){ | ||
- | var op = tmp.replace("-block",""); | + | if(tmp != "Safety-block"){ |
- | + | var op = tmp.replace("-block",""); | |
- | + | var opNode = document.getElementById(op); | |
- | + | if(opNode.childNodes[0].childNodes[0].src.indexOf("open") == -1){ | |
+ | open(op); | ||
+ | } | ||
} | } | ||
} | } | ||
Line 527: | Line 537: | ||
} | } | ||
+ | var box = document.getElementsByClassName("pageContentsBox"); | ||
+ | var pc = document.getElementById("pageContents"); | ||
if(str == "Project-block"){ | if(str == "Project-block"){ | ||
- | + | box[0].style.height = "12300px"; | |
- | + | pc.style.height = "12250px"; | |
- | box[0].style.height = " | + | |
- | pc.style.height = " | + | |
}else if(str == "Modeling-block"){ | }else if(str == "Modeling-block"){ | ||
- | |||
- | |||
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 == "Safety-block"){ | ||
+ | box[0].style.height = "3000px"; | ||
+ | pc.style.height = "2950px"; | ||
}else if(str == "Team-top"){ | }else if(str == "Team-top"){ | ||
- | |||
- | |||
box[0].style.height = "1900px"; | box[0].style.height = "1900px"; | ||
pc.style.height = "1850px"; | pc.style.height = "1850px"; |
Revision as of 15:08, 13 October 2014