summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-03-31 19:46:22 +0200
committerJules Laplace <julescarbon@gmail.com>2018-03-31 19:46:22 +0200
commit655c5293708300deaf11a8b6a924e7b817bf6288 (patch)
tree01312e544f8a66d76a088b48d6fbfce8e7101296 /js
parent1cd3c039adaeba32478194b6181d8521bfdc2b17 (diff)
pankeizing
Diffstat (limited to 'js')
-rw-r--r--js/app.js2
-rw-r--r--js/ui/controls.js8
2 files changed, 9 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 5898f5c..64f8bea 100644
--- a/js/app.js
+++ b/js/app.js
@@ -82,7 +82,7 @@ function bind () {
})
window.onbeforeunload = function() {
- if (changed && !in_iframe()) return "You have edited this drawing."
+ // if (changed && !in_iframe()) return "You have edited this drawing."
}
function in_iframe () {
diff --git a/js/ui/controls.js b/js/ui/controls.js
index 8da4994..32a329a 100644
--- a/js/ui/controls.js
+++ b/js/ui/controls.js
@@ -164,6 +164,14 @@ var controls = (function(){
clipboard.show()
clipboard.export_mode()
}
+ controls.send_to_irc = new ClipboardTool (send_to_irc_el)
+ controls.send_to_irc.use = function(){
+ changed && clipboard.upload_png()
+ clipboard.show()
+ clipboard.export_mode()
+ alert('your ascii art is now on display on the IRC channel inside the panke.gallery!')
+ }
+
controls.load = new ClipboardTool (load_el)
controls.load.use = function(){
// console.log("use")