Skip to content

Commit

Permalink
2 file edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Croc-Prog-github authored May 15, 2024
1 parent 6b20638 commit 859eb06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions game/multiP/CreaSq/CreaSq_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
function CreaCodSq() {
EntraInSq(0);
document.getElementById('roomId').style.display = 'block';
document.getElementById('SquadInp').value = '';
ToggleButton()

// Fai una richiesta al server per creare una nuova stanza
fetch('http://127.0.0.1:2567/')
Expand Down
7 changes: 4 additions & 3 deletions game/multiP/onlineUser.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@
<button class="NewButt" onclick="EntraInSq(1); document.getElementById('roomId').style.display = 'none';" style="margin-inline: 5px;border: solid 1px black;border-bottom: solid 2px black;border-radius: 3px;text-shadow: 0px 1.4px 0px black;box-shadow: 0 2px 1px 0px #0000004d;color: white;background: dodgerblue;text-transform: uppercase;/*font-weight: bold;*/ cursor: pointer;">Entra con codice</button>
</div>

<input type="text" maxlength="6" id="SquadInp" oninput="ToggleButton();" autocomplete="off" placeholder="ABC123" style="display: none; margin-top: 10px; width: 50%; font-size: 1.5em; text-transform: uppercase; user-select: all; outline-style: none; letter-spacing: 6px; text-align: center; font-weight: bold;">
<input type="text" maxlength="6" id="SquadInp" oninput="ToggleButton();" autocomplete="off" placeholder="ABC123" style="display: block; margin-top: 10px; width: 50%; font-size: 1.5em; text-transform: uppercase; user-select: all; outline-style: none; letter-spacing: 6px; text-align: center; font-weight: bold;">

<div id="EntraInSqButts" style="display: flex; margin-top: 0.5em;">
<button hidden style="margin-inline: 5px;border: solid 1px black;border-bottom: solid 2px black;border-radius: 3px;text-shadow: 0px 1.4px 0px black;box-shadow: 0 2px 1px 0px #0000004d;color: white; background: indianred; text-transform: uppercase;/*font-weight: bold;*/ cursor: pointer;">Esci dalla squadra</button>
<button hidden id="EntraNellaSquadra" onclick="ControlFormato()" style="margin-inline: 5px;border: solid 1px black;border-bottom: solid 2px black;border-radius: 3px;text-shadow: 0px 1.4px 0px black;box-shadow: 0 2px 1px 0px #0000004d;color: white; background: mediumseagreen; text-transform: uppercase;/*font-weight: bold;*/ cursor: pointer;">Entra nella squadra</button>
</div>

<div id="roomId" style="display: none; border: solid;">
<div style="display: block; font-size: xx-large; text-transform: uppercase; font-weight: bold; margin-inline: 45px; margin-block: 10px; background: #eded90;">
<div id="roomId" style="display: block; border: solid;">
<hx style="text-align: center;width: -webkit-fill-available;display: block;color: white;font-size: 16px;">Codice squadra:</hx>
<div style="display: block;font-size: xx-large;text-transform: uppercase;font-weight: bold;margin-inline: 45px;margin-bottom: 16px;background: #eded90;">
Error
</div>
</div>
Expand Down

0 comments on commit 859eb06

Please sign in to comment.