From: Scott Worley Date: Sun, 29 Jul 2012 04:25:27 +0000 (-0700) Subject: Start poking at the web client. X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/827f21bbcf5f799fcb3a06695b9f34a1fe23b108?ds=sidebyside;hp=1c4255180393ac0b6dbea555855aa8c94c2edcdb Start poking at the web client. --- 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; + } +}