forked from bloominstituteoftechnology/JavaScript-III
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
23 lines (22 loc) · 840 Bytes
/
Copy pathindex.html
File metadata and controls
23 lines (22 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<section class="hero">
<button onclick="hector.runover2(vic)" id="heroAtk">Car Attack</button><button onclick="hector.tankMissile(vic)" id="heroAtk">Tank Missile Attack</button>
<h1>Hero HP: <span id="heroHP">10000</span></h1>
<h2 id="heroAtkTxt"></h2>
</section>
<section class="villian">
<button onclick="vic.flail(hector)" id="vilAtk">flail Attack</button>
<h1>Villian HP: <span id="villianHp">10000</span></h1>
<h2 id="villianAtkTxt"></h2>
</section>
<script src="assignments/prototypes.js"></script>
</body>
</html>