User:Zophar/core.js

/* Defines universal variables and handle mousemove, and window resize

var ttHTMLStart = ' '; var crlf = new RegExp("\r\n", "g"); var mousePos = null; var winSize = {x:$(window).width, y:$(window).height};

//Document mousemove $(document).mousemove(function(e){	mousePos = {x:e.pageX, y:e.pageY}; }); //Document resize event $(document).resize(function(e){	winSize = {x:$(window).width, y:$(window).height} });