Difference between revisions of "Template:Exeter"

Line 323: Line 323:
 
var main = function() {
 
var main = function() {
  
var width = jqUpdateSize();
+
var width = $(window).width;
 
var mouseX = 0, limitX = width-350;
 
var mouseX = 0, limitX = width-350;
 
$(window).mousemove(function(e){
 
$(window).mousemove(function(e){
Line 350: Line 350:
 
};
 
};
 
      
 
      
function jqUpdateSize(){
+
$(document).ready(main);
// Get the dimensions of the viewport
+
    var width = $(window).width();
+
    return width;
+
};
+
   
+
$(window).resize(main);
+
  
 
</script>
 
</script>

Revision as of 08:40, 19 August 2015