-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.html
391 lines (364 loc) · 15.2 KB
/
order.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
388
389
390
391
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Website Bakery KueKoe</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
<!-- font awesome cdn link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<!-- custom css file link -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- awal header -->
<header>
<a style="text-decoration: none" href="index.html" class="logo"><i class="fa-sharp fa-solid fa-hand-back-point-right"></i>Home</a>
<!-- set dark theme using one line -->
<meta name="color-scheme" content="light" />
<div class="latar">
<select id="tema" onChange="switchTema()">
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</div>
<div id="menu-bar" class="fas fa-bars"></div>
<nav class="navbar">
<a style="text-decoration: none" href="#menu">menu</a>
<a style="text-decoration: none" href="#order">order</a>
</nav>
</header>
<!-- ANIMASI UNTUK CURSOR -->
<div class="cursor">
<div class="image-cursor">
<img src="images2/12814425271587982133-128.png" alt="" />
</div>
</div>
<!-- awal menu -->
<section class="menu" id="menu">
<h1 class="heading">List <span> Menu </span></h1>
<div class="box-container">
<div class="box">
<span class="price"> Rp 80.000 / pan</span>
<img src="gambarkuebasah/sarang semut.jpg" alt="" />
<h3>kue Sarang Semut</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 70.000 / pan </span>
<img src="gambarkuebasah/zebra.jpg" alt="" />
<h3>kue Zebra</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs </span>
<img src="gambarkuebasah/putu ayu.jpg" alt="" />
<h3>kue Putu Ayu</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs </span>
<img src="gambarkuebasah/sakura.jpg" alt="" />
<h3>kue Sakura</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs</span>
<img src="gambarkuebasah/kue bendera.jpg" alt="" />
<h3>kue Bendera</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs</span>
<img src="gambarkuebasah/dadargulung .jpg" alt="" />
<h3>kue Dadar Gulung</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 80.000 / pan</span>
<img src="gambarkuebasah/abc64b7abd3d74a574089dca547e997e.jpg" alt="" />
<h3>kue Bolu (bisa req cnth : bolu pandan.harga disesuaikan)</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 10.000/ Bungkus</span>
<img src="gambarkuebasah/roti bakar.jpg " alt="" />
<h3>Roti Bakar Manis</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 11.000 / Bungkus</span>
<img src="gambarkuebasah/roti bakar manis isi cokelat.jpg" alt="" />
<h3>Roti Bakar Manis Isi Cokelat</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs</span>
<img src="gambarkuebasah/roti goreng.jpg" alt="" />
<h3>Roti goreng (bale gula/isi unti/kacang)</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / pan </span>
<img src="gambarkuebasah/wajik.jpg" alt="" />
<h3>kue Wajik (Pandan/Gula Merah)</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / 40 pcs</span>
<img src="gambarkuebasah/klepon.jpg" alt="" />
<h3>klepon</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000/ 20 Pcs</span>
<img src="gambarkuebasah/risol.jpg" alt="" />
<h3>Risol</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 50.000 / toples</span>
<img src="gambarkuekering/nastar.jpg" alt="" />
<h3>Nastar</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 40.000 / toples</span>
<img src="gambarkuekering/choco chips.jpg" alt="" />
<h3>Choco Chips</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
<div class="box">
<span class="price"> Rp 40.000 / Toples</span>
<img src="gambarkuekering/putri salju.jpg" alt="" />
<h3>Putri Salju</h3>
<div class="stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<a href="#order" class="btn">order now</a>
</div>
</div>
</section>
<!-- awal order -->
<section class="order" id="order">
<h1 class="heading"><span>order</span> now</h1>
<!-- peringatan = alert di contact untuk nanti dikirim oleh pengguna -->
<div class="alert alert-success alert-dismissible fade show d-none my-alert" role="alert">
<strong>Terimakasih!</strong> Pesan anda sudah kami terimah.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- Error Alert -->
<div class="alert alert-danger alert-dismissible fade show d-none my-gagal">
<strong>Error!</strong> Anda wajib mengisikan semua .
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
</div>
<div class="row">
<div class="image">
<img src="images2/WhatsApp Image 2022-10-30 at 18.35.04.jpeg" alt="" />
</div>
<form name="submit-to-order-kuekoe">
<div class="inputBox">
<input type="text" id="name" placeholder="nama" name="nama" />
<input type="text" id="nomorhp" placeholder="nomorhandphone" name="nomorhandphone" />
</div>
<div class="inputBox">
<input type="number" id="number" placeholder="Jumlah Pemesanan" name="JumlahKue" />
<select class="form-select" aria-label="Default select example" name="kue">
<option selected>Pilih Kue</option>
<option value="KueSarangSemut">Kue Sarang Semut</option>
<option value="KueZebra">Kue Zebra</option>
<option value="KuePutuAyu">Kue Putu Ayu</option>
<option value="KueSakura">Kue Sakura</option>
<option value="KueBendera">Kue Bendera</option>
<option value="KueDadarGulung">Kue Dadar Gulung</option>
<option value="KueBolu">Kue Bolu</option>
<option value="RotiBakarManis">Roti Bakar Manis</option>
<option value="RotiBakarManisIsiCokelat">Roti Bakar Manis Isi Cokelat</option>
<option value="RotiGoreng">Roti Goreng</option>
<option value="KueWajik">Kue Wajik</option>
<option value="Klepon">Klepon</option>
<option value="Risol">Risol</option>
<option value="Nastar">Nastar</option>
<option value="ChocoChips">Choco Chips</option>
<option value="PutriSalju">Putri Salju</option>
</select>
</div>
<!-- <div class="form-group">
<label class="col-md-2"></label>
<select name="KategoriBarang" id="KategoriBarang" class="form-control col-lg-3">
<option value="" selected disabled>Pilih Kue Anda</option>
<option value="Perabotan">Perabotan</option>
<option value="pakaian">pakaian</option>
<option value="makanan">makanan</option>
</select>
</div> -->
<textarea placeholder="alamat" name="alamat" id="address" cols="30" rows="10"></textarea>
<!--
<input type="submit" value="order now" class="btn" /> -->
<button type="submit" class="btn btn-kirim">Order Now</button>
<!-- untuk loading di contact -->
<button class="btn btn-loading d-none" type="button" disabled>
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Loading...
</button>
</form>
</div>
</section>
<script>
const scriptURL = "https://script.google.com/macros/s/AKfycbzkRwH-6hkiNe3RB0HI7ygUaqKZlHtNMjXMV_Ik2pDMV1UfcD0F2mqJJk-8Ql7EsFzr/exec";
const form = document.forms["submit-to-order-kuekoe"];
const btnKirim = document.querySelector(".btn-kirim");
const btnLoading = document.querySelector(".btn-loading");
const myAlert = document.querySelector(".my-alert");
const myGagal = document.querySelector(".my-gagal");
form.addEventListener("submit", (e) => {
e.preventDefault();
// ketika tombol kirim di klik
// tampilkan tombol loading,hilangkan tombol kirim
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
fetch(scriptURL, { method: "POST", body: new FormData(form) })
.then((response) => {
// tampilkan tombol kirim,hilangkan tombol loading
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
//tampilkan alert/peringatan pada saat sudah di kirim
myAlert.classList.toggle("d-none");
//reset form setelah dikirim oleh pembaca
form.reset();
console.log("Success!", response);
})
.catch((error) => {
console.error("Error!", error.message);
});
});
</script>
<!-- akhir order -->
<!-- awal footer -->
<section class="footer">
<div class="share">
<a href="https://m.facebook.com/profile.php?id=100087201817267&lst=100002337313990%3A100087201817267%3A1667376622&eav=AfbprbUS_6WQu9_7yTlMeDGoPlGTSPF0xsmZhOmFfd_G2U13RezFke2CYwKcVvblgNY&paipv=0" class="btn">facebook</a>
<a href="https://www.instagram.com/kuekoe.ofc/?hl=id" class="btn">instagram</a>
</div>
<h1 class="credit">created by <span style="font-family: 'Brush Script MT', Cursive; font-size: 150%"> KueKoe Bakery </span> | KueKoe KU SIAP MENDAMPINGI PESTAMU</h1>
</section>
<!-- scroll top button -->
<a style="text-decoration: none" href="#menu" class="fas fa-angle-up" id="scroll-top"></a>
<!-- loader -->
<div class="loader-container">
<img src="images2/The Cake.gif" alt="" />
</div>
<!-- custom js file link -->
<script src="script.js"></script>
</body>
</html>