EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 208: | Line 208: | ||
<script> | <script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var screen_900 = window.matchMedia("(max-width: 900px)"); | var screen_900 = window.matchMedia("(max-width: 900px)"); | ||
Line 266: | Line 259: | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
+ | |||
+ | var hiding = document.getElementById("hiding-block"); | ||
+ | var hidingPos = hiding.offsetTop; | ||
+ | var bacteriaPos = document.getElementById("hiding-block").offsetTop; | ||
+ | |||
+ | window.alert("hiding " + hidingPos); | ||
+ | window.alert("bacteria " + bacteriaPos); | ||
+ | |||
var scroll = $(window).scrollTop(); | var scroll = $(window).scrollTop(); | ||
var scrollOpacity = map(scroll, 0, 350, 1, 0); | var scrollOpacity = map(scroll, 0, 350, 1, 0); |
Revision as of 18:41, 13 October 2018