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.concat.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/record.concat.js') diff --git a/js/record.concat.js b/js/record.concat.js index 2d2a615..d9a10a8 100644 --- a/js/record.concat.js +++ b/js/record.concat.js @@ -1016,6 +1016,8 @@ function GifEncoder(){ 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() @@ -1032,6 +1034,7 @@ function GifEncoder(){ requestAnimationFrame(recordloop) status("recording") disable("record") + unclickable("curtain") } function recordloop(){ var canvas = document.createElement("canvas") @@ -1104,6 +1107,7 @@ function GifEncoder(){ rendering = false enable("record") enable("save") + clickable("curtain") } function save (e){ e.stopPropagation() -- cgit v1.2.3-70-g09d2