-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (56 loc) · 1.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cricket Game</title>
<link rel="stylesheet" href="Bat ball wicket.css">
<style>
body {
text-align: center;
margin: 5px 2px;
}
button {
margin: 5px 2px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="main">
<h1 class="content">Bat Ball Stump Game</h1>
<div class="divi">
<button onclick="
let userchoice='Bat';
let computer=computerchoice();
let result=displayresult(userchoice,computer);
console.log(result);
display(result,userchoice,computer);
"><img src="bat.png" alt="BAT" class="photo"></button>
<button onclick="
userchoice='Ball';
computer=computerchoice();
result=displayresult(userchoice,computer);
console.log(result);
display(result,userchoice,computer);
"><img src="ball (1).png" alt="BALL" class="photo"></button>
<button onclick="
userchoice='Stumps';
computer=computerchoice();
result=displayresult(userchoice,computer);
console.log(result);
display(result,userchoice,computer);
"><img src="stump.png" alt="STUMPS" class="photo"></button>
</div>
<h3 id="m1"></h3>
<h3 id="m2"></h3>
<h3 id="m3"></h3>
<h3 id="m4"></h3>
<button onclick="localStorage.clear()
remove()
display(undefined,undefined,undefined); ">
Reset
</button>
</div>
<script src="game.js">
</script>
</body>
</html>