Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 481: Line 481:
if(getUrlVars()["page"]){
if(getUrlVars()["page"]){
var str = getUrlVars()["page"];
var str = getUrlVars()["page"];
-
alert(str);
 
}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);

Revision as of 14:21, 9 October 2014