From 827f21bbcf5f799fcb3a06695b9f34a1fe23b108 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 28 Jul 2012 21:25:27 -0700 Subject: [PATCH] Start poking at the web client. --- webclient/rc.css | 4 ++++ webclient/rc.html | 18 ++++++++++++++++++ webclient/rc.js | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 webclient/rc.css create mode 100644 webclient/rc.html create mode 100644 webclient/rc.js diff --git a/webclient/rc.css b/webclient/rc.css new file mode 100644 index 0000000..bc5ea69 --- /dev/null +++ b/webclient/rc.css @@ -0,0 +1,4 @@ +html, body, #outer-table, #history { width: 99.9%; height: 100%; margin: 0; padding: 0 } +#status { background-color: #eef } +#say { width: 100% } +#history { vertical-align: bottom } diff --git a/webclient/rc.html b/webclient/rc.html new file mode 100644 index 0000000..4948260 --- /dev/null +++ b/webclient/rc.html @@ -0,0 +1,18 @@ + + + + + Reliable Chat + + + + + + + + + +
 
+ + diff --git a/webclient/rc.js b/webclient/rc.js new file mode 100644 index 0000000..13190c5 --- /dev/null +++ b/webclient/rc.js @@ -0,0 +1,11 @@ +function rckeydown(event) { + if (event.keyCode == 13) { + var d = document.createElement("div"); + d.appendChild(document.createTextNode(document.input.say.value)); + var h = document.getElementById("history"); + h.appendChild(d); + window.scrollTo(0, document.body.scrollHeight); + document.input.say.value = ""; + return false; + } +} -- 2.44.1