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