-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
210 lines (200 loc) · 9.18 KB
/
Copy pathindex.html
File metadata and controls
210 lines (200 loc) · 9.18 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<!--
author: Jo Crane
'Cat Count' is an interactive single-page web application using HTML, CSS, and JavaScript.
The goal is to search your apartment (by clicking) all areas in which your cats may be hiding to find them all before the timer expires.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cat Count!</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="./img/icons8-cat-doodle-96.png" />
</head>
<body>
<section id="splashPage">
<div class="container">
<dialog id="splashTitle">
<h1>Cat Count!</h1>
</dialog>
<dialog id="instructions">
<h1><u>Find Your Kitties!</u></h1>
<p>You are about to leave for work in a hurry...</p>
<p>
but your cats <u>love</u> getting themselves into sticky
situations!
</p>
<p>
Check every place they could be hiding before the clock
runs out or you might be <b><u>late for work!</u></b>
</p>
<div id="startGameContainer">
<button id="startGameButton" onclick="startGame()">
Start
</button>
</div>
</dialog>
<div id="letsGoButtonContainer">
<button id="letsGoButton" onclick="showInstructions()">
<p>Let's go!</p>
</button>
</div>
</div>
</section>
<main id="playArea" class="hidden">
<nav
id="goToBedroomButton"
class="goToLocationButton"
onclick="goToLocation('bedroom')"
>
◂ To the Bedroom
</nav>
<nav
id="goToKitchenButton"
class="goToLocationButton"
onclick="goToLocation('kitchen')"
>
To the Kitchen ▸
</nav>
<section class="row row__stats">
<p id="timer" class="stats--display">
Timer: <span id="timerValue"></span>
</p>
<p id="foundCounter" class="stats--display">
Found: <span id="foundCounterValue">0</span>/3
</p>
<!-- TODO: change the total to be whatever the javascript totalCats count is-->
</section>
<div class="finalDialog">
<dialog class="success" id="successMessage">
You found all of your cats, now head to work!<br />😎<br /><br />
<p class="thanksText">
<br />Thanks for playing!<br /><br />
Please check out my other projects at:<br />
<a
href="https://github.com/sherpa-code"
style="color: white"
>GitHub</a
><br />
<i>- Jo Crane</i>
</p>
<br />
</dialog>
<dialog class="failure" id="failureMessage">
You didn't find your cats in time...<br />
Oh no! You'll be late!<br />🥺
<p class="thanksText">
Thanks for playing!<br /><br />
Please check out my other projects at:<br />
<a href="https://github.com/sherpa-code">GitHub</a
><br />
- Jo Crane
</p>
<br />
</dialog>
</div>
<!-- Clickable areas: Kitchen -->
<section class="kitchen">
<img
src="./img/kitchen.jpg"
alt="Location Image"
id="locationImage"
class="backgroundImage"
/>
<section class="row row__upper">
<div class="areaClickable" id="area_kitchen_1"></div>
<div class="areaClickable" id="area_kitchen_2"></div>
<div class="areaClickable" id="area_kitchen_3"></div>
<div class="areaClickable" id="area_kitchen_4"></div>
<div class="areaClickable" id="area_kitchen_5"></div>
</section>
<section class="row row__middle">
<div class="areaClickable" id="area_kitchen_6"></div>
<div class="areaClickable" id="area_kitchen_7"></div>
</section>
<section class="row row__bottom">
<div class="cupboards bottom-left">
<div class="areaClickable" id="area_kitchen_8"></div>
</div>
<div class="bottom-second-left-top">
<div class="areaClickable" id="area_kitchen_9"></div>
<div class="bottom-second-left-bottom">
<div
class="areaClickable"
id="area_kitchen_10"
></div>
<div
class="areaClickable"
id="area_kitchen_11"
></div>
</div>
</div>
<div class="cupboards bottom-second-right">
<div class="areaClickable" id="area_kitchen_12"></div>
<div class="areaClickable" id="area_kitchen_13"></div>
</div>
<div class="cupboards bottom-right">
<div class="areaClickable" id="area_kitchen_14"></div>
<div class="areaClickable" id="area_kitchen_15"></div>
<div class="areaClickable" id="area_kitchen_16"></div>
<div class="areaClickable" id="area_kitchen_17"></div>
<div class="areaClickable" id="area_kitchen_18"></div>
</div>
</section>
</section>
<!-- Clickable areas: Bedroom -->
<section class="bedroom hidden">
<img
src="./img/bedroom.jpg"
alt="Location Image"
class="backgroundImage"
/>
<section class="row row__upper">
<div
class="areaClickable cupboards"
id="area_bedroom_1"
></div>
<div class="cupboards shelves-stacked">
<div class="areaClickable" id="area_bedroom_2"></div>
<div class="areaClickable" id="area_bedroom_3"></div>
</div>
<div class="cupboards jewelery-drawer-stacked">
<div class="areaClickable" id="area_bedroom_4"></div>
<div class="areaClickable" id="area_bedroom_5"></div>
</div>
<div class="areaClickable drapes" id="area_bedroom_6"></div>
</section>
<section class="row row__middle">
<div class="closet left">
<div class="areaClickable" id="area_bedroom_7"></div>
</div>
<div class="closet second-left">
<div class="areaClickable" id="area_bedroom_8"></div>
</div>
<div class="closet second-middle">
<div class="areaClickable" id="area_bedroom_9"></div>
<div class="areaClickable" id="area_bedroom_10"></div>
</div>
</section>
<section class="row row__bottom">
<div class="closets left">
<div class="areaClickable" id="area_bedroom_12"></div>
<div class="areaClickable" id="area_bedroom_13"></div>
<div class="areaClickable" id="area_bedroom_14"></div>
<div class="areaClickable" id="area_bedroom_15"></div>
</div>
<div class="closet middle"></div>
<div class="closet second-middle-bottom"></div>
<div class="drawers">
<div class="areaClickable" id="area_bedroom_20"></div>
<div class="areaClickable" id="area_bedroom_21"></div>
<div class="areaClickable" id="area_bedroom_22"></div>
</div>
<div class="areaClickable bed" id="area_bedroom_23"></div>
</section>
</section>
</main>
<script src="index.js" type="text/javascript"></script>
</body>
</html>