diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-05-06 01:57:11 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-05-06 01:57:11 -0400 |
| commit | f650127c109fb65a589388cefb51eb990b151612 (patch) | |
| tree | 026bbb4921cd103b4eec3636393f537c6e903299 /webcam.html | |
| parent | 05f454468e71d61ae4f0674223066efa118955b0 (diff) | |
experimental palette
Diffstat (limited to 'webcam.html')
| -rw-r--r-- | webcam.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webcam.html b/webcam.html index edf4ddc..5b40d6e 100644 --- a/webcam.html +++ b/webcam.html @@ -1,3 +1,4 @@ +<meta charset="UTF-8"> <link rel="stylesheet" href="css/sally.css" type="text/css" charset="utf-8" /> <style> #controls { width: 220px; float: left; padding: 10px; } @@ -109,9 +110,9 @@ function save (){ MircColor.fromCanvas(camera, saveText, { width: width, ratio: ratio, neighbor: nn }) function saveText(rows) { text_style.value = MircColor.ascii(rows) - if (window.self !== window.top) { - window.parent.postMessage(text_style.value, "*"); - } + if (window.self !== window.top) { + window.parent.postMessage(text_style.value, "*"); + } } } nn_el.addEventListener('change', function(){ |
