1 |
dpavlin |
3 |
<html> |
2 |
|
|
<head> |
3 |
|
|
<script src="showtty.js"></script> |
4 |
dpavlin |
4 |
<script> |
5 |
|
|
function ttyrec_play(data) { |
6 |
|
|
// console.log( data ); |
7 |
|
|
showTTYURL(document.getElementById("tty"), data); |
8 |
|
|
} |
9 |
|
|
function ttyrec_pause_toggle() { |
10 |
|
|
var el = document.getElementById('ttyrec_pause'); |
11 |
|
|
el.checked = ! el.checked; |
12 |
|
|
console.debug('pause', el.checked); |
13 |
|
|
} |
14 |
|
|
</script> |
15 |
|
|
|
16 |
dpavlin |
3 |
<style type="text/css"> |
17 |
|
|
</style> |
18 |
|
|
</head> |
19 |
|
|
<body> |
20 |
dpavlin |
4 |
<div id="tty" onClick="ttyrec_pause_toggle();">Select TTY recording to play.</div> |
21 |
|
|
<div id="ttyrec_status" style="display: none; color: #888"> |
22 |
dpavlin |
3 |
<input type="checkbox" id="ttyrec_pause"><label for="ttyrec_pause">pause</label> |
23 |
|
|
frame: <tt id="ttyrec_frame">-</tt> |
24 |
|
|
</div> |
25 |
|
|
|
26 |
|
|
<div style="margin-top: 1em;"> |
27 |
|
|
Test |
28 |
|
|
<input type="button" value="test" onClick="ttyrec_play('../../test/test.js');"> |
29 |
|
|
|
30 |
|
|
</div> |
31 |
|
|
|
32 |
|
|
</body> |
33 |
|
|
</html> |