changeset 21:82be54381964

RLG-Web client: some cleanup Separate RLG-specific CSS into its own file, fix some typos.
author John "Elwin" Edwards <elwin@sdf.org>
date Wed, 23 May 2012 07:46:08 -0700
parents 5f785e1d5cca
children 51d59a0e3b20
files index-rlg.html rlgterm.js style-rlg.css tty.css
diffstat 4 files changed, 21 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/index-rlg.html	Tue May 22 21:44:38 2012 -0700
+++ b/index-rlg.html	Wed May 23 07:46:08 2012 -0700
@@ -6,6 +6,7 @@
 <script type="text/javascript" src="termemu-keys.js"></script>
 <script type="text/javascript" src="rlgterm.js"></script>
 <link rel="stylesheet" type="text/css" href="tty.css">
+<link rel="stylesheet" type="text/css" href="style-rlg.css">
 </head>
 <body onload="setup()" onkeydown="sendkey(event)">
 <h1>RLG-Web</h1>
@@ -105,7 +106,7 @@
 </div>
 </form>
 </div>
-<div class="rbutton" onclick="setmode(&quot;register&quot;)">Register</div>
+<div class="rbutton" onclick="setmode('register')">Register</div>
 <div class="modal" id="register">
 <form id="regform" action="/addacct" method="post">
 <div>
@@ -119,7 +120,7 @@
 </div>
 <div>
 <input type="submit" value="Sign up" onclick="formreg(event)">
-<input type="reset" value="Cancel" onclick="setmode(&quot;login&quot, event)">
+<input type="reset" value="Cancel" onclick="setmode('login', event)">
 </div>
 </form>
 </div>
--- a/rlgterm.js	Tue May 22 21:44:38 2012 -0700
+++ b/rlgterm.js	Wed May 23 07:46:08 2012 -0700
@@ -419,7 +419,7 @@
   nrecv = 0;
   msgQ = [];
   //document.getElementById("loginform").style.display = "block";
-  setform("login");
+  setmode("login");
   return;
 }
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style-rlg.css	Wed May 23 07:46:08 2012 -0700
@@ -0,0 +1,11 @@
+html {
+	background-color: #C0FFC0;
+	color: #101040;
+}
+
+h1 {
+	text-align: center;
+}
+div.modal {
+	clear: both;
+}
--- a/tty.css	Tue May 22 21:44:38 2012 -0700
+++ b/tty.css	Wed May 23 07:46:08 2012 -0700
@@ -7,9 +7,6 @@
 	visibility: hidden;
 	margin-left: 2em;
 }
-div.modal {
-	clear: both;
-}
 div.keyrow {
 	font-size: 1.2em;
 }
@@ -23,6 +20,8 @@
 	border: 2px solid black;
 	margin: 0.2em;
 	text-align: center;
+	background-color: white;
+	color: black;
 }
 div.keysel {
 	width: 2em;
@@ -31,7 +30,8 @@
 	border: 2px solid black;
 	margin: 0.2em;
 	text-align: center;
-	background-color: #C0FFC0;
+	background-color: #A0EEA0;
+	color: black;
 }
 div#shiftkey {
 	width: 4em;
@@ -87,6 +87,8 @@
 	overflow: scroll;
 	white-space: pre;
 	clear: both;
+	background-color: white;
+	color: black;
 }
 div#debug > div {
 	font-family: monospace;