img { width: 1px; height: 1px; }
iframe { display: none }
#status span { margin-right: 2em }
- #status span.sad { background-color: #fee }
- #status span.happy { background-color: #efe }
+ #status span.sad {
+ background-color: #f00;
+ color: #fff;
+ border: 1px solid black;
+ border-radius: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ }
+ #status span.happy {
+ background-color: #0f0;
+ color: #000;
+ border: 1px solid black;
+ border-radius: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ }
/*]]>*/--></style>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var servers = ['chkno.net', 'rc2.chkno.net', 'echto.net', 'the-wes.com', 'vibrantlogic.com'];
message = "<" + rcnick() + "> " + input;
}
+ // /me support
+ var message;
+ var re = /^\/me (.*)/;
+ var match = re.exec(input);
+ var inputme = input.substring(4);
+ if (match) {
+ message = "* " + rcnick() + " " + inputme;
+ } else {
+ message = "<" + rcnick() + "> " + input;
+ }
+
// Remind people to set their nick
if (rcnick() == 'anonymous') {
rcaddmessagetohistory("-!- Set your nick with /nick");
<tr><td id="history"></td></tr>
<tr><td id="status"> </td></tr>
<tr><td><form name="input" onsubmit="return false" autocomplete="off">
- <input id="say" onkeydown="return rckeydown(event)" autocomplete="off"></input>
+ <input id="say" onkeydown="return rckeydown(event)" autocomplete="off" autofocus="autofocus"></input>
</form></td></tr>
</table>
</body>