summaryrefslogtreecommitdiff
path: root/js/copy.js
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2014-11-29 00:57:32 -0500
committerJules <jules@asdf.us>2014-11-29 00:57:32 -0500
commitb25804afdf38918c9e205e9acda50bdbfe24cd12 (patch)
treecc7fee7227064202f2d041a10c89c7941097dc70 /js/copy.js
parent9f0938e98e329d26f06714a1e4937a4ec7e862ba (diff)
parent05d359b6cdabc42025881e0a39c00995d8a29394 (diff)
Merge branch 'master' of ghghgh.us:ascii
Diffstat (limited to 'js/copy.js')
-rw-r--r--js/copy.js22
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