JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
run.sh: complain if not passed width/height
[watch-my-terminal.git] / index.html
index 091da51..0ed8616 100644 (file)
@@ -3,26 +3,20 @@
 <head>
        <title>Remote Terminal Viewer</title>
        <script src="/jquery.js"></script>
+       <script src="/terminal.js"></script>
+       <script src="/htmlterm.js"></script>
+       <script src="/client.js"></script>
        <script src="/socket.io/socket.io.js"></script>
-       <script>
-               $(function() {
-                       var $body = $('body');
-                       var socket = io.connect('http://localhost');
-                       socket.on('init', function (v) {
-                               $body.children().remove();
-                               for(i in v.text) {
-                                       $body.append($('<div>').text(v.text[i].join('')));
-                               }
-                       });
-               });
-       </script>
        <style>
                body {
-                       color: white;
-                       background: black;
                        font-family: monospace;
                        font-size: 12px;
                        line-height: 14px;
+                       padding: 0;
+                       margin: 0;
+               }
+               body code {
+                       display: block;
                        white-space: pre;
                }
        </style>