-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
272 lines (261 loc) · 7.74 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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html lang="en">
<head>
<!--
New Perspectives on HTML5, CSS3, and JavaScript 6th Edition
Tutorial 14
Case Problem 4
Kidder Garden Stamps Game
Author: Hesbon Osoro
Date: 12/11/22
Filename: kg_stamps.html
-->
<title>Stamps at Kidder Garden</title>
<meta charset="utf-8" />
<link href="kg_base.css" rel="stylesheet" />
<link href="kg_layout.css" rel="stylesheet" />
<script src="kg_stamps.js" async></script>
</head>
<body>
<section id="left"></section>
<section id="main">
<header>
<img src="kg_logo.png" alt="Kidder Garden" />
<nav id="top">
<ul>
<li><a href="#">puzzles</a></li>
<li><a href="#">games</a></li>
<li><a href="#">riddles</a></li>
<li><a href="#">jokes</a></li>
<li><a href="#">stories</a></li>
</ul>
</nav>
</header>
<h1><img src="kg_stamph1.png" id="stamph1" alt="Stamps" /></h1>
<p>
Click <img src="kg_add.png" alt="" /> and then select the shape, size,
and shading from the tools on the left. Click anywhere within the canvas
to place the stamp. Remove a stamp by clicking
<img src="kg_remove.png" /> and clicking the stamp image on the canvas.
Change the stamp size by clicking the <img src="kg_enlarge.png" /> or
<img src="kg_shrink.png" /> buttons and clicking the stamp. Move by
clicking the <img src="kg_left.png" />, <img src="kg_right.png" />,
<img src="kg_up.png" />, or <img src="kg_down.png" /> buttons and then
clicking the stamp. Rotate your stamp by clicking the
<img src="kg_rotateright.png" /> or
<img src="kg_rotateleft.png" /> buttons and then clicking the stamp.
Decrease or increase the shading by clicking the
<img src="kg_lighten.png" /> or <img src="kg_darken.png" /> buttons and
then clicking the stamp. Remove all stamps from the canvas by clicking
<img src="kg_garbage.png" />.
</p>
<aside id="controls">
<table id="shapes">
<caption>
Shapes
</caption>
<tr>
<td>
<img
id="stamp0"
src="kg_stamp0.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp1"
src="kg_stamp1.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp2"
src="kg_stamp2.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp3"
src="kg_stamp3.png"
alt=""
class="controlShape"
/>
</td>
</tr>
<tr>
<td>
<img
id="stamp4"
src="kg_stamp4.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp5"
src="kg_stamp5.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp6"
src="kg_stamp6.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp7"
src="kg_stamp7.png"
alt=""
class="controlShape"
/>
</td>
</tr>
<tr>
<td>
<img
id="stamp8"
src="kg_stamp8.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp9"
src="kg_stamp9.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp10"
src="kg_stamp10.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp11"
src="kg_stamp11.png"
alt=""
class="controlShape"
/>
</td>
</tr>
<tr>
<td>
<img
id="stamp12"
src="kg_stamp12.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp13"
src="kg_stamp13.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp14"
src="kg_stamp14.png"
alt=""
class="controlShape"
/>
</td>
<td>
<img
id="stamp15"
src="kg_stamp15.png"
alt=""
class="controlShape"
/>
</td>
</tr>
</table>
<div id="sizes">
<h1>Sizes</h1>
<div id="size0" class="controlSize"></div>
<div id="size1" class="controlSize"></div>
<div id="size2" class="controlSize"></div>
</div>
<table id="shades">
<caption>
Shades
</caption>
<tr>
<td id="shade10" class="controlShade"></td>
<td id="shade30" class="controlShade"></td>
<td id="shade50" class="controlShade"></td>
<td id="shade70" class="controlShade"></td>
<td id="shade100" class="controlShade"></td>
</tr>
</table>
<img src="kg_garbage.png" id="garbage" alt="" />
</aside>
<aside id="drawing">
<section id="tools">
<button class="toolButtons" id="addStamp">
<img src="kg_add.png" alt="" />
</button>
<button class="toolButtons" id="removeStamp">
<img src="kg_remove.png" alt="" />
</button>
<button class="toolButtons" id="enlargeStamp">
<img src="kg_enlarge.png" alt="" />
</button>
<button class="toolButtons" id="shrinkStamp">
<img src="kg_shrink.png" alt="" />
</button>
<button class="toolButtons" id="moveLeft">
<img src="kg_left.png" alt="" />
</button>
<button class="toolButtons" id="moveRight">
<img src="kg_right.png" alt="" />
</button>
<button class="toolButtons" id="moveUp">
<img src="kg_up.png" alt="" />
</button>
<button class="toolButtons" id="moveDown">
<img src="kg_down.png" alt="" />
</button>
<button class="toolButtons" id="rotateRight">
<img src="kg_rotateright.png" alt="" />
</button>
<button class="toolButtons" id="rotateLeft">
<img src="kg_rotateleft.png" alt="" />
</button>
<button class="toolButtons" id="lighten">
<img src="kg_lighten.png" alt="" />
</button>
<button class="toolButtons" id="darken">
<img src="kg_darken.png" alt="" />
</button>
</section>
<section id="canvas"></section>
</aside>
<footer>
<p>Kidder Garden © 2018 All Rights Reserved</p>
</footer>
</section>
<section id="right"></section>
</body>
</html>