-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (52 loc) · 743 Bytes
/
Copy pathindex.html
File metadata and controls
52 lines (52 loc) · 743 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Whack-A-Mole with jQuery</title>
<style>
*{
box-sizing:border-box;
}
.game{
margin:auto;
padding:0;
max-width:800px;
border:1px solid #ddd;
}
.hole{
text-align:center;
width:25%;
display:inline-block;
font-size:4em;
}
.mole{
cursor:crosshair;
}
.hit{
display:none;
}
.dirt{
display:none;
cursor:grab;
}
#start{
padding:10px;
font-size:2em;
margin:auto;
display:block;
}
.message{
text-align:center;
background-color:black;
color:white;
font-size:2em;
}
</style>
</head>
<body>
<div class="message"></div>
<div class="game"></div>
<button id="start">Start Game!</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="app.js"></script>
</body>
</html>