Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 536: Line 536:
node.style.display = "block";
node.style.display = "block";
-
var node = document.getElementById("bttop");
+
var btnode = document.getElementById("bttop");
-
node.style.display = "block";
+
btnode.style.display = "block";
if(link){
if(link){
Line 547: Line 547:
var href = "#" + getUrlVars()["cont"];
var href = "#" + getUrlVars()["cont"];
var target = $(href);
var target = $(href);
-
if(target.style.display != "none"){
+
if(node.getElementById(getUrlVars()["cont"])){
$("#contentsBody").mCustomScrollbar("scrollTo",target);
$("#contentsBody").mCustomScrollbar("scrollTo",target);
}else{
}else{

Revision as of 07:07, 12 October 2014