gomoku/index.html

37 lines
1.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gomoku!</title>
<meta name="gameId" content="" />
<meta name="playerId" content="" />
<script
src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.6/dist/htmx.min.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/htmx-ext-ws@2.0.2"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="game-container" hx-ext="ws">
<div id="player-info"></div>
<div id="game-board" class="game-board-grid"></div>
<div id="messages" hx-swap-oob="beforeend"></div>
</div>
<div id="game-link-container">
<button id="copy-link-button" onclick="copyGameLink()">
<img src="/icons/clipboard-copy.svg" alt="Copy Game Link" class="icon" />
<span id="copy-link-text">Click to copy game link!</span>
</button>
</div>
<div id="ws-status" style="margin-top: 10px; color: grey">Disconnected</div>
<script src="scripts/display-ws-connection.js"></script>
<script src="scripts/send-ws-messages.js"></script>
<script src="scripts/copy-game-link.js"></script>
</body>
</html>