Commits

Eric Fredricksen committed adc2643

Support static, anyway, in Firefox

Comments (0)

Files changed (1)

 <div id="fps"></div>
 </div>
 <canvas width=80 height=32></canvas>
-<video autoplay>vid</video>
+<video autoplay></video>
 
 <script>
 window.URL = window.URL || window.webkitURL;
 var HREVERSE = true;
 var MESSAGE;
 
-function msg(id) { MESSAGE = $('#title').innerText + $('#' + id).innerText }
+function msg(id) { MESSAGE = $('#title').innerHTML + $('#' + id).innerHTML }
 
 function go() {
   msg('skzzt');
   ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
 
   if (MESSAGE || !video.videoWidth)
-    pre.innerText = noise(ctx);
+    pre.innerHTML = noise(ctx);
   else if (!video.paused)
-    pre.innerText = greyscale(ctx);
+    pre.innerHTML = greyscale(ctx);
 
   var end = +new Date();
   var elapsed = end - start;
 
   var f = Array(2).join('0') + Math.round(1000/elapsed) + ' FPS';
   f = f.substr(f.length - 6);
-  var g = 'BRITE [-/+] ' + GAMMA.toFixed(2) + ' ' + Array(56).join('.') + ' ' + f;
+  var g = 'BRITE [+/-] ' + GAMMA.toFixed(2) + ' ' + Array(56).join('.') + ' ' + f;
   if (video.videoWidth) {
     var controls = video.paused ? '[p]ause' : '[P]AUSE';
     controls += ' .. ' + (HREVERSE ? '[h]oriz' : '[H]ORIZ');
   }
   ot = t;
   var palette = " `.',";
-  //var palette = "   ```.',";
   for (var y = 0; y < H; ++y) {
     var lineno = (H + 1 + y - topline) % (H + 1);
     var line = "";