File: index.html

package info (click to toggle)
python-cyclone 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,388 kB
  • ctags: 1,372
  • sloc: python: 8,823; sh: 183; makefile: 13; sql: 12
file content (36 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (2)
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
34
35
36
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <style type="text/css">
    body {
      font-family: sans-serif;
    }
    #console {
      width: 900px;
      height: 440px;
      background-color: black;
      font-family: courier;
      color: white;
    }
    small {
      color: #ccc;
      font-size: .5em;
    }
  </style>
</head>
<body>
  <center>
    <h1>Episode IV <small>Live from towel.blinkenlights.nl</small></h1>
    <pre id="console"></pre>
  </center>

  <script>
    var source = new EventSource('/live');
    source.onmessage = function(e) {
      document.getElementById("console").innerHTML = e.data;
      //console.log(e.data);
    };
  </script>
</body>
</html>