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