Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 594: Line 594:
if(hoge == 1){
if(hoge == 1){
clearInterval(huga);
clearInterval(huga);
-
window.onload = function(){
+
if(typeof link !== "undefined"){
-
if(typeof link !== "undefined"){
+
if(link == "top"){
-
if(link == "top"){
+
$("#contentsBody").mCustomScrollbar("scrollTo","top");
-
$("#contentsBody").mCustomScrollbar("scrollTo","top");
+
-
}else{
+
-
var href = "#" + link;
+
-
var target = $(href);
+
-
$("#contentsBody").mCustomScrollbar("scrollTo",target);
+
-
}
+
}else{
}else{
-
if(typeof getUrlVars()["cont"] !== "undefined"){
+
var href = "#" + link;
-
var href = "#" + getUrlVars()["cont"];
+
var target = $(href);
-
var target = $(href);
+
$("#contentsBody").mCustomScrollbar("scrollTo",target);
-
$("#contentsBody").mCustomScrollbar("scrollTo",target);
+
}
-
}else{
+
}else{
-
$("#contentsBody").mCustomScrollbar("scrollTo","top");
+
if(typeof getUrlVars()["cont"] !== "undefined"){
-
}
+
var href = "#" + getUrlVars()["cont"];
 +
var target = $(href);
 +
$("#contentsBody").mCustomScrollbar("scrollTo",target);
 +
}else{
 +
$("#contentsBody").mCustomScrollbar("scrollTo","top");
}
}
}
}
}
}
-
},500);
+
},1000);
var team = document.getElementById("Team-top");
var team = document.getElementById("Team-top");
if(team.style.display != "none"){
if(team.style.display != "none"){

Revision as of 09:59, 16 October 2014