summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-04 23:54:12 -0400
committerJules Laplace <jules@okfoc.us>2015-08-04 23:54:12 -0400
commit18648921f75a7c458cf0c951c249b28a48f08a6b (patch)
tree4842285de287da85b820ed878b363175293e34f7 /public/js/index.js
parent82f90cffd91b0a68e9e60a41192d7e775f523843 (diff)
ws shit
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index d1af979..560a2a1 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2,7 +2,10 @@ var app = (function(){
var app = {}
app.init = function(){
- // app.socket =
+ // ws.connect()
+
+ $(window).on("focus", app.focus)
+ $(window).on("blur", app.blur)
}
document.addEventListener('DOMContentLoaded', app.init)