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

98 lines
3.3 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 class="modal" id="opponentLeftModal">
<div class="modalContent" id="opponentLeftModalContent">
<p>Your opponent has left the game.</p>
<button id="closeModalButton" class="close">Okay</button>
</div>
</div>
<div class="modal" id="gameEndedModal">
<div class="modalContent" id="gameEndendModalContent">
<p>We have a winner</p>
<div class="buttonChoice">
<button id="rematchButton" class="close">Rematch</button>
<button id="goToMenuButton" class="close">Menu</button>
</div>
</div>
</div>
<div class="modal" id="waitChoiceModal">
<div class="modalContent" id="waitChoiceModalContent">
<p>Waiting for opponent ...</p>
</div>
</div>
<div class="modal" id="rematchModal">
<div class="modalContent" id="rematchModalContent">
<p>Your opponent want to rematch !</p>
<div class="buttonChoice">
<button id="acceptButton" class="close">Accept</button>
<button id="goToMenuButton2" class="close">Go to menu</button>
</div>
</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 id="errorHandler"></div>
</div>
</br>
</br>
<div id="game">
<canvas id="own_board" width="301" height="301"></canvas>
<canvas
id="ennemy_board"
style="display: none;"
width="301"
height="301"
></canvas>
</div>
</br>
<button class="btn-primary hidden-element" id="rotate" type="submit">
Rotate
</button>
<br>
<button class="btn-primary" style="display: none;" id="validGrid" type="submit">
Validate !
</button>
<p id="playerInfo"></p>
<div id="inGameNotification">
<h2 style="display: none;" id="play_notification">You have to play</h2>
<h2 style="display: none;" id="hit_notification">Hit !</h2>
<h2 style="display: none;" id="win_notification">WIN !</h2>
</div>
<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>