Permalink
Browse files

Initial layout of js and css plus required libs

  • Loading branch information...
1 parent 29cd5e0 commit c2f1e1672b9fcc9ff7392ca3255a1867f46b3635 @stephenmcd committed Jul 30, 2011
Showing with 3,398 additions and 2 deletions.
  1. +1 −0 .hgignore
  2. +3 −0 static/css/drawnby.css
  3. +10 −0 static/js/drawnby.js
  4. +924 −0 static/js/excanvas.js
  5. +18 −0 static/js/jquery.js
  6. +11 −0 static/js/jquery.tools.js
  7. +483 −0 static/js/json.js
  8. +1,931 −0 static/js/socket.io.js
  9. +15 −1 templates/base.html
  10. +2 −1 templates/view.html
View
@@ -5,3 +5,4 @@ syntax: glob
.DS_Store
.coverage
local_settings.py
+static/cache/*
View
@@ -0,0 +1,3 @@
+
+#canvas {border:1px solid #333;}
+
View
@@ -0,0 +1,10 @@
+$(function() {
+
+ var canvas = $('#canvas');
+ var context = document.getElementById('canvas').getContext('2d');
+ context.width = canvas.width();
+ context.height = canvas.height();
+ context.lineCap = 'round';
+ context.lineJoin = 'round';
+
+});
Oops, something went wrong.

0 comments on commit c2f1e16

Please sign in to comment.