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