You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
6.1 KiB
145 lines
6.1 KiB
2 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<script src="https://cdn.socket.io/4.4.1/socket.io.min.js" type="text/javascript"></script>
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js" type="text/javascript"></script>
|
||
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/lib/benjo_library.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/events.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/sketch.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/Card.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/Game.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/Player.js" type="text/javascript"></script>
|
||
|
<script src="data/scripts/Online.js" type="text/javascript"></script>
|
||
|
<link href="styles.css" rel="stylesheet">
|
||
|
<link href="data/styles/color_picker.css" rel="stylesheet">
|
||
|
<link href="data/styles/range_input.css" rel="stylesheet">
|
||
|
<link href="data/images/favicon.ico" rel="icon" type="image/x-icon">
|
||
|
<title>Memory</title>
|
||
|
</head>
|
||
|
<body style="display: none;">
|
||
|
<div id="p5_loading"></div>
|
||
|
<div id="game">
|
||
|
<div class="player-holder" id="left">
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="table"></div>
|
||
|
<div class="player-holder" id="right">
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="player">
|
||
|
<div class="has-turn"></div>
|
||
|
<span></span>
|
||
|
<label class="pairs-label"></label>
|
||
|
<div class="staple">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="interface">
|
||
|
<button onclick="game.shuffle();">Shuffle</button>
|
||
|
<button onclick="game.start();">Start</button>
|
||
|
</div>
|
||
|
<div id="initialize-wrapper">
|
||
|
<div class="initialize-lobby" id="initialize">
|
||
|
<fieldset id="game-type">
|
||
|
<legend>Type</legend>
|
||
|
<form>
|
||
|
<input id="offline" name="game-type" type="radio" value="offline">
|
||
|
<label for="offline">Offline</label><br>
|
||
|
<input id="online" name="game-type" type="radio" value="online">
|
||
|
<label for="online">Online</label>
|
||
|
</form>
|
||
|
</fieldset>
|
||
|
<fieldset id="player-count">
|
||
|
<legend>Player</legend>
|
||
|
<select>
|
||
|
<option value="2">2</option>
|
||
|
<option value="3">3</option>
|
||
|
<option value="4">4</option>
|
||
|
<option value="5">5</option>
|
||
|
<option value="6">6</option>
|
||
|
<option value="7">7</option>
|
||
|
<option value="8">8</option>
|
||
|
</select>
|
||
|
</fieldset>
|
||
|
<fieldset id="player-name">
|
||
|
<span>Enter your name:</span><br>
|
||
|
<input type="text"/><br>
|
||
|
<span class="error-label"></span>
|
||
|
</fieldset>
|
||
|
<button class="setup" onclick="continueForm();">OK</button>
|
||
|
<button class="setup" onclick="createLobby(this);">Create Lobby</button>
|
||
|
<fieldset id="join-lobby">
|
||
|
<span>Enter Lobby Code:</span><br>
|
||
|
<input type="text"/><br>
|
||
|
<span class="error-label"></span>
|
||
|
</fieldset>
|
||
|
<button class="setup" onclick="joinLobby(this);">Join Lobby</button>
|
||
|
<div id="loader"></div>
|
||
|
</div>
|
||
|
<div class="initialize-lobby" id="lobby">
|
||
|
<div id="lobby-members"></div>
|
||
|
<button class="setup" id="start-lobby" onclick="startLobby(this);">Start</button>
|
||
|
<button class="setup" id="leave-lobby" onclick="leaveLobby(this);">Leave</button>
|
||
|
<span id="lobby-id"></span>
|
||
|
<span class="error-label"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|