Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 550: Line 550:
alert(getUrlVars()["cont"]);
alert(getUrlVars()["cont"]);
var tmpStr = getUrlVars()["cont"];
var tmpStr = getUrlVars()["cont"];
 +
var node = document.getElementById(str);
alert(tmpStr);
alert(tmpStr);
if(node.getElementById(tmpStr) != null){
if(node.getElementById(tmpStr) != null){
-
alert("test");
 
$("#contentsBody").mCustomScrollbar("scrollTo",target);
$("#contentsBody").mCustomScrollbar("scrollTo",target);
}else{
}else{

Revision as of 07:26, 12 October 2014