2024-03-24 19:51:49 +01:00
|
|
|
<nav><span onclick="switchView('mainMenuView')">Menu główne</span> <span id="profileButton" onclick="switchView('profileView')">Profil</span></nav>
|
2024-03-19 22:33:14 +01:00
|
|
|
{{!-- <h1 class="header">Statki</h1> --}}
|
2024-01-06 21:09:41 +01:00
|
|
|
<div class="container" id="mainMenuView" data-title="Statki" data-path="/">
|
|
|
|
<div>
|
2024-03-02 18:28:33 +01:00
|
|
|
|
2024-01-06 21:09:41 +01:00
|
|
|
<h2>Wybierz tryb gry</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div id="pvpMenuButton">
|
|
|
|
<h2>PvP</h2>
|
|
|
|
<p>Graj przeciwko innemu graczowi</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2 id="ai">Vs. AI</h2>
|
|
|
|
<p>Graj przeciwko komputerowi</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" id="pvpMenuView" data-title="Statki / PvP" data-path="/pvp">
|
|
|
|
<div>
|
|
|
|
<h2>PvP</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div id="createGameButton">
|
|
|
|
<h2>Stwórz</h2>
|
|
|
|
<p>Stwórz własny pokój</p>
|
|
|
|
</div>
|
2024-01-08 16:53:12 +01:00
|
|
|
<div onclick="switchView('pvpJoinView')">
|
2024-01-06 21:09:41 +01:00
|
|
|
<h2>Dołącz</h2>
|
|
|
|
<p>Dołącz do czyjegoś pokoju poprzez kod</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" id="pvpCreateView" data-title="Statki / PvP / Stwórz" data-path="/pvp/create">
|
|
|
|
<div>
|
|
|
|
<h2>PvP / Stwórz</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div>
|
|
|
|
<h2>Kod pokoju:</h2>
|
2024-03-26 12:41:28 +01:00
|
|
|
<input type="text" maxlength="6" readonly value="-" id="createGameCode">
|
2024-01-06 21:09:41 +01:00
|
|
|
<h3>Oczekiwanie na gracza...</h3>
|
2024-01-08 16:53:12 +01:00
|
|
|
<button id="leaveGameButton">Opuść pokój</button>
|
2024-01-06 21:09:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" id="pvpJoinView" data-title="Statki / PvP / Dołącz" data-path="/pvp/join">
|
|
|
|
<div>
|
|
|
|
<h2>PvP / Dołącz</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div>
|
|
|
|
<form action="/api/joinme" id="pvpJoinForm">
|
2024-03-18 18:43:13 +01:00
|
|
|
<input type="text" maxlength="6" id="pvpJoinCode" placeholder="Kod pokoju" autocomplete="off">
|
2024-01-06 21:09:41 +01:00
|
|
|
<input type="submit" value="Dołącz">
|
|
|
|
</form>
|
2024-01-05 23:35:11 +01:00
|
|
|
</div>
|
2024-01-06 21:09:41 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-05 23:35:11 +01:00
|
|
|
|
2024-02-29 21:55:56 +01:00
|
|
|
<div class="container" id="preparingGame" data-title="Statki / PvP / Przygotowywanie" data-path="/pvp/prepairing">
|
|
|
|
<div>
|
|
|
|
<h2>PvP / Wczytywanie</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div>
|
|
|
|
<h2>Czekaj...</h2>
|
|
|
|
<h3>Wkrótce nastąpi przekierowanie</h3>
|
|
|
|
<h3>Przeciwnik:</h3>
|
|
|
|
<h4 id="oppNameField"></h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-03-19 22:33:14 +01:00
|
|
|
<div class="container" id="profileView" data-title="Statki / Profil" data-path="/profile">
|
|
|
|
<div class="profile">
|
2024-03-24 19:51:49 +01:00
|
|
|
<h1 id="nickname">Wczytywanie...</h1>
|
2024-03-19 22:33:14 +01:00
|
|
|
<div>
|
2024-03-24 19:51:49 +01:00
|
|
|
<span>Gracz od: </span>
|
|
|
|
<span id="playerSince">-</span>
|
2024-03-19 22:33:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-22 11:47:12 +01:00
|
|
|
<div class="stats">
|
|
|
|
<div class="matchList">
|
|
|
|
<div class="match">
|
2024-03-24 19:51:49 +01:00
|
|
|
<div><h1 class="dynamic danger">Porażka</h1><span> vs. Wczytywanie...</span></div>
|
2024-03-22 11:47:12 +01:00
|
|
|
<h2 class="statsButton">Kliknij by wyświetlić statystyki</h2>
|
|
|
|
</div>
|
|
|
|
<div class="match">
|
2024-03-24 19:51:49 +01:00
|
|
|
<div><h1 class="dynamic">Zwycięstwo</h1><span> vs. Wczytywanie...</span></div>
|
2024-03-22 11:47:12 +01:00
|
|
|
<h2 class="statsButton">Kliknij by wyświetlić statystyki</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="periodal">
|
2024-03-24 19:51:49 +01:00
|
|
|
<div class="stat"><h1 id="monthlyPlayed">-</h1><span>meczów zagranych w ostatnim miesiącu</span></div>
|
|
|
|
<div class="stat"><h1 id="totalPlayed">-</h1><span>meczów zagranych łącznie</span></div>
|
|
|
|
<div class="stat"><h1 id="winrate">-</h1><span>winrate</span></div>
|
2024-03-19 22:33:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-03-26 12:41:28 +01:00
|
|
|
<script>
|
|
|
|
locale = {
|
|
|
|
"Unknown error occured": "{{ __('Profile.') }}"
|
|
|
|
}
|
|
|
|
</script>
|
2024-03-19 22:33:14 +01:00
|
|
|
<script src="/assets/js/spa_lib.js"></script>
|
2024-01-06 21:09:41 +01:00
|
|
|
<script src="/assets/js/socket.js"></script>
|
2024-03-19 22:33:14 +01:00
|
|
|
<script src="/assets/js/socket-err-handler.js"></script>
|