JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
plain text flows and wraps properly
[watch-my-terminal.git] / index.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4         <title>Remote Terminal Viewer</title>
5         <script src="/jquery.js"></script>
6         <script src="/socket.io/socket.io.js"></script>
7         <script>
8                 $(function() {
9                         var $body = $('body');
10                         var socket = io.connect('http://localhost');
11                         socket.on('init', function (v) {
12                                 $body.children().remove();
13                                 for(i in v.text) {
14                                         $body.append($('<div>').text(v.text[i].join('')));
15                                 }
16                         });
17                 });
18         </script>
19         <style>
20                 body {
21                         color: white;
22                         background: black;
23                         font-family: monospace;
24                         font-size: 12px;
25                         line-height: 14px;
26                         white-space: pre;
27                 }
28         </style>
29 </head>
30 <body>
31 </body>
32 </html>