49 lines
1.9 KiB
HTML
49 lines
1.9 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'></script>
|
|
<script src='api.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">
|
|
<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>
|
|
<button id="refresh-tables" class="standard-button" onclick="refreshTables()">Refresh</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="table-list">
|
|
</div>
|
|
|
|
<div class="signup-window" id="signup-window">
|
|
<div class="signup-window-vertical-center">
|
|
<div class="signup-window-inner">
|
|
<label for="usrname">Username</label>
|
|
<input type="text" id="user-name" name="usrname" required>
|
|
|
|
<label for="psw">Password</label>
|
|
<input type="password" id="user-pwd" name="psw" required>
|
|
|
|
<button class="login-buttons standard-button" onclick="registerUser()">Register</button>
|
|
<button class="login-buttons standard-button" onclick="loginUser()">Log in</button>
|
|
<div id="login-error"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
loadExistingSession()
|
|
</script>
|
|
</body>
|
|
</html> |