summaryrefslogtreecommitdiff
path: root/js/record.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-01-01 14:49:49 -0500
committerJulie Lala <jules@okfoc.us>2014-01-01 14:49:49 -0500
commit59d69074aa8930b19ea0ff41f5bf5786013b5c3c (patch)
tree9b7b420e35abac8857df9e45bc38c8486633314b /js/record.js
parentf7ab0968989abc05bd3640b41b83a8186e253e1b (diff)
Diffstat (limited to 'js/record.js')
-rw-r--r--js/record.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/record.js b/js/record.js
index d1eaed0..79f03f0 100644
--- a/js/record.js
+++ b/js/record.js
@@ -21,6 +21,7 @@
var frames = []
var curtain, outline
var dragging = false
+ var listening = false
var lastGif
init()
@@ -57,8 +58,8 @@
y_el.addEventListener("change", box_position, false)
window.addEventListener("keydown", keydown, false)
}
- var listening = false
function activate(){
+ console.log('activating')
listening = true
outline.style.display = "none"
controls.style.display = "block"
@@ -72,6 +73,7 @@
curtain.style.display = "none"
}
function keydown(e){
+ console.log(listening, e.keyCode)
if (e.keyCode == 27) { // esc
listening ? deactivate() : activate()
}