-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreasurehunt.html
68 lines (52 loc) · 1.98 KB
/
treasurehunt.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
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Treasure Hunt</title>
<style>
button
{
background-color: forestgreen;
color: blueviolet;
}
body
{
background : black;
color:sandybrown;
}
</style>
<link rel="icon" type="image/x-icon" href="https://upload.wikimedia.org/wikipedia/commons/1/13/Skull_and_Bones.svg"/>
<link rel="stylesheet" href="treasurehunt.css"/
</head>
<body>
<h1 id="title">Treasure Hunter</h1>
<h2>How to Play</h2>
<ul>
<li>Click on a tile to reveal an image.</li>
<li>If a treasure chest is revealed, then you've won!</li>
<li>If a bomb is revealed, then you've lost!</li>
</ul>
<table border="1">
<tr>
<td id="0" onclick="treasure('0')">?</td>
<td id="1" onclick="treasure('1')">?</td>
<td id="2" onclick="treasure('2')">?</td>
</tr>
<tr>
<td id="3" onclick="treasure('3')">?</td>
<td id="4" onclick="treasure('4')">?</td>
<td id="5" onclick="treasure('5')">?</td>
</tr>
<tr>
<td id="6" onclick="treasure('6')">?</td>
<td id="7" onclick="treasure('7')">?</td>
<td id="8" onclick="treasure('8')">?</td>
</tr>
</table>
<button type="button" onclick="location.reload()">Restart Game</button>
<footer>© Carter & Matt</footer> <a href="https://gameforge.com/en-US/littlegames/mini-games/" target="_blank">gameforge.com</a>
<!-- script tag connected the external documents treasurehunt.html and treasurehunt.js -->
<script type="text/javascript" src="treasurehunt.js"></script>
</body>
</html>