-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
55 lines (46 loc) · 934 Bytes
/
index.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<style>
#log {
overflow: auto;
height: 50px;
}
.capture {
height: 80vh;
display: block;
width: 100%;
position: relative;
}
.capture img {
height: 100%;
}
.capture .back,
.capture .front {
position: absolute;
top: 0;
left: 0;
max-height: 100%;
}
.front {
z-index: 99999;
}
</style>
</head>
<body>
<div class="topbar">
<input type="text" id="ip" placeholder="127.0.0.1" value="127.0.0.1" />
<button id="run">run</button>
</div>
<pre id="log" class="logbar"></pre>
<div class="capture">
</div>
<script>
window.onerror = function (err) {
alert('error: ' + JSON.stringify(err) + '\n' + err.fileName + ' ' + err.lineNumber);
};
</script>
<script src="wsproxy.js"></script>
<script src="client.js"></script>
<script src="demo.js"></script>
</body>
</html>