Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 455: 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"){
Line 474: Line 464:
}
}
}
}
-
}else if(getUrlVars()["page"]){
+
}else{
 +
var tmp;
 +
if(getUrlVars()["page"]){
 +
tmp = getUrlVars()["page"];
 +
}else{
 +
tmp = "Project-block";
 +
}
if(getUrlVars()["page"] != "Team-top"){
if(getUrlVars()["page"] != "Team-top"){
var op = getUrlVars()["page"].replace("-block","");
var op = getUrlVars()["page"].replace("-block","");
Line 490: Line 486:
}
}
 +
 +
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"){
Line 599: Line 605:
}
}
}
}
 +
}
 +
function bttop(){
 +
$("#contentsBody").mCustomScrollbar("scrollTo","top");
}
}
</script>
</script>

Revision as of 16:42, 9 October 2014