Template:Team:Washington/Templates/Header
From 2009.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
function __s() { | function __s() { | ||
- | + | console.log("current: ", Math.max(document.documentElement.scrollTop, document.body.scrollTop)); | |
- | + | ||
- | + | ||
if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) === 0) { | if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) === 0) { | ||
window.scrollTo(0, 86); | window.scrollTo(0, 86); |
Revision as of 06:50, 8 October 2009