<head>
<title>Remote Terminal Viewer</title>
<script src="/jquery.js"></script>
+ <script src="/terminal.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;