Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 548: | Line 548: | ||
var href = "#" + getUrlVars()["cont"]; | var href = "#" + getUrlVars()["cont"]; | ||
var target = $(href); | var target = $(href); | ||
+ | alert(getUrlVars()["cont"]); | ||
+ | alert(node.getElementById(getUrlVars()["cont"])); | ||
if(node.getElementById(getUrlVars()["cont"]) != null){ | if(node.getElementById(getUrlVars()["cont"]) != null){ | ||
$("#contentsBody").mCustomScrollbar("scrollTo",target); | $("#contentsBody").mCustomScrollbar("scrollTo",target); |