critical bugfix

- don't assume jquery is available when initially processing JS - setupIdle function added
- don't detect portals from a 'turret' entry - use 'portalV2' as the stock site does
- don't try to display the field MU counts when not in the data
This commit is contained in:
Jon Atkins
2013-08-27 21:29:54 +01:00
parent 92aab3f328
commit 39faef2c4c
3 changed files with 9 additions and 5 deletions

View File

@ -44,8 +44,11 @@ var idleMouseMove = function(e) {
}
}
$('body').keypress(idleReset);
$('body').mousemove(idleMouseMove);
window.setupIdle = function() {
$('body').keypress(idleReset);
$('body').mousemove(idleMouseMove);
}
window.isIdle = function() {
return window.idleTime >= window._idleTimeLimit;