2024-03-01 22:24:30 +01:00
|
|
|
<div class="cover">
|
2024-03-08 21:35:01 +01:00
|
|
|
<h1 class="title">Łączenie...</h1>
|
|
|
|
<div class="dialog">
|
|
|
|
<h1 id="state"></h1>
|
|
|
|
<h3 id="opponent"></h3>
|
|
|
|
<button onclick="window.location.href = '/'">Powróć do menu</button>
|
|
|
|
</div>
|
2024-03-01 22:24:30 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" id="gameView">
|
|
|
|
<div>
|
|
|
|
<h1>Statki</h1>
|
|
|
|
<div class="panelContainer">
|
|
|
|
<div class="shapes">
|
|
|
|
<div class="ownBoardInfo">
|
|
|
|
<h3>Wybrany statek</h3>
|
|
|
|
<h2 class="dynamic" id="selectedShip">Jednomasztowiec</h2>
|
2024-03-03 16:55:38 +01:00
|
|
|
<h3>Dostępne: <span class="dynamic danger" id="shipsLeft">1</span></h3>
|
2024-03-01 22:24:30 +01:00
|
|
|
</div>
|
|
|
|
<span class="break"></span>
|
2024-03-25 12:41:02 +01:00
|
|
|
<div class="controls">
|
|
|
|
<h2>Sterowanie</h2>
|
|
|
|
<h3 class="controlsOwnBoard"><span class="important">S</span> Zmiana statku</h3>
|
|
|
|
<h3 class="controlsOwnBoard"><span class="important">R</span> Obrót statku</h3>
|
2024-03-25 17:40:07 +01:00
|
|
|
<h3 class="boardSwitch"><span class="important">B</span> Zamiana planszy</h3>
|
2024-03-25 12:41:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="mobileControls">
|
2024-03-25 17:40:07 +01:00
|
|
|
<button class="controlsOwnBoard" onclick="switchShips()">Zmiana statku</button>
|
|
|
|
<button class="boardSwitch" onclick="switchBoards()">Zmiana planszy</button>
|
2024-03-25 12:41:02 +01:00
|
|
|
</div>
|
2024-03-01 22:24:30 +01:00
|
|
|
<span class="break"></span>
|
2024-03-02 18:28:33 +01:00
|
|
|
<h3><span class="dynamic" id="whosTurn"></span></h3>
|
2024-03-02 13:56:01 +01:00
|
|
|
<h2 class="important" id="timer">∞</h2>
|
2024-03-01 22:24:30 +01:00
|
|
|
</div>
|
|
|
|
<div class="boardContainer">
|
2024-03-05 21:34:16 +01:00
|
|
|
<div class="board" id="board" oncontextmenu="return false;"></div>
|
|
|
|
<div class="board" id="secondaryBoard" class="secondary" oncontextmenu="return false;"></div>
|
2024-03-01 22:24:30 +01:00
|
|
|
</div>
|
|
|
|
<div class="spaceFiller"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-02 13:56:01 +01:00
|
|
|
</div>
|
|
|
|
|
2024-03-25 12:41:02 +01:00
|
|
|
<div id="mainTippyTemplate" class="tippyTemplate">
|
2024-03-25 17:40:07 +01:00
|
|
|
<button class="tippyBtn" style="background-color: var(--dynamic)" onclick="manualPlace([[FIELDPOS]])"><span class="material-symbols-outlined">place_item</span></button>
|
|
|
|
<button class="tippyBtn" style="background-color: var(--important)" onclick="switchRotation()"><span class="material-symbols-outlined">refresh</span></button>
|
2024-03-25 12:41:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="secondaryTippyTemplate" class="tippyTemplate">
|
2024-03-25 17:40:07 +01:00
|
|
|
<button class="tippyBtn" style="background-color: var(--danger)" onclick="manualShoot([[FIELDPOS]])"><span class="material-symbols-outlined">ads_click</span></button>
|
2024-03-25 12:41:02 +01:00
|
|
|
</div>
|
|
|
|
|
2024-03-02 13:56:01 +01:00
|
|
|
<script src="/assets/js/battleships-lib.js"></script>
|
|
|
|
<script src="/assets/js/main.js"></script>
|
|
|
|
<script src="/assets/js/key-handling.js"></script>
|
2024-03-08 19:18:53 +01:00
|
|
|
<script src="/assets/js/socket-game.js"></script>
|
|
|
|
<script src="/assets/js/socket-err-handler.js"></script>
|