Update src/index.php

Групповые бои. #3
This commit is contained in:
Ivor Barhansky 2024-06-21 12:36:09 +00:00
parent d8fd1d0e76
commit 7749bb9b34

View File

@ -1,22 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Battle</title>
</head>
<body>
<h1>Battle</h1>
<form id="joinForm">
<input type="text" id="username" placeholder="Enter your name" required>
<button type="submit">Join Game</button>
</form>
<div id="gameContainer" style="display: none;">
<div id="gameState"></div>
<div id="fighters"></div>
<select id="targetPlayer"></select>
<button value="basic_attack" id="submitMove">Basic Attack</button>
</div>
<script src="battle.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Battle</title>
</head>
<body>
<h1>Battle</h1>
<form id="joinForm">
<input type="text" id="username" placeholder="Enter your name" required>
<select id="gameMode" required>
<option value="" disabled selected>Select game mode</option>
<option value="solo">Solo</option>
<option value="team">Team</option>
</select>
<input id="team" type="number" style="display: none;">
<button type="submit">Join Game</button>
</form>
<div id="gameContainer" style="display: none;">
<div id="gameState"></div>
<div id="fighters"></div>
<select id="targetPlayer"></select>
<button value="basic_attack" id="submitMove">Basic Attack</button>
</div>
<script src="battle.js"></script>
</body>
</html>