diff options
| author | Julie Lala <jules@okfoc.us> | 2014-11-29 00:57:07 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-11-29 00:57:07 -0500 |
| commit | ca7dddb1a0ad759d3c762fc323f3604ba939e8c1 (patch) | |
| tree | 7bfabb795a5397db90cb36706784cc7de529fcb2 /js/copy.js | |
| parent | cebe1340f8c83bfceaca01fae923bc7d5fb2bff3 (diff) | |
fixedsysexcelsior with unicode
Diffstat (limited to 'js/copy.js')
| -rw-r--r-- | js/copy.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/copy.js b/js/copy.js deleted file mode 100644 index d1ae716..0000000 --- a/js/copy.js +++ /dev/null @@ -1,22 +0,0 @@ -var clipboard = (function () { - - var disabled = false; - var contentType = 'text/plain;charset=utf-8' - document.body.addEventListener('copy', function (e) { - if (disabled) { return } - if (e.clipboardData) { - e.preventDefault(); - e.clipboardData.setData(contentType, canvas.ascii()); - } - if (window.clipboardData) { - e.returnValue = false; - window.clipboardData.setData(contentType, canvas.ascii()); - } - }, false); - - return { - enable: function(){ disabled = false } - disable: function(){ disabled = true } - } - -})()
\ No newline at end of file |
