summaryrefslogtreecommitdiff
path: root/public/assets/js/index.js
blob: c2275df2f7e3d8205f483f2a3cf1f4627d19e14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var app = (function(){
  var app = {}
  
  var id = -1
  
  app.init = function(){
    app.view = new NavView ()
    app.upload = new DragView ()

    $(window).on("focus", app.focus)
    $(window).on("blur", app.blur)
  }
  
  app.focused = true
  app.typing = false
  
  app.focus = function(){
    app.focused = true
  }

  app.blur = function(){
    app.focused = false
  }

  document.addEventListener('DOMContentLoaded', app.init)  
  
  return app
})()