EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 260: | Line 260: | ||
var hidingPos = document.getElementById("hiding-block").offsetTop; | var hidingPos = document.getElementById("hiding-block").offsetTop; | ||
var bacteriaPos = document.getElementById("bacteria-nadando").offsetTop; | var bacteriaPos = document.getElementById("bacteria-nadando").offsetTop; | ||
− | |||
− | |||
window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos); | window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos); | ||
+ | |||
+ | $(window).scroll(function(event) { | ||
var scroll = $(window).scrollTop(); | var scroll = $(window).scrollTop(); |
Revision as of 18:55, 13 October 2018