diff options
Diffstat (limited to 'js/record.js')
| -rw-r--r-- | js/record.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/record.js b/js/record.js index bdb5a71..f34bdd3 100644 --- a/js/record.js +++ b/js/record.js @@ -108,6 +108,8 @@ function hide(id){ document.getElementById(id).style.display="none" } function enable(id){ document.getElementById(id).removeAttribute("disabled") } function disable(id){ document.getElementById(id).setAttribute("disabled","disabled") } + function clickable(id){ document.getElementById(id).style.pointerEvents = "auto" } + function unclickable(id){ document.getElementById(id).style.pointerEvents = "none" } function px(n){ return (~~n) + "px" } function record(e){ e.stopPropagation() @@ -124,6 +126,7 @@ requestAnimationFrame(recordloop) status("recording") disable("record") + unclickable("curtain") } function recordloop(){ var canvas = document.createElement("canvas") @@ -196,6 +199,7 @@ rendering = false enable("record") enable("save") + clickable("curtain") } function save (e){ e.stopPropagation() |
