changeset 32:1016a9f81684

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 06 Jul 2020 21:43:38 -0600
parents ab41a84898a9
children 442ace8fd8ed
files src/nabble/view/web/more/ForumStart.java src/nabble/view/web/more/ForumStart.jtp
diffstat 2 files changed, 24 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/view/web/more/ForumStart.java	Mon Jul 06 20:10:24 2020 -0600
+++ b/src/nabble/view/web/more/ForumStart.java	Mon Jul 06 21:43:38 2020 -0600
@@ -104,9 +104,7 @@
 		out.print( (what.toLowerCase()) );
 		out.print( ", simple, embeddable " );
 		out.print( (what.toLowerCase()) );
-		out.print( ", customizable\">\r\n		" );
- /*Shared.canonical(request, response);*/ 
-		out.print( "\r\n		<style type=\"text/css\">\r\n			div.center-content {\r\n				margin:0px auto;\r\n				margin-bottom: 3em;\r\n			}\r\n			td.column1 {\r\n				text-align:right;\r\n				width:7em;\r\n				white-space:nowrap;\r\n			}\r\n			input[type=text],input[type=password] {\r\n				padding:.4em 0;\r\n			}\r\n			div.field-title {\r\n				margin-top:.3em;\r\n			}\r\n			.important { font-weight:bold }\r\n			label { vertical-align:-15%; }\r\n		</style>\r\n		<script type=\"text/javascript\">\r\n			$(document).ready(function() {\r\n				$('#username').focus();\r\n			});\r\n\r\n			function singleFormSubmit(f) {\r\n				if (f.done)\r\n					return false;\r\n				f.done = true;\r\n				$('#submit-btn').hide();\r\n				var $div = $('#wait-message');\r\n				function loading1() { $div.fadeTo(300,0.3,loading2);  };\r\n				function loading2() { $div.fadeTo(300,1,loading1);  };\r\n				loading1();\r\n				return true;\r\n			};\r\n		</script>\r\n		" );
+		out.print( ", customizable\">\r\n		<style type=\"text/css\">\r\n			div.center-content {\r\n				margin: 0px auto;\r\n				margin-bottom: 3em;\r\n			}\r\n			td.column1 {\r\n				text-align: right;\r\n				width: 7em;\r\n				white-space: nowrap;\r\n			}\r\n			input[type=text],input[type=password] {\r\n				padding: .4em 0;\r\n			}\r\n			div.field-title {\r\n				margin-top: .3em;\r\n			}\r\n			.important {\r\n				font-weight: bold;\r\n			}\r\n			label {\r\n				vertical-align: -15%;\r\n			}\r\n			#submit-btn {\r\n				padding: .5em .8em;\r\n				font-size: 110%;\r\n				font-weight: bold;\r\n			}\r\n		</style>\r\n		<script type=\"text/javascript\">\r\n\r\n			function singleFormSubmit(f) {\r\n				if (f.done)\r\n					return false;\r\n				f.done = true;\r\n				$('#submit-btn').hide();\r\n				var $div = $('#wait-message');\r\n				function loading1() { $div.fadeTo(300,0.3,loading2);  };\r\n				function loading2() { $div.fadeTo(300,1,loading1);  };\r\n				loading1();\r\n				return true;\r\n			};\r\n\r\n		</script>\r\n		" );
 		out.print( ( Recaptcha.JS ) );
 		out.print( "\r\n	</head>\r\n	<body style=\"text-align:center\">\r\n		" );
  Shared.minHeaderGlobal(request,response); 
@@ -124,7 +122,7 @@
 		out.print( (what.toLowerCase().replace(" ","")) );
 		out.print( "\" />\r\n				<input type=\"hidden\" name=\"what\" value=\"" );
 		out.print( (what) );
-		out.print( "\" />\r\n\r\n				<div style=\"text-align:left;width:50em;margin:0 auto\">\r\n					<div style=\"border-bottom:2px solid #eeeeee;padding:1em\">\r\n						<div class=\"weak-color\" style=\"width:12em;text-align:center;float:left\">\r\n							<div style=\"font-weight:bold\">Account</div>\r\n							<img src=\"/images/account.png\" width=\"84\" height=\"45\"/>\r\n							<div style=\"margin-top:1em;font-size:80%\">\r\n								You will receive an email with a link to activate your account\r\n							</div>\r\n						</div>\r\n						<table>\r\n							<tr>\r\n								<td class=\"column1\"><div class=\"second-font field-title\">User Name</div></td>\r\n								<td><input type=\"text\" id=\"username\" size=\"35\" maxlength=\"30\" name=\"username\" value=\"" );
+		out.print( "\" />\r\n\r\n				<div style=\"text-align:left;width:50em;margin:0 auto\">\r\n					<div style=\"border-bottom:2px solid #eeeeee;padding:1em\">\r\n						<div class=\"weak-color\" style=\"width:12em;text-align:center;float:left\">\r\n							<div style=\"font-weight:bold\">Account</div>\r\n							<img src=\"/images/account.png\" width=\"84\" height=\"45\"/>\r\n							<div style=\"margin-top:1em;font-size:80%\">\r\n								You will receive an email with a link to activate your account\r\n							</div>\r\n						</div>\r\n						<table>\r\n							<tr>\r\n								<td class=\"column1\"><div class=\"second-font field-title\">User Name</div></td>\r\n								<td><input type=\"text\" autofocus size=\"35\" maxlength=\"30\" name=\"username\" value=\"" );
 		out.print( (Jtp.hideNull(values.get("username"))) );
 		out.print( "\" /></td>\r\n								<td class=\"important\">" );
 		out.print( (errors.containsKey("username")? errors.get("username"):"") );
@@ -172,9 +170,9 @@
 		out.print( (Jtp.hideNull(values.get("message"))) );
 		out.print( "</textarea>\r\n									<br>" );
 		out.print( ( Recaptcha.DIV ) );
-		out.print( "\r\n								</td>\r\n							</tr>\r\n						</table>\r\n					</div>\r\n					<div class=\"weak-color\" style=\"margin-top:.5em;text-align:center;\">\r\n						<input id=\"submit-btn\" type=\"submit\" name=\"save\" value=\"Create " );
+		out.print( "\r\n								</td>\r\n							</tr>\r\n						</table>\r\n					</div>\r\n					<div class=\"weak-color\" style=\"margin-top:.5em;text-align:center;\">\r\n						<input id=\"submit-btn\" type=\"submit\" value=\"Create " );
 		out.print( (what) );
-		out.print( "\" style=\"padding:.5em .8em;font-size:110%;font-weight:bold\"/>\r\n						<div id=\"wait-message\" class=\"important invisible\" style=\"margin:.1em 0\">Creating " );
+		out.print( "\" />\r\n						<div id=\"wait-message\" class=\"important invisible\" style=\"margin:.1em 0\">Creating " );
 		out.print( (what) );
 		out.print( "... Please wait</div>\r\n					</div>\r\n				</div>\r\n                    </form>\r\n		</div>\r\n\r\n		" );
  Shared.footer(request,response); 
--- a/src/nabble/view/web/more/ForumStart.jtp	Mon Jul 06 20:10:24 2020 -0600
+++ b/src/nabble/view/web/more/ForumStart.jtp	Mon Jul 06 21:43:38 2020 -0600
@@ -100,30 +100,35 @@
 				<meta name="robots" content="noindex"/>
 				<META NAME="description" CONTENT="Setting up a free <%=what.toLowerCase()%> on Nabble is quick and easy. Fill in one simple form and you are done.">
 				<META NAME="keywords" CONTENT="free <%=what.toLowerCase()%>, hosted <%=what.toLowerCase()%>, simple, embeddable <%=what.toLowerCase()%>, customizable">
-				<% /*Shared.canonical(request, response);*/ %>
 				<style type="text/css">
 					div.center-content {
-						margin:0px auto;
+						margin: 0px auto;
 						margin-bottom: 3em;
 					}
 					td.column1 {
-						text-align:right;
-						width:7em;
-						white-space:nowrap;
+						text-align: right;
+						width: 7em;
+						white-space: nowrap;
 					}
 					input[type=text],input[type=password] {
-						padding:.4em 0;
+						padding: .4em 0;
 					}
 					div.field-title {
-						margin-top:.3em;
+						margin-top: .3em;
+					}
+					.important {
+						font-weight: bold;
 					}
-					.important { font-weight:bold }
-					label { vertical-align:-15%; }
+					label {
+						vertical-align: -15%;
+					}
+					#submit-btn {
+						padding: .5em .8em;
+						font-size: 110%;
+						font-weight: bold;
+					}
 				</style>
 				<script type="text/javascript">
-					$(document).ready(function() {
-						$('#username').focus();
-					});
 
 					function singleFormSubmit(f) {
 						if (f.done)
@@ -136,6 +141,7 @@
 						loading1();
 						return true;
 					};
+
 				</script>
 				<%= Recaptcha.JS %>
 			</head>
@@ -169,7 +175,7 @@
 								<table>
 									<tr>
 										<td class="column1"><div class="second-font field-title">User Name</div></td>
-										<td><input type="text" id="username" size="35" maxlength="30" name="username" value="<%=Jtp.hideNull(values.get("username"))%>" /></td>
+										<td><input type="text" autofocus size="35" maxlength="30" name="username" value="<%=Jtp.hideNull(values.get("username"))%>" /></td>
 										<td class="important"><%=errors.containsKey("username")? errors.get("username"):""%></td>
 									</tr>
 									<tr>
@@ -227,7 +233,7 @@
 								</table>
 							</div>
 							<div class="weak-color" style="margin-top:.5em;text-align:center;">
-								<input id="submit-btn" type="submit" name="save" value="Create <%=what%>" style="padding:.5em .8em;font-size:110%;font-weight:bold"/>
+								<input id="submit-btn" type="submit" value="Create <%=what%>" />
 								<div id="wait-message" class="important invisible" style="margin:.1em 0">Creating <%=what%>... Please wait</div>
 							</div>
 						</div>