This commit is contained in:
Alec Maier
2019-09-09 23:53:58 -04:00
3 changed files with 27 additions and 23 deletions

View File

@@ -17,12 +17,12 @@ socket.on('success', function() {
if (sessionStorage.getItem("host")) {
sessionStorage.removeItem("host");
}
window.location.replace('/' + document.getElementById("code").value.toString().trim());
window.location.replace('/' + document.getElementById("code").value.toString().trim().toLowerCase());
});
document.getElementById("join-btn").addEventListener("click", function() {
if (document.getElementById("name").value.length > 0) {
const code = document.getElementById("code").value.toString().trim();
const code = document.getElementById("code").value.toString().trim().toLowerCase();
if (document.getElementById("name").classList.contains("error")) {
document.getElementById("name").classList.remove("error");
document.getElementById("name-error").innerText = "";

View File

@@ -24,8 +24,8 @@
.card {
padding: 0.5em;
width: 8em;
height: 11.5em;
width: 7em;
height: 10.5em;
font-size: 0.9em;
margin: 0 0.7em 0.7em 0;
}
@@ -397,8 +397,8 @@ button {
#card-select-header button {
margin-right: 1em;
width: 11em;
padding: 1em;
width: 10em;
padding: 0.8em;
}
#card-select-header span {