Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 492: Line 492:
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);

Revision as of 14:28, 9 October 2014