Team:Dundee

From 2014.igem.org

(Difference between revisions)
Line 147: Line 147:
      
      
<script>
<script>
-
 
+
               
-
var skipped = false;                 
+
/*
/*
  Code to check which kind of device written by Boris Smus
  Code to check which kind of device written by Boris Smus
Line 185: Line 184:
   }
   }
}
}
 +
 +
 +
 +
var skipped = false; 
 +
var desktop = false;
  window.onload = function(){
  window.onload = function(){
Line 196: Line 200:
         draw(outL, "paper");
         draw(outL, "paper");
   
   
-
         var desktop = detectDevice();
+
         desktop = detectDevice();
-
 
+
-
       
+
-
 
+
       if(desktop){               
       if(desktop){               
         bounceRanger();   
         bounceRanger();   
Line 241: Line 243:
                 })   
                 })   
-
 
+
if(desktop){
     $(document).mousemove(function(e){  
     $(document).mousemove(function(e){  
         if(e.pageX < 1500)
         if(e.pageX < 1500)
Line 247: Line 249:
     $("#ranger").css({left:e.pageX+5});   
     $("#ranger").css({left:e.pageX+5});   
         }
         }
-
     })      
+
     })  
 +
}     
   }
   }

Revision as of 10:25, 28 August 2014

Dundee 2014