• Joel Martin's avatar
    Status/error refactor. Fix firefox bugs. · 8759ea6f
    Joel Martin authored
    - All state/status updates go through updateState routine which
      updates the status line also.
    
    - Old firefox (and opera) don't support canvas createImageData, so use
      getImageData as replacement.
    
    - Add console.warn and console.error stubs so that firefox without
      firebug doesn't crap out.
    
    - If no WebSockets then error if no flash or if URL is location (flash
      will refuse to load the object for security reasons).
    8759ea6f
canvas.html 775 Bytes
<html>
    <head><title>Canvas Experiments</title></head>
    <body>
        Canvas:<br>
        <canvas id="tutorial" width="640" height="480"
                style="border-style: dotted; border-width: 1px;">
            Canvas not supported.
        </canvas>
    </body>

    <!--
    <script type='text/javascript' 
        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
    -->

    <script src="include/mootools.js"></script>
    <script src="include/util.js"></script>
    <script src="canvas.js"></script>

    <script>
        window.onload = function() {
            console.log("here1");
            Canvas.init('tutorial', 640, 480);
            Canvas.draw();
            console.log("here2");
        }
    </script>
</html>