Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 481: | Line 481: | ||
if(getUrlVars()["page"]){ | if(getUrlVars()["page"]){ | ||
var str = getUrlVars()["page"]; | var str = getUrlVars()["page"]; | ||
- | |||
}else{ | }else{ | ||
var str = "Project-block"; | var str = "Project-block"; | ||
Line 504: | Line 503: | ||
if(getUrlVars()["cont"]){ | if(getUrlVars()["cont"]){ | ||
var href = "#" + getUrlVars()["cont"]; | var href = "#" + getUrlVars()["cont"]; | ||
+ | alert(href); | ||
var target = $(href); | var target = $(href); | ||
$("#contentsBody").mCustomScrollbar("scrollTo",target); | $("#contentsBody").mCustomScrollbar("scrollTo",target); |