logs.html 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<html>
    <head>
        <title></title>
        <style>
          html { background-color: black; font-family:'Courier New'; font-size: 16pt; color: white; }
          .debug { color: lightgray; }
          .message { color: white; }
          .warning { color: orange; }
          .error { color: red; }
        </style>
        <script>
            function append_text(msg) {
                var content = document.getElementById("content");
                var new_text = document.createTextNode(msg);
                content.appendChild(new_text);
            }
            function append_nl() {
                var content = document.getElementById("content");
                var element = document.createElement('br');
                content.appendChild(element);
            }
            function clean() {
                var content = document.getElementById("content");   
                while (content.firstChild) {
                    content.removeChild(content.firstChild);
                }
            }
        </script>
    </head>
    <body>
        <p><pre id="content"></pre></p>
    </body>
</html>