-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
30 lines (27 loc) · 1.03 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Socketify Example</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body onload="init()">
<div id="unavailable">Uh-oh! Socketify is unavailable :(</div>
<div id="page">
<div id="type">
<a id="udpPeer" onclick="switchTo('udpPeer')" class="active">UDP Peer</a>
<a id="tcpClient" onclick="switchTo('tcpClient')">TCP Client</a>
<a id="tcpServer" onclick="switchTo('tcpServer')">TCP Server</a>
</div>
<div id="events">
<input id="input" maxlength="1500" placeholder="Input">
<button id="open" onclick="openClick(getInput())">Open</button>
<button id="send" onclick="sendClick(getInput())">Send</button>
<button id="drop" onclick="dropClick(getInput())">Drop</button>
<button id="close" onclick="closeClick(getInput())">Close</button>
</div>
<div id="logs"></div>
</div>
</body>
</html>