Commit 71085485 authored by Joel Martin's avatar Joel Martin

Fix canvas.html.

parent 532a9fd9
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<head><title>Canvas Experiments</title></head> <head><title>Canvas Experiments</title></head>
<body> <body>
Canvas:<br> Canvas:<br>
<canvas id="tutorial" width="640" height="480"> <canvas id="tutorial" width="640" height="480"
style="border-style: dotted; border-width: 1px;">
Canvas not supported. Canvas not supported.
</canvas> </canvas>
...@@ -17,8 +18,10 @@ ...@@ -17,8 +18,10 @@
<script> <script>
window.onload = function() { window.onload = function() {
Canvas.init_canvas('tutorial', 640, 480); debug("here1");
Canvas.init('tutorial', 640, 480);
Canvas.draw(); Canvas.draw();
debug("here2");
} }
</script> </script>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment