Fix problems reported by https://validator.w3.org/.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3229 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2016-05-02 12:31:51 +00:00
parent 0c1723a764
commit 1c85875db4
5 changed files with 22 additions and 22 deletions

View File

@ -7,8 +7,8 @@
document.getElementById("confirmPassword").style.display = document.getElementById("register").checked ? "block" : "none";
}
</script>
<link type="text/css" rel="stylesheet" href="/terminal/style.css"></link>
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png"></link>
<link type="text/css" rel="stylesheet" href="/terminal/style.css">
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--HEAD-->
</head>

View File

@ -190,25 +190,25 @@ function authHandler(request, response) {
if (noAdministrator()) {
contents += '<div class="notice">There is currently no administrator. You will be made administrator.</div>\n';
}
contents += '<div><label for="name">Name:</label> <input type="text" id="name" name="name" value=""></input></div>\n';
contents += '<div><label for="password">Password:</label> <input type="password" id="password" name="password" value=""></input></div>\n';
contents += '<div id="confirmPassword" style="display: none"><label for="confirm">Confirm:</label> <input type="password" id="confirm" name="confirm" value=""></input></div>\n';
contents += '<div><input type="checkbox" id="register" name="register" value="1" onchange="showHideConfirm()"></input> <label for="register">Register a new account</label></div>\n';
contents += '<div><input id="loginButton" type="submit" name="submit" value="Login"></input></div>\n';
contents += '<div><label for="name">Name:</label> <input type="text" id="name" name="name" value=""></div>\n';
contents += '<div><label for="password">Password:</label> <input type="password" id="password" name="password" value=""></div>\n';
contents += '<div id="confirmPassword" style="display: none"><label for="confirm">Confirm:</label> <input type="password" id="confirm" name="confirm" value=""></div>\n';
contents += '<div><input type="checkbox" id="register" name="register" value="1" onchange="showHideConfirm()"> <label for="register">Register a new account</label></div>\n';
contents += '<div><input id="loginButton" type="submit" name="submit" value="Login"></div>\n';
contents += '</div>';
contents += '<div id="auth_or"> - or - </div>';
contents += '<div class="auth_or"> - or - </div>';
if (gGlobalSettings && gGlobalSettings['google-signin-client_id']) {
contents += '<div class="g-signin2" data-onsuccess="onGoogleSignIn" data-scope="profile"></div>';
contents += '<div id="auth_or"> - or - </div>';
contents += '<div class="auth_or"> - or - </div>';
}
contents += '<div id="auth_guest">\n';
contents += '<input id="guestButton" type="submit" name="submit" value="Proceeed as Guest"></input>\n';
contents += '<input id="guestButton" type="submit" name="submit" value="Proceeed as Guest">\n';
contents += '</div>\n';
contents += '</div>\n';
contents += '</form>';
}
var text = html.replace("<!--SESSION-->", contents);
response.writeHead(200, {"Content-Type": "text/html; charset=utf-6", "Set-Cookie": cookie, "Content-Length": text.length});
response.writeHead(200, {"Content-Type": "text/html; charset=utf-8", "Set-Cookie": cookie, "Content-Length": text.length});
response.end(text);
}
} else if (request.uri == "/login/logout") {

View File

@ -10,14 +10,14 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/search/jump-to-line.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/search/matchesonscrollbar.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/scroll/annotatescrollbar.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/codemirror.min.css"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/dialog/dialog.min.css"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/search/matchesonscrollbar.min.css"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/theme/base16-dark.min.css"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/dialog/dialog.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/addon/search/matchesonscrollbar.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/theme/base16-dark.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/mode/javascript/javascript.min.js"></script>
<link type ="text/css" rel="stylesheet" href="/terminal/style.css"></link>
<link type ="text/css" rel="stylesheet" href="/terminal/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png"></link>
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png">
</head>
<body style="display: flex; flex-flow: column">
<div class="navigation">
@ -26,7 +26,7 @@
<input type="button" id="saveAs" name="saveAs" value="Save As" onclick="saveAs()">
<input type="checkbox" id="run" name="run" checked><label for="run">Run after Saving</label>
<input type="button" id="revert" name="revert" value="Revert to Saved" onclick="revert()">
<button onclick="addLicense()"><img src="/terminal/agplv3-88x31.png" width="34" height="12"> Add License Header</button>
<button onclick="addLicense()"><img src="/terminal/agplv3-88x31.png" width="34" height="12" alt="AGPLv3"> Add License Header</button>
</div>
<textarea id="editor" class="main">$(SOURCE)</textarea>
<script src="/terminal/editor.js"></script>

View File

@ -2,8 +2,8 @@
<html>
<head>
<title>Tilde Friends</title>
<link type="text/css" rel="stylesheet" href="/terminal/style.css"></link>
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png"></link>
<link type="text/css" rel="stylesheet" href="/terminal/style.css">
<link type="image/png" rel="shortcut icon" href="/terminal/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--HEAD-->
</head>
@ -23,7 +23,7 @@
<div class="input">
<span id="target"></span>
<span id="prompt">&gt;</span>
<input type='text' id='input'></input>
<input type='text' id='input'>
</div>
<script src="/terminal/client.js"></script>
</body>

View File

@ -151,7 +151,7 @@ a:active, .command:active {
text-align: right;
}
#auth_or {
.auth_or {
flex: 0 1 auto;
padding: 1em;
}