Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
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){ | ||
- | |||
$("#contentsBody").mCustomScrollbar("scrollTo",target); | $("#contentsBody").mCustomScrollbar("scrollTo",target); | ||
}else{ | }else{ |