JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
run.sh: complain if not passed width/height
[watch-my-terminal.git] / index.html
index d540026..0ed8616 100644 (file)
@@ -3,32 +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 lines = 0;
-                       var log = function (str) {
-                               if(lines > 66) {
-                                       $($body.children().get(0)).remove();
-                               } else {
-                                       lines += 1;
-                               }
-                               $body.append($('<div>').text(str));
-                       };
-                       var socket = io.connect('http://localhost');
-                       socket.on('write', function (data) {
-                               log(data);
-                       });
-               });
-       </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>