summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-02-07 11:20:00 -0500
committerJules Laplace <jules@okfoc.us>2015-02-07 11:20:00 -0500
commitebe49c97523205a7764182c45fa213aae79e844e (patch)
treea5c0629c38f4e7513d3842f2535fb1cec30c1beb
parent7c1e99bb1bc6c2a89bc42fb9c295933f38ac9e0c (diff)
switchin to other com
-rw-r--r--js/app.js2
-rw-r--r--js/clipboard.js7
2 files changed, 8 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index e9ed28f..5a61bde 100644
--- a/js/app.js
+++ b/js/app.js
@@ -46,7 +46,7 @@ function bind () {
if (selecting) {
selection.up(e)
}
- });
+ })
window.addEventListener('mousedown', function(e){
if (current_tool.name == "shader") { return }
diff --git a/js/clipboard.js b/js/clipboard.js
index 66c0c67..6169b56 100644
--- a/js/clipboard.js
+++ b/js/clipboard.js
@@ -87,6 +87,13 @@ var clipboard = (function () {
},
import_html: function () {
+ var rapper = document.createElement("div")
+ rapper.innerHTML = import_textarea.value
+ var lines = rapper.innerText.split("\n")
+ var width = lines.reduce(function(a,b){ return Math.max(a, b.length) })
+ var height = lines.length
+ zz = rapper.children
+ rapper
},
import_text: function () {