summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpepper <peppersclothescult@gmail.com>2015-02-14 11:41:48 -0800
committerpepper <peppersclothescult@gmail.com>2015-02-14 11:41:48 -0800
commitc34ad13b8e9d4a162ba702a5be129c7e280fe220 (patch)
tree08847f72b83741437aed3ccee0b18a6211fc5b18
parent281a99716a5ba179dd4aef3e9897c6325362225a (diff)
added a few things
-rw-r--r--sketch.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/sketch.html b/sketch.html
index 18baf33..aa5f5de 100644
--- a/sketch.html
+++ b/sketch.html
@@ -5,6 +5,12 @@
#canvas_wrapper{
// position:absolute;
display: inline-block;
+white-space: pre-wrap;
+word-wrap: break-word;
+-webkit-user-select: none;
+-moz-user-select: none;
+user-select: none;
+// pointer-events: none;
}
.canvas_cell{
border: 1px solid black;
@@ -88,5 +94,55 @@ $(document).ready(function(){
c.initialize($("#cols").val(), $("#rows").val());
});
+//var isDragging = false;
+//$("a")
+//.mousedown(function() {
+// $(window).mousemove(function() {
+// isDragging = true;
+// $(window).unbind("mousemove");
+// });
+//})
+//.mouseup(function() {
+// var wasDragging = isDragging;
+// isDragging = false;
+// $(window).unbind("mousemove");
+// if (!wasDragging) { //was clicking
+// $("#throbble").show();
+// }
+//});
+// lex.span.addEventListener('mousedown', function(e){
+// e.preventDefault()
+// dragging = true
+// current_canvas = canvas
+// if (drawing) {
+// draw.down(e, lex, point)
+// }
+// else if (selecting) {
+// selection.down(e, lex, point)
+// }
+// else if (filling) {
+// draw.fill(brush, x, y)
+// }
+// lex.focus()
+// })
+// lex.span.addEventListener("mousemove", function(e){
+// if (! dragging) return
+// if (drawing) {
+// draw.move(e, lex, point)
+// }
+// else if (selecting) {
+// selection.move(e, lex, point)
+// }
+// lex.focus()
+// })
+//
+// })
+// }
+//
+// return exports
+//
+//})()
+
+
</script>
</html>