Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 536: | Line 536: | ||
node.style.display = "block"; | node.style.display = "block"; | ||
- | var | + | var btnode = document.getElementById("bttop"); |
- | + | 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( | + | if(node.getElementById(getUrlVars()["cont"])){ |
$("#contentsBody").mCustomScrollbar("scrollTo",target); | $("#contentsBody").mCustomScrollbar("scrollTo",target); | ||
}else{ | }else{ |