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

m
m
Line 210: Line 210:
 
     <script>
 
     <script>
 
           var smallscreen = window.matchMedia("(max-width: 900px)");
 
           var smallscreen = window.matchMedia("(max-width: 900px)");
           var bigscreen = window.matchMedia("(min-width: 2000px)");
+
           var bigscreen = window.matchMedia("(min-width: 1400px)");
 +
          var superscreen = window.matchMedia("(min-width: 2000px)");
 
           var position = 3000;
 
           var position = 3000;
          window.alert(bigscreen.matches);
+
 
 
           $(window).on('beforeunload', function(){
 
           $(window).on('beforeunload', function(){
 
             $(window).scrollTop(0);
 
             $(window).scrollTop(0);
Line 219: Line 220:
 
           if(smallscreen.matches) {
 
           if(smallscreen.matches) {
 
             var timeoutVar = 0;
 
             var timeoutVar = 0;
           } else if(bigscreen.matches){
+
           } else if(superscreen.matches) {
 
             position = 8000;
 
             position = 8000;
 +
          } else if(bigscreen.matches){
 +
            position = 6000;
 
           } else {
 
           } else {
 
             var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000);
 
             var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000);

Revision as of 23:46, 12 October 2018

Skip

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

Contact Us

Sponsors