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