MultiplayerMinesweeper/www/index.html

54 lines
1.9 KiB
HTML
Raw Normal View History

2022-06-19 20:21:33 +00:00
<!DOCTYPE html>
<html>
<head>
<title></title>
2022-06-19 21:54:34 +00:00
<script src="http://localhost:35729/livereload.js" charset="utf-8"></script>
2022-06-22 01:51:09 +00:00
<script type="text/javascript" src="socket.io.min.js"></script>
2022-06-19 20:21:33 +00:00
<link rel="stylesheet" href="style.css">
<script src='scripts/script.js' type="module"></script>
2022-06-19 20:21:33 +00:00
</head>
<body>
<!-- Canvas used to generate individual sprites off one sprite atlas -->
2022-06-19 20:21:33 +00:00
<canvas class="hidden" id="spriteJank" width=24 height=24></canvas>
<main>
<p id="message"></p>
<div id="game" style="display: none;">
2022-06-22 20:01:58 +00:00
<span id="leftBar">
<p id="status">Connection Status</p>
2022-06-22 20:01:58 +00:00
</span>
<span id="rightBar">
<div class="canvasContainer">
<canvas oncontextmenu="return false;" id="canvas" width=0 height=0></canvas>
2022-06-22 20:01:58 +00:00
</div>
</span>
2022-06-19 20:21:33 +00:00
</div>
<div class="menu" id="menu">
<div id="joinType">
<h2>Create Room Or Join with code?</h2>
<button type="button" id="gotoCreate">create game</button>
<button type="button" id="gotoJoin">Join game</button>
</div>
<div id="joinGame" style="display: none;">
<input type="text" id="joinGameCode" value="">
<input type="text" id="joinGameUsername" value="bob">
<button type="button" id="joinGameButton">Join</button>
</div>
<div id="createGame" style="display: none;">
<input type="text" id="createGameUsername" value="bob">
<button type="button" id="createRoomButton">create Room</button>
<div id="createGameOptions">
<h3>Options:</h3>
<input type="number" id="createGameOptionsMines" value="100">
<input type="number" id="createGameOptionsWidth" value="32">
<input type="number" id="createGameOptionsHeight" value="32">
</div>
</div>
2022-06-19 20:21:33 +00:00
</div>
</main>
2022-06-19 20:21:33 +00:00
</body>
2022-06-19 20:21:33 +00:00
</html>