Difference between revisions of "Team:Tec-Monterrey/sandbox"

m
m
Line 208: 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)");
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

Skip

E. coding
Tec-Monterrey
Seccion Acevedo Interactive Entertainement System Co. S.A. de C.V. Ind.

Contact Us

Sponsors