Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 544: Line 544:
$("#contentsBody").mCustomScrollbar("scrollTo",target);
$("#contentsBody").mCustomScrollbar("scrollTo",target);
}else{
}else{
-
alert(getUrlVars()["cont"]);
 
if(typeof getUrlVars()["cont"] !== "undefined"){
if(typeof getUrlVars()["cont"] !== "undefined"){
var href = "#" + getUrlVars()["cont"];
var href = "#" + getUrlVars()["cont"];
Line 552: Line 551:
var node = document.getElementById(str);
var node = document.getElementById(str);
alert(tmpStr);
alert(tmpStr);
 +
if(document.getElementById(tempStr).style.display != "none"){
 +
alert("test");
 +
}else if(document.getElementById(tempStr).style.display == "none"){
 +
alert("test2");
 +
}else{
 +
alert("test3");
 +
}
if(document.getElementById(str).getElementById(tmpStr) != null){
if(document.getElementById(str).getElementById(tmpStr) != null){
$("#contentsBody").mCustomScrollbar("scrollTo",target);
$("#contentsBody").mCustomScrollbar("scrollTo",target);

Revision as of 07:38, 12 October 2014