Design improvements

This commit is contained in:
MaciejkaG 2024-04-18 10:46:33 +02:00
parent ef23080666
commit a1ae17227b
3 changed files with 5 additions and 4 deletions

View File

@ -49,12 +49,13 @@ h1,h2,h3,h4,h5,h6 {
position: fixed; position: fixed;
bottom: 5px; bottom: 5px;
left: 5px; left: 5px;
color: rgb(0, 255, 0); color: rgb(255, 80, 80);
font-size: 9px; font-size: 9px;
pointer-events: none; pointer-events: none;
user-select: none; user-select: none;
z-index: 999; z-index: 999;
font-family: 'Roboto Mono', monospace; font-family: "IBM Plex Mono", monospace;
font-weight: 400;
} }
.board { .board {

View File

@ -106,7 +106,7 @@ socket.on("ship sunk", (victimIdx, ship) => {
break; break;
} }
let l = !ship.type ? ship.type + 1 : ship.type + 2; let l = ship.type + 1;
if (victimIdx === playerIdx) { if (victimIdx === playerIdx) {
for (let i = 0; i < l; i++) { for (let i = 0; i < l; i++) {
console.log("ourship"); console.log("ourship");

View File

@ -15,7 +15,7 @@
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
</head> </head>
<body> <body>
<span class="designerTag">Designed by Maciejka</span> <span class="designerTag">Designed by mcjk</span>
{{{body}}} {{{body}}}
</body> </body>