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.
maettleship/public/pages/gameView.html

69 lines
2.2 KiB

<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="assets/style.css" />
<title>Maettleship</title>
</head>
<body>
<div id="opponentLeftModal">
<div id="opponentLeftModalContent">
<p>Your opponent has left the game.</p>
<button id="closeModalButton" class="close">Okay</button>
</div>
</div>
<div id="gameEndedModal">
<div id="gameEndedModalContent">
<p>We have a winner</p>
<button id="closeEndGameModalButton" class="close">Okay</button>
</div>
</div>
<div id="roomkeyHolder"></div>
<div id="loader">
<button class="btn-primary" id="start" type="submit">
Create private room
</button>
<input type="text" class="input-container" id="roomKey" minlength="2" placeholder="room key" required>
<button class="btn-primary" id="join" type="submit">
Join room
</button>
</div>
</br>
</br>
<div id="game">
<canvas id="own_board" width="301" height="301"></canvas>
<canvas
id="ennemy_board"
class="hidden-element"
width="301"
height="301"
></canvas>
</div>
</br>
<button class="btn-primary hidden-element" id="rotate" type="submit">
Rotate
</button>
<p id="playerInfo"></p>
<h2 class="hidden-element" id="play_notification">You have to play</h2>
<h2 class="hidden-element" id="hit_notification">Hit !</h2>
<h2 class="hidden-element" id="win_notification">WIN !</h2>
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script>
<script type="module" src="../scripts/game.js"></script>
<script type="module" src="../scripts/app.js"></script>
<script src="../scripts/gamePageInfo.js"></script>
</body>
</html>