EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 65: | Line 65: | ||
width: 100%; | width: 100%; | ||
height: 100vh; | height: 100vh; | ||
− | |||
float: left; | float: left; | ||
position: sticky; | position: sticky; | ||
Line 209: | Line 208: | ||
<script> | <script> | ||
+ | |||
+ | var hiding = document.getElementById("hiding-block"); | ||
+ | var hidingPos = hiding.offsetTop; | ||
+ | var bacteriaPos = document.getElementById("hiding-block").offsetTop; | ||
+ | |||
+ | window.alert(hidingPos); | ||
+ | window.alert(bacteriaPos); | ||
+ | |||
var screen_900 = window.matchMedia("(max-width: 900px)"); | var screen_900 = window.matchMedia("(max-width: 900px)"); | ||
var screen_1024 = window.matchMedia("(min-width: 1024px)"); | var screen_1024 = window.matchMedia("(min-width: 1024px)"); |
Revision as of 18:39, 13 October 2018