Fix canvas.html.

This commit is contained in:
Joel Martin 2010-04-06 13:58:06 -05:00
parent 532a9fd92e
commit 71085485e7
1 changed files with 5 additions and 2 deletions

View File

@ -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 @@
<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>