rename to wirc
This commit is contained in:
parent
8d165d1a07
commit
a908df5550
|
@ -3,8 +3,8 @@
|
||||||
<head>
|
<head>
|
||||||
<title>#tron</title>
|
<title>#tron</title>
|
||||||
<link rel="icon" type="image/png" sizes="64x64" href="chat.png">
|
<link rel="icon" type="image/png" sizes="64x64" href="chat.png">
|
||||||
<script type="application/javascript" src="irc.js"></script>
|
<script type="application/javascript" src="wirc.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="irc.css">
|
<link rel="stylesheet" type="text/css" href="wirc.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="foraButtons"></div>
|
<div id="foraButtons"></div>
|
||||||
|
|
2
wirc.css
2
wirc.css
|
@ -44,7 +44,7 @@
|
||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
}
|
}
|
||||||
.current {
|
.current {
|
||||||
background-color: aquamarine;
|
background-color: cornsilk;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[name~=target] {
|
input[name~=target] {
|
||||||
|
|
4
wirc.js
4
wirc.js
|
@ -171,7 +171,7 @@ function handleCommand(event) {
|
||||||
function reqListener() {
|
function reqListener() {
|
||||||
}
|
}
|
||||||
oReq.onload = reqListener;
|
oReq.onload = reqListener;
|
||||||
oReq.open("POST", "irc.cgi", true);
|
oReq.open("POST", "wirc.cgi", true);
|
||||||
oReq.send(new FormData(event.target));
|
oReq.send(new FormData(event.target));
|
||||||
|
|
||||||
event.target.reset();
|
event.target.reset();
|
||||||
|
@ -183,7 +183,7 @@ function init() {
|
||||||
var authtok = prompt("Auth token", "");
|
var authtok = prompt("Auth token", "");
|
||||||
document.getElementById("authtok").value = authtok;
|
document.getElementById("authtok").value = authtok;
|
||||||
|
|
||||||
var source = new EventSource("irc.cgi?auth=" + authtok);
|
var source = new EventSource("wirc.cgi?auth=" + authtok);
|
||||||
source.onmessage = newmsg;
|
source.onmessage = newmsg;
|
||||||
|
|
||||||
document.getElementById("command").onsubmit = handleCommand;
|
document.getElementById("command").onsubmit = handleCommand;
|
||||||
|
|
Loading…
Reference in New Issue