From 783bb25cf2e645ba6339b8e6bb1c32726348cd60 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Fri, 27 Dec 2013 17:51:18 -0500 Subject: hide curtain while recording --- js/record.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/record.js') 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() -- cgit v1.2.3-70-g09d2