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.
49 lines
1.4 KiB
49 lines
1.4 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="loader">
|
|
<button class="btn-primary" id="start" type="submit">
|
|
Create private room
|
|
</button>
|
|
|
|
<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>
|
|
|
|
<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="/socket.io/socket.io.js"></script>
|
|
<script type="module" src="./scripts/game.js"></script>
|
|
<script type="module" src="./scripts/index.js"></script>
|
|
</body>
|
|
</html>
|