-
Notifications
You must be signed in to change notification settings - Fork 0
/
mealsmain.html
719 lines (514 loc) · 24.1 KB
/
mealsmain.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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fresh UpTo=The Mark</title>
</head>
<link rel="stylesheet" href="stylemain.css">
<style>
@media only screen and (min-width: 500px) and (max-width: 768px){
.upfirst{
display: none;
}
.body1>div{
background-color: #7800CF;
display: grid;
grid-template-columns: repeat(2,1fr);
}.body h1{
margin: auto;
font-size: 10px;
}
nav{
top: 0;
position:fixed ;
}.container{
overflow: hidden;
}
.inside{
position:absolute;
top:100%;
left: 200px;
color:black;
font-size: 20px;
background: linear-gradient(to right, rgb(192, 192, 103), rgb(111, 227, 111),rgb(154, 154, 192));
}
}
</style>
<body>
<div class="upfixed">
<div class="up1st">
<img id="toplogo" src="Untitled design.png">
<h4> <a href="mealsmain.html"> meals</a></h4>
</div>
<div id="upsec">
<a href="mealswell.html"> <h4>meals<span id="hov">well</span></h4></a>
</div>
</div>
<nav>
<div class="logo">
<a style="text-decoration:none;color:black" href="mealsmain.html"></a><img src="Untitled design.png"></a>
<a style="text-decoration:none;color:black" href="mealsmain.html"><h4>meals</h4></a>
</div>
<div id="buttonsall" >
<button>
<a href="plansandmenue.html" class="navlink">Plans & Menue</a>
</button>
<button>
<a href="plansandmenue.html" class="navlink">How it Works</a>
</button>
<button>
<a href="plansandmenue.html" class="navlink">Gifts</a>
</button>
<button>
<a href="plansandmenue.html" class="navlink">Refer a Friend</a>
</button>
<button>
<a href="plansandmenue.html" class="navlink">Help</a>
</button>
</div>
<div id="logins">
<button >
<a style="text-decoration: none;" href="login.html">Login</a>
</button>
<button class="signup" ><a href="mealsmain.html">Signup</a></button>
</div>
</nav>
<div id="container">
<div class="conimg">
<img src="https://blog.travelcenter.uk/wp-content/uploads/2019/09/1-5.jpg" alt="">
<h1 class="inside">Meals on the way, on time.</h1>
</div>
<div class="writtencon">
<h1>Balanced meals for busy lives.</h1>
<button>Explore Meals</button>
<h3 style="margin: 30px 30px ;">See meals available in your area!</h3>
<label for="">Email Address</label>
<label for="" style="margin-left:33%;">Zip code</label>
<br>
<div class="contemail ">
<form id="fill1" action="">
<input class="toolo" type="email" placeholder="meals@meals.com" required style="margin-left:30px ">
<input class="pas1" type="password" maxlength="5" placeholder="1111" required style="margin-left:10px" >
<br>
<button class="conget" style="color: white">Get Started</button>
</form>
</div>
<p style="margin-left:30px;font-size:17px">By continuing, you agree to ours <a href="terms.html">Terms</a> and<a href="terms.html"> Privacy policy</a><br>& will receive emails from meals.</p>
</div>
</div>
<div class="body1">
<h1>How it works</h1>
<div class="grid">
<div>
<img style="margin-top:35px;" src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62b0b19dbc5f55c4206158f7_choose-your-meals%20(1).svg" alt="">
<h3>Choose Your Meals</h3>
<p>Rotating menu of 50+ balanced dishes.</p>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62b0b19b358b954d12f769ba_we-cook-deliver%20(1).svg" alt="">
<h3>We Cook & Deliver</h3>
<p>Fully-cooked meals sent fresh, never frozen.</p>
</div>
<div>
<img style="margin-top:25px;" src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62b0b19b53e85f79fe3374c5_chill-reheat.svg" alt="">
<h3>We Cook & Deliver</h3>
<p>Fully-cooked meals sent fresh, never frozen.</p>
</div>
<div>
<img style="margin-top:10px;" src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62f258373288e30c31c265b2_Group%2023.svg" alt="">
<h3>Eat & Repeat
</h3>
<p>Change meals, skip a week or cancel at any time.</p>
</div>
</div>
</div>
<div class="mealimages" >
<div class="mealcontain">
<h2 style="margin-top:20px;">On the menu</h2>
<br>
<h3 style="padding:10px 20px 20px 20px;">Each Freshly meal is perfectly sized for 1 person to enjoy at 1 sitting. Our fully-prepared meals are delivered fresh, and ready to eat in 3 minutes.</h3>
<div class="imagecont">
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb765dff2da0c2e1fb_635823f4ce4929328b1f96f9_production-meal-image-9e969581-d09c-4617-9b17-d455d23c8952.jpeg" alt="">
<h4>BBQ Bison Burger*</h4>
<h4 style="color: gray; font-size: 14px">610
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb8cd4f9d87ba86916_635823f4ce492977d91f974a_production-meal-image-f0de55be-d691-4ade-bc26-b4a8aedaa1fe.jpeg" alt="">
<h4>Sausage Baked Penne</h4>
<h4 style="color: gray; font-size: 14px"">470
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb5ae22f4680ff53d8_635823f4ce492947161f9738_production-meal-image-e4122aa8-0fe7-4854-b6f5-e27e0c5be918.jpeg" alt="">
<h4>Homestyle Chicken</h4>
<h4 style="color: gray; font-size: 14px">560
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb7be30f1df3054aa2_635823f4ce492958261f9755_production-meal-image-29e2b6e1-12af-405d-8b33-91e19b2a0fef.jpeg" alt="">
<h4>
Tricolor Beef Lasagna</h4>
<h4 style="color: gray; font-size: 14px">640
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb8b1f5aa9b139be56_635823f4ce492904901f973e_production-meal-image-c9eef45a-97a9-487c-9550-71488e5f639a.jpeg" alt="">
<h4>Cauliflower Shell Beef Bolognese</h4>
<h4 style="color: gray; font-size: 14px">490
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e13011831ae4624b37/636a66bb684a20a3c8466513_635823f4ce492969991f9772_production-meal-image-25f9ce2d-ca21-499e-a140-8d59b4733ec2.jpeg" alt="">
<h4>Flame-Seared Top Blade Steak</h4>
<h4 style="color: gray; font-size: 14px">610
Cal|
Gluten Free| <br>
Single-Serve</h4>
</div>
</div>
<button class="hov"><a style="color: white;" href="plansandmenue.html">View Plan & Menu</a></button>
</div>
</div>
<div class="bigdiv">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/6192ce7669f68694a8b969af_Group%20(8).svg" alt="">
<h1>Flexible plans that fit your life
</h1>
<p style="color:gray;">We offer anywhere from 4–12 meals per week, with meals as low as $9.58 each. The bigger your box, the <br> more you’ll save—and you can always pause or change your plan at any time.</p>
<div class="imagesbigdiv">
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62fb492937b0377ca6310cb0_4-5%20Meals-p-500.png" alt="">
<h2>4-5 Meals</h2>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62fb492393696224964e1910_6-7%20Meals-p-500.png" alt="">
<h2>6-7 Meals</h2>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62fb492cddaec74cb5161350_8-9%20Meals-p-500.png" alt="">
<h2>8-9 Meals</h2>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62fb492794414230d9d0e1be_10-11%20Meals-p-500.png" alt="">
<h2>10-11 Meals</h2>
</div>
<div>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/62fb4927a7912ad1a7770be8_12%20Meals-p-500.png" alt="">
<h2>12 Meals</h2>
</div>
</div>
<p style="font-family: sans-serif">Shipping and tax added at checkout. Prices are rounded for your convenience.</p>
<button>Sign Up Now</button>
</div>
<div class="slidemain">
<h1 style="font-size:40px;color:black">What others are Saying</h1>
<div id="slider">
<div>
<h2 id="fakebutton"><</h2>
</div>
<div id="slidenow">
<div id="on">
<!-- < append the images an the slider function over here. -->
</div>
</div>
<div>
<h1 id="fakebutton2">></h1>
</div>
</div>
</div>
<div class="popupbackground">
<div class="upbackfirst">
<h1>We believe eating right <br> should be easy for everyone.
</h1>
<h3 style="font-size: 15px;">Each Freshly meal is perfectly sized for 1 person to enjoy at 1 sitting. Our fully- <br> prepared meals are delivered fresh, and ready to eat in 3 minutes.</h3>
<button>Learn More</button>
</div>
<div class="upback">
<img width="100%" height="700px" src="https://i0.wp.com/www.runninginaskirt.com/wp-content/uploads/2019/01/Easy-Vegetarian-Freezer-meals-wide.jpg?fit=1000%2C667&ssl=1" alt="">
</div>
</div>
<div class="secondlast">
<div class="para">
<h1>Your meals,on your terms</h1>
<h4 style="padding-top:10px;">Select any number of meals between 4 and 12 per week. Flex it up or down—the choice is yours!</h4>
</div>
<div class="inside2ndlast">
<div>
<h3 style="padding-top:10px;padding-bottom:10px">Plan Calculator</h3>
<div id="seconlastsomewhere">
<img src=" https://assets-global.website-files.com/5d03b4e130118314af624b20/62f2640f0b52a61056021a41_Star%20Copy.svg" alt="">
<p style="padding-top:10px;padding-bottom:10px">Most Popular</p>
</div>
<button id="minus">-</button>
<span class="planchange">4</span>
<button id="plus">+</button>
<br>
<h4>Meals</h4>
</div>
<hr>
<div class="firstplan">
<h4><span class="planchange">4</span>" meals"</h4>
<h4>$87.50</h4>
</div>
<hr>
<div class="secondplan">
<h4>Plan discount</h4>
<h4 id="minusmark">00</h4>
</div>
<hr>
<div class="subtotal">
<h4>Subtotal</h4>
<h4 id="subt-">0</h4>
</div>
<button class="explore"><a style="text-decoration: none;color: white;" href="plansandmenue.html">Explore</a></button>
</div>
</div>
<div class="popupbackground">
<div class=".backgroundpop">
<img width="130%" height="700px" src="https://i1.wp.com/www.lavenderandlovage.com/wp-content/uploads/2013/04/914kBAg8ckL._AA1500_.jpg?ssl=1" alt="">
</div>
<div class="healthy">
<h1>Healthy Meals Delivered <br> Weekly</h1>
<form id="signup2" action="">
<input class=".toolo" type="email" placeholder="meals@gmail.com" required>
<br>
<input class="pass1" type="password" minLength="5" maxlength="5" placeholder="ZIP" required>
<br>
<button class="conget" style="color: white">Get Started</button>
</form>
<p>Already had an account? <a href="Login.html">Login</a> </p>
<p>By continuing, you agree to our <a href="terms.html">Terms</a> and <a href="Privacy">Privacy Policy.</a> & will receive emails from Freshly.</p>
</div>
</div>
<div class="abovefooter">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523e435aee2e3a4ab03e6f_The_Huffington_Post_logo.svg" alt="">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523e412d98cd166a6c84e6_logo-header.64f3bdc15b1f321829f9f30c7853a1469f469d71.svg" alt="">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523e436b26e00a240533b1_Entrepreneur-01.svg" alt="">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523e432759db28ffaf924f_w-g-logo-black.svg" alt="">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523f552759db186baf93d2_techcrunch-seeklogo.com%20%5BConverted%5D.svg" alt="">
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5f523e434bbecc1909457f48_logo-header.aeb2e510354d524c42a87c5d0a97d0a73c5d7581.svg" alt="">
</div>
<!-- <div class="common">
<h1 class="heading">Common Questions</h1>
<div class="">
<details>
<summary>How many servings are your meals??</summary>
<p class="text">With a selection that spans nourishing breakfasts, lunches, and dinners, the majority of our meals are single serving and perfectly sized for 1 person to enjoy at 1 sitting. We also offer multi-serve proteins and sides, which are designed to feed multiple people for extra mealtime flexibility. These delicious, ready-to-heat options can help you bulk up existing meals, simplify home cooking, or even build an entire meal—the choice is yours!
We offer anywhere from 4–12 meals per week, with meals as low as $8.99 each—and you always have the freedom to flex your number of meals up each week to add on breakfast items*, which are unlocked upon your second order. On average, our meals weigh in at about 13 ounces and range from 300 to 650 calories. If you have a larger household, we do offer a 12 meal per week subscription (it’s ideal for couples or a family of 4 looking for 3 meals per week). Plus, you can always order multiple subscriptions. We may be biased, but there’s no better feeling than a fridge full of Freshly!
*Each breakfast item counts towards your 12-meal maximum.</p>
</details>
<details>
<summary>Do you accommodate dietary preferences?</summary>
<p class="text">We accommodate a variety of dietary preferences, including gluten-free, dairy-free, peanut-free, plant-based, low-calorie, and carb-conscious options. As a customer, you can set your own dietary preferences and easily find the meals that work for you (learn more here). You can also check out individual ingredient lists for each dish if you have specific concerns.
If you’re unable to place an order that fits your preferences now, be sure to check back frequently as we’re always adding new and exciting dishes.
Please note: We always recommend consulting your physician or nutritionist if you have any specific health concerns.</p>
</details>
<details>
<summary>How long do the meals last?</summary>
<p class="text">Our meals are chef prepared and delivered fresh, so typically they have a refrigerated shelf life of about 3-5 days. Select items (such as seafood) are best eaten first, so we’ll add a badge on the package to let you know. We usually suggest enjoying these meals within the first few days of receiving your order, but you can always check their exact use-by date on the back-of-pack nutrition label. If you’re ever unable to finish your meals within their shelf life, you can always pop them into the freezer for extended storage. Just be sure to microwave your meal straight from the freezer and add a few extra minutes to reach the 165° F internal temperature we recommend.</p>
</details>
<details>
<summary>How do I heat up my meals??</summary>
<p class="text">Your meals will come to you fully prepared so you just have to heat ‘em up in the microwave. On the back of each meal, you’ll find our easy steps for heating, but generally, the meals heat up in about 3 minutes (depending on your microwave). If you’re unsure, start at 2 minutes and heat in 30–second increments until the meal reaches an inner temperature of 165° F. Our meals are packaged to be heated in the microwave (for the ultimate convenience), but you can heat them in the oven if you’d like. Just so you know, our current meal containers aren’t safe for the oven or stovetop, so you’ll have to transfer your food to heat it up. You can check out the full oven reheat directions in our .</p>
</details>
<details>
<summary>How does shipping work??</summary>
<p class="text">To help guarantee your meals arrive in the freshest condition, there is a small shipping fee associated with your order. We deliver to all states within the continental U.S., and our shipping partners offer delivery every day of the week. The exact days that we can reach you will depend on your ZIP code and the carrier delivering your Freshly meals. Whether you're signing up or updating your typical delivery day, we'll show you all the days available to you so you can choose what's best for you.</p>
</details>
<details>
<summary>How does subscription work?</summary>
<p class="text">Every week you get to pick your selection of meals from our weekly rotation of 35+ options. Choose any number of meals between 4 and 12 per week, with meals as low as $9.58 each. You'll pick the most convenient delivery day for you, and we'll ship your chef-cooked meals right to your doorstep! If you ever need to skip or cancel a week, or size your order up or down, it's easy to make changes to your upcoming delivery before the weekly deadline</p>
</details>
</div>
</div>
-->
<div class="footer">
<div class="footerfirst">
<div class="footlogo">
<img width="30px" src="Untitled design.png" alt="">
<h2>MEALS</h2>
</div>
<p style="font-size: 10px;padding-left: 8px;">@MEALS INC.</p>
</div>
<div class="footmiddle">
<div class="first">
<ul style="font-size:13px ;">
<li>Company</li>
<li>Career</li>
<li>Contact Us</li>
<li>Press</li>
<li>Terms</li>
<li>Privacy</li>
<li>Affilates</li>
<li>Partnership</li>
</ul>
</div>
<div class="second">
<ul style="font-size:13px ;">
<li>Learn More</li>
<li>Plan & Menu</li>
<li>Why Freshly?</li>
<li>Gifts</li>
<li>FAQs</li>
<li>Blog</li>
<li>Students</li>
</ul>
</div>
</div>
<div class="lastfooter">
<p>Join us</p>
<div class="logofooter">
<img width="20px" src="https://tse4.explicit.bing.net/th?id=OIP.aYVbqEFb2M-SWsBh_LafIQHaHa&pid=Api&P=0" alt="">
<img width="20px" src="https://tse2.mm.bing.net/th?id=OIP.rnqM8FdAZl_UTkCSIeH-9QHaHY&pid=Api&P=0" alt="">
<img width="20px" src="https://tse3.mm.bing.net/th?id=OIP.JJWXebLkn2_fMj26SIS2EwHaHa&pid=Api&P=0" alt="">
<img width="20px" src="https://tse4.mm.bing.net/th?id=OIP.LnJYpKrpFwziAB4QqhPa0AHaHa&pid=Api&P=0" alt="">
</div>
<button>
<img src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5d6439d4fb92e7630e46976b_Download_on_the_App_Store_Badge_US-UK_RGB_blk_092917.svg" alt="">
</button>
<br>
<button>
<img width="150px" src="https://assets-global.website-files.com/5d03b4e130118314af624b20/5d643dd558306bfe1df5ef8b_google-play-badge.png" alt="">
</button>
</div>
</div>
</body>
</html>
<script>
let arr=[
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"Freshly has changed our lives!",
h1:"With Freshly, we don’t have to go anywhere or wait for delivery, and our monthly food bill has been cut nearly in half. We love it.",
n:"Dave"
},
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"Freshly has changed our lives!",
h1:"We love Freshly because it takes two minutes to prepare, the food is great and we don’t have to spend time cleaning up.",
n:"Sheri"
}
,
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"Eat Delicious Live Delicious",
h1:"With Freshly, I don’t have to think about what I’m going to eat for lunch each day and feel good knowing that I’m eating a healthy meal. I love the convenience!",
n:"JAI Raj SINGH"
},
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"Convenience, taste, variety",
h1:"Been a customer for more than a year now, and love it. Customer service is particularly outstanding — whenever there’s been a problem, Freshly staff respond quickly and always rectify the problem.",
n:"Jeffrey"
},
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"One of the easiest decisions I've made",
h1:"I love that I have found freshly and that it allows me to try new things and allows me to eat healthy while remaining affordable!",
n:"Joeys"
},
{
img:"https://assets-global.website-files.com/5d03b4e130118314af624b20/5d96607e740addd99bf570ae_star.svg",
head:"10 stars! Awesome! Love it!",
h1:"I love that I have found freshly and that it allows me to try new things and allows me to eat healthy while remaining affordable!",
n:"Kall"
}
]
let count=0;
// ;
function display(arr){
document.querySelector("#on").innerHTML="";
for(let i=count;i<=count;i++){
if(count>arr.length-1 || count<=0){
count=0;
clearInterval(interval)
clearInterval(interval2)
}
else{
let div=document.createElement("div");
let img=document.createElement("img");
img.src=arr[i].img;
let n=document.createElement("h3");
n.innerText=arr[i].head;
let h1=document.createElement("p");
h1.innerText=arr[i].h1
let k=document.createElement("h2");
k.innerText=arr[i].n
div.append(img,n,h1,k);
document.querySelector("#on").append(div);
}
}
}
let interval;
document.querySelector("#fakebutton2").addEventListener("click",function(){
interval=setTimeout(function(){
count++;
display(arr)
},1000)
})
let interval2
document.querySelector("#fakebutton").addEventListener("click",function(){
interval2=setTimeout(function(){
count--;
display(arr)
},1000)
})
document.querySelector("form").addEventListener("submit",checkfunc);
let ob=JSON.parse(localStorage.getItem("credentials"))||[];
function checkfunc(event){
event.preventDefault();
let email=document.querySelector(".toolo").value;
let passw=document.querySelector(".pas1").value;
let obj={
email,
passw
}
ob.push(obj);
console.log(console.log(ob));
if(obj.emailId=="" || obj.password==""){
alert("Please fill the credentials");
return false;
}else{
localStorage.setItem("credentials", JSON.stringify(ob));
alert("Signed in suceessfully. Please click here to get logged in")
}
window.location.assign("addtocart.html");
}
checkfunc()
document.querySelector("#signup2").addEventListener("submit",checkf);
let ar=[];
function checkf(event){
event.preventDefault();
let emai=document.querySelector(".toolo").value;
let pass=document.querySelector(".pas1").value;
let obj={
emai,
pass
}
ar.push(obj);
console.log(ar);
if(obj.emailId=="" || obj.password==""){
alert("Please fill the credentials");
return false;
}else{
localStorage.setItem("credentials", JSON.stringify(ar));
alert("Signed in suceessfully. Please click here to get logged in")
}
window.location.assign("addtocart.html");
}
checkf()
</script>