-
Notifications
You must be signed in to change notification settings - Fork 0
/
shopping.html
387 lines (367 loc) · 15.7 KB
/
shopping.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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!DOCTYPE html>
<html>
<head>
<title>Toyshop</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="pages">
<table>
<td>
<a class="logo" href="index.html">
<img src="images/TS.png" alt="logo" style="width:120px;height:120px;">
</a>
</td>
<td id="t01">
<p><a class="pages" href="index.html">HOME</a></p>
</td>
<td id="t03">
<p><a class="pages" href="items.html">ITEMS</a></p>
</td>
<td id="t04">
<p><a class="pages" href="table.html">SHOPPING</a></p>
</td>
<td id="t05">
<p><a class="pages" href="contact.html">CONTACT US</a></p>
</td>
</table>
</div>
<script src="myScript.js"></script>
<table id="shoppingtab">
<form action="">
<tr>
<th>Items</th>
<th>Properties</th>
<th>Number of items</th>
<th>Cost ($)</th>
</tr>
</form>
<form action="">
<tr>
<td>
<input type="checkbox" id="items1" name="items1" value="electric car" />
Electric Car
</td>
<td>
<input type="radio" name="type1" value="40">
<label for="male">small- 40$</label><br>
<input type="radio" name="type1" value="50">
<label for="female">medium- 50$</label><br>
<input type="radio" name="type1" value="70">
<label for="other">large- 70$</label> <br>
<input type="radio" name="type1" value="100">
<label for="other">chargeable- 100$</label> <br>
<input type="radio" name="type1" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit1" onchange="price1();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price1" >$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items2" name="items2" value="woody" />
Woody
</td>
<td>
<input type="radio" name="type2" value="10">
<label for="male">small- 10$</label><br>
<input type="radio" name="type2" value="25">
<label for="female">medium- 25$</label><br>
<input type="radio" name="type2" value="50">
<label for="other">large- 50$</label> <br>
<input type="radio" name="type2" value="90">
<label for="other">chargeable- 90$</label> <br>
<input type="radio" name="type2" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit2" onchange="price2();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price2" >$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items3" name="items3" value="Robot" />
Robot
</td>
<td>
<input type="radio" name="type3" value="30">
<label for="male">small- 30$</label><br>
<input type="radio" name="type3" value="33">
<label for="female">medium- 33$</label><br>
<input type="radio" name="type3" value="45">
<label for="other">large- 45$</label> <br>
<input type="radio" name="type3" value="60">
<label for="other">chargeable- 60$</label> <br>
<input type="radio" name="type3" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit3" onchange="price3();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price3" >$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items4" name="items4" value="Toy car" />
Toy car
</td>
<td>
<input type="radio" name="type4" value="90">
<label for="male">small- 90$</label><br>
<input type="radio" name="type4" value="140">
<label for="female">medium- 140$</label><br>
<input type="radio" name="type4" value="170">
<label for="other">large- 170$</label> <br>
<input type="radio" name="type3" value="240">
<label for="other">chargeable- 240$</label> <br>
<input type="radio" name="type3" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit4" onchange="price4();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price4">$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items5" name="items5" value="Robot car" />
Robot car
</td>
<td>
<input type="radio" name="type5" value="40">
<label for="male">small- 40$</label><br>
<input type="radio" name="type5" value="50">
<label for="female">medium- 50$</label><br>
<input type="radio" name="type5" value="other60">
<label for="other">large- 60$</label> <br>
<input type="radio" name="type5" value="80">
<label for="other">chargeable- 80$</label> <br>
<input type="radio" name="type5" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit5" onchange="price5();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price5">$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items6" name="items6" value="Teddy Bear II" />
Teddy bear II
</td>
<td>
<input type="radio" name="type6" value="40">
<label for="male">small- 40$</label><br>
<input type="radio" name="type6" value="60">
<label for="female">medium- 60$</label><br>
<input type="radio" name="type6" value="89">
<label for="other">large- 89$</label> <br>
<input type="radio" name="type6" value="100">
<label for="other">chargeable- 100$</label> <br>
<input type="radio" name="type6" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit6" onchange="price6();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price6" >$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items7" name="items7" value="Teddy bear" />
Teddy bear
</td>
<td>
<input type="radio" name="type7" value="25">
<label for="male">small- 25$</label><br>
<input type="radio" name="type7" value="34">
<label for="female">medium- 34$</label><br>
<input type="radio" name="type7" value="50">
<label for="other">large- 50$</label> <br>
<input type="radio" name="type7" value="80">
<label for="other">chargeable- 80$</label> <br>
<input type="radio" name="type7" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit7" onchange="price7();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price7">$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items8" name="items8" value="Car II" />
Car II
</td>
<td>
<input type="radio" name="type8"value="9">
<label for="male">small- 9$</label><br>
<input type="radio" name="type8" value="14">
<label for="female">medium- 14$</label><br>
<input type="radio" name="type8" value="17">
<label for="other">large- 17$</label> <br>
<input type="radio" name="type8" value="24">
<label for="other">chargeable- 24$</label> <br>
<input type="radio" name="type8" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit8" onchange="price8();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price8" text-align="center">$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items9" name="items9" value="Barbie and Prince" />
Barbie and prince
</td>
<td>
<input type="radio" name="type9" value="10">
<label for="male">small- 10$</label><br>
<input type="radio" name="type9" value="20">
<label for="female">medium- 20$</label><br>
<input type="radio" name="type9" value="30">
<label for="other">large- 30$</label> <br>
<input type="radio" name="type9" value="80">
<label for="other">chargeable-80$</label> <br>
<input type="radio" name="type9" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit9" onchange="price9();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price9" text-align="center">$0</div>
</strong></td>
</tr>
<tr>
<td>
<input type="checkbox" id="items10" name="items10" value="metro toy" />
Metro toy
</td>
<td>
<input type="radio" name="type10" value="90">
<label for="male">small- 90$</label><br>
<input type="radio" name="type10" value="92">
<label for="female">medium- 92$</label><br>
<input type="radio" name="type10" value="100">
<label for="other">large- 100$</label> <br>
<input type="radio" name="type10" value="110">
<label for="other">chargeable- 110$</label> <br>
<input type="radio" name="type10" value="0">
<label for="other">none</label>
</td>
<td>
<select name="time" id="unit10" onchange="price10();">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
<td bgcolor="#dfe1e1"><strong>
<div id="price10">$0</div>
</strong></td>
</tr>
</form>
<tr>
<td colspan="2">You have 15 % discount! </td>
<td>
<button class="bouton" onclick="calculation();">Calculate</button>
<p id="sum"></p>
</td>
<td><div id="total">$0</div></td>
</tr>
</table>
<p id="text"></p>
<div>
<table class="enpied">
<tr>
<td><b> informations</b></td>
<td>toyshop</td><br>
<td>contact</td><br>
<td>FaQ</td><br>
<td>blog</td><br>
</tr>
<tr>
<td><b>Quick links</b></td>
<td>My account</td>
<td>Terms and conditions</td>
<td>shipping and delivery</td>
<td>legal notice</td>
</tr>
<tr>
<td><b>Get in touch</b></td>
<td><b>+905336442062</b></td>
<td>[email protected]</td>
<td*******>
</td>
</tr>
</table>
</div>
</body>
</html>