Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

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

Revision as of 07:23, 12 October 2014