Fix canvas.html.
This commit is contained in:
parent
532a9fd92e
commit
71085485e7
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue