-
Notifications
You must be signed in to change notification settings - Fork 0
/
irc.html
33 lines (26 loc) · 1.28 KB
/
irc.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
<!DOCTYPE html>
<html>
<head>
<title>Manual Twitch IRC Testing Tool</title>
<link rel="stylesheet" href="./irc.css">
</head>
<body>
<p>This is used for testing different things in IRC easier.</p>
<p><a href="" id="authorize">Authorize with Twitch</a></p>
<hr>
<div id="connect">
<button onclick="connectWebsocket()" id="btnConnect">Connect</button> <button onclick="disconnectWebsocket()" id="btnClose">Close</button><br>
<input type="checkbox" id="chkSendReq" checked /> <span>Send CAP REQ automatically</span><br>
<input type="checkbox" id="chkSendPassNick" checked /> <span>Send PASS and NICK automatically</span><br><br>
<span>Payload (all lines are sent individually)</span><br>
<textarea id="payload"></textarea><br>
<button onclick="sendPayload()" id="btnSendPayload">Send</button>
<hr>
<span>Messages</span> <button onclick="clearLog()">Clear Log</button><br>
<input type="checkbox" id="chkNewlinePlaintext"/> <span>Don't parse \r\n</span><br>
<div id="log">
</div>
</div>
<script type="text/javascript" src="./irc.js"></script>
</body>
</html>