From ca7dddb1a0ad759d3c762fc323f3604ba939e8c1 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Sat, 29 Nov 2014 00:57:07 -0500 Subject: fixedsysexcelsior with unicode --- js/copy.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 js/copy.js (limited to 'js') 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 -- cgit v1.2.3-70-g09d2 From 05d359b6cdabc42025881e0a39c00995d8a29394 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Sat, 29 Nov 2014 00:57:13 -0500 Subject: FIX CLIPBOARD --- fixedsys-excelsior.zip | Bin 0 -> 57272 bytes js/clipboard.js | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 fixedsys-excelsior.zip create mode 100644 js/clipboard.js (limited to 'js') diff --git a/fixedsys-excelsior.zip b/fixedsys-excelsior.zip new file mode 100644 index 0000000..367392a Binary files /dev/null and b/fixedsys-excelsior.zip differ diff --git a/js/clipboard.js b/js/clipboard.js new file mode 100644 index 0000000..744901c --- /dev/null +++ b/js/clipboard.js @@ -0,0 +1,22 @@ +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 -- cgit v1.2.3-70-g09d2