Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

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

Revision as of 07:15, 12 October 2014