mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-01-02 01:03:24 +01:00
Merge branch 'master' of https://github.com/AlecM33/Werewolf
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user