213bb1c179
Fix api Remove login window
81 lines
3.7 KiB
HTML
81 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<title>Schafkopf</title>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
<link rel='stylesheet' type='text/css' media='screen' href='style.css'>
|
|
<script src='elements.js?v=1'></script>
|
|
<script src='api.js'></script>
|
|
<script src='storage.js'></script>
|
|
<script src='game.js'></script>
|
|
</head>
|
|
<body>
|
|
<div id="top-bar">
|
|
<div id="player-info">
|
|
<div id="player-name"></div>
|
|
<button id="logout-button" class="standard-button" onclick="logoutUser()">Log out</button>
|
|
</div>
|
|
<div id="table-list-bar">
|
|
<button id="refresh-tables" class="standard-button" onclick="refreshTables()">Refresh list</button>
|
|
</div>
|
|
<div id="game-bar">
|
|
<button id="leave-table" class="standard-button" onclick="leaveTable()">Leave table</button>
|
|
<span id="table-name-label">Table</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="main">
|
|
<div id="main-spacer"></div>
|
|
<div id="table-list">
|
|
<input type="text" id="table-name-field" name="tablename" placeholder="Create new table..." required>
|
|
<input type="checkbox" id="table-public-checkbox" name="public-table" checked="checked">
|
|
<span id="table-public-label">Public</span>
|
|
<button id="create-table-button" class="standard-button" onclick="createTable()">Create table</button>
|
|
</div>
|
|
<div id="table-players">
|
|
<div id="table-player-card-top" class="table-card"></div>
|
|
<div id="table-player-card-right" class="table-card"></div>
|
|
<div id="table-player-card-bottom" class="table-card"></div>
|
|
<div id="table-player-card-left" class="table-card"></div>
|
|
<div id="table-player-info-top">
|
|
<div id="table-player-name-top">Player 1</div>
|
|
<div id="table-player-state-top" class="player-connection-state">Offline</div>
|
|
</div>
|
|
<div id="table-player-info-right">
|
|
<div id="table-player-name-right">Player 2</div>
|
|
<div id="table-player-state-right" class="player-connection-state">Offline</div>
|
|
</div>
|
|
<div id="table-player-info-bottom">
|
|
<div id="table-player-name-bottom">Player 3</div>
|
|
<div id="table-player-state-bottom" class="player-connection-state">Offline</div>
|
|
</div>
|
|
<div id="table-player-info-left">
|
|
<div id="table-player-name-left">Player 4</div>
|
|
<div id="table-player-state-left" class="player-connection-state">Offline</div>
|
|
</div>
|
|
<div id="available-games-list"></div>
|
|
<div id="game-summary">The game has ended.</div>
|
|
</div>
|
|
<div id="action-bar-centering">
|
|
<div id="action-bar"></div>
|
|
</div>
|
|
<div id="player-cards-center">
|
|
<div id="player-cards">
|
|
<button id="player-card1" class="player-card" disabled></button>
|
|
<button id="player-card2" class="player-card" disabled></button>
|
|
<button id="player-card3" class="player-card" disabled></button>
|
|
<button id="player-card4" class="player-card" disabled></button>
|
|
<button id="player-card5" class="player-card" disabled></button>
|
|
<button id="player-card6" class="player-card" disabled></button>
|
|
<button id="player-card7" class="player-card" disabled></button>
|
|
<button id="player-card8" class="player-card" disabled></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
loadExistingSession()
|
|
</script>
|
|
</body>
|
|
</html>
|