-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
564 lines (525 loc) · 25.6 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
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
<!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">
<meta name="description" content="Get ready for MediHacks 2023!">
<title>MediHacks 2023</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/themify-icons.css" rel="stylesheet">
<link href='css/dosis-font.css' rel='stylesheet' type='text/css'>
</head>
<body onload="load()" id="page-top" data-spy="scroll" data-target=".side-menu">
<nav class="side-menu hidden-xs">
<ul>
<li class="hidden active">
<a class="page-scroll" href="#page-top"></a>
</li>
<li>
<a href="#home" class="page-scroll">
<span class="menu-title">Home</span>
<span class="dot"></span>
</a>
</li>
<li>
<a href="#speakers" class="page-scroll">
<span class="menu-title">Organizers</span>
<span class="dot"></span>
</a>
</li>
<li>
<a href="#tickets" class="page-scroll">
<span class="menu-title">Prizes</span>
<span class="dot"></span>
</a>
</li>
<li>
<a href="#schedule" class="page-scroll">
<span class="menu-title">Schedule</span>
<span class="dot"></span>
</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<!-- Start: Header -->
<div class="row hero-header" id="home">
<div class="col-md-7 half-green">
<h1 id="eventname"><MediHacks 2023 /></h1>
<h3>Get ready for the first MediHacks Hackathon</h3>
<h3>An online 3-day event focused on students creating applications involving health tech</h3>
<h4>8th<sup>th</sup> to 10<sup>th</sup> September, 2023</h4>
<a href="https://medihacks.devpost.com/" class="btn btn-lg btn-red">Sign Up on DevPost Now! <span class="ti-arrow-right"></span></a>
<a href="https://discord.gg/cFF2CSr4n8" class="btn btn-lg btn-blu">Join our Discord! <span class="ti-arrow-right"></span></a>
<div class="counter-container hidden-xs">
<div class="counter">
<h1 id='0101' class="fs-2 text-light" style="display: inline-block">0</h1>
<h3 class="text-light" style="display: inline-block">Participants</h3>
</div>
<div class="counter">
<h1 id='0102' class="fs-2 text-light" style="display: inline-block">0</h1>
<h3 class="text-light" style="display: inline-block">Judges</h3>
</div>
<div class="counter">
<h1 id='0103' class="fs-2 text-light" style="display: inline-block">0</h1>
<h3 class="text-light" style="display: inline-block">Sponsors</h3>
</div>
</div>
</div>
<div class="col-md-5 hidden-xs half-black">
<img src="img/medihackslogo.png" class="rocket animated bounce">
</div>
</div>
<!-- End: Header -->
</div>
<div class="container">
<!-- Start: Desc -->
<div class="row me-row content-ct">
<h2 class="row-title">Why MediHacks?</h2>
<div class="col-md-4 feature">
<span class="ti-mobile"></span>
<h3>A Fun Hackathon Experience</h3>
<p>Whether this is your first hackathon ever or you can do one in your sleep, MediHacks is a great way to show off your hacking skills and apply your knowledge to real-world solutions.</p>
</div>
<div class="col-md-4 feature">
<span class="ti-microphone"></span>
<h3>Experienced Judges and Speakers</h3>
<p>With judges and guest speakers from students like you to empoloyees from tech companies across the world, you can get incredible feedback on your projects at MediHacks.</p>
</div>
<div class="col-md-4 feature">
<span class="ti-world"></span>
<h3>All-Inclusive</h3>
<p>At MediHacks, we are striving to be an inclusive event for all ages, skill levels, and backgrounds.</p>
</div>
</div>
<!-- End: Desc -->
<!-- Start: Speakers -->
<div class="row me-row content-ct speaker" id="speakers">
<h2 class="row-title">Meet the Organizers</h2>
<div class="col-md-2 col-sm-4 judge">
<img src="img/harjyot.png" class="speaker-img">
<h3>Harjyot Sahni</h3>
<p>Harjyot Sahni is a rising junior at Saratoga High School who has competed in numerous hackathons. This is his second time hosting a hackathon and he is excited to create a great hackathon experience for students around the world.</p>
</div>
<div class="col-md-2 col-sm-4 judge">
<img src="img/dhanush.png" class="speaker-img">
<h3>Dhanush Ekollu</h3>
<p>Dhanush is a rising junior at Saratoga High School who has competed in numerous hackathons. He is working on bringing in sponsors from various tech companies to bring in guest speakers and sponsors to make this hackathon great for participants.</p>
</div>
<div class="col-md-2 col-sm-4 judge">
<div class="circular-portrait">
<img src="img/tanuj.png" class="speaker-img">
</div>
<h3>Tanuj Siripurapu</h3>
<p>Tanuj Siripurapu is a rising junior at Saratoga High School who has competed in and won numerous other hackathons. Having much experience, he is very excited to try and make this the best possible experience for first-timers as well as more advanced hackers.</p>
</div>
<h2 class="row-title">Meet the Judges</h2>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/567/003/datas/large.png" class="speaker-img">
<h3>Ashwini Kumar</h3>
<p>Tech Lead, Amazon Alexa AI</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/ashwini-kumar-98448115/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://media.licdn.com/dms/image/D5603AQE6Iljqus1UVA/profile-displayphoto-shrink_200_200/0/1692327007319?e=1698278400&v=beta&t=TCql0G9uUIq36DILvzG3xAjrAkvUQc08oC8LgzRblM8" class="speaker-img">
<h3>Arun Dhanaraj</h3>
<p>Vice President, Cloud Practices</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/darunbeece/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://media.licdn.com/dms/image/C4D03AQEJudYBc8MXqA/profile-displayphoto-shrink_200_200/0/1661277355513?e=1698278400&v=beta&t=Rxmdq7UyrilqUaT9iS7oEGY9ptJwB4jjvGjeIovl8lg" class="speaker-img">
<h3>Anton Kalik</h3>
<p>Senior Software Engineer, Amenitiz</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/antonkalik/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/572/329/datas/large.png" class="speaker-img">
<h3>Gayatri Iyengar</h3>
<p>Director of Engineering, DoorDash</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/gayatriiyengar/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/563/401/datas/large.png" class="speaker-img">
<h3>Hardik Shah</h3>
<p>Senior UI Lead, Visa Inc.</p>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://media.licdn.com/dms/image/D5603AQHedZYVSP0Gcg/profile-displayphoto-shrink_200_200/0/1672957097413?e=1698278400&v=beta&t=WTlageqVeMOVlpovbnEPsdFgSWwSyDBQyeRje5FRiXg" class="speaker-img">
<h3>Dallas Clark</h3>
<p>Engineering Manager, Magentus</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/dallasjclark/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://media.licdn.com/dms/image/D5603AQGWNWejJTHQxw/profile-displayphoto-shrink_200_200/0/1694207542473?e=1700092800&v=beta&t=JYPYtO9CrXybAZpTNqDXD0Ri3yhVLuv51awMWDeUAKA" class="speaker-img">
<h3>Atal Agarwal</h3>
<p>Product Manager, Businessolver</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/atalovesyou/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://media.licdn.com/dms/image/C5603AQGeybmv4iB1Dg/profile-displayphoto-shrink_200_200/0/1655595290726?e=1698278400&v=beta&t=LwIyb1LmKeBiBOzh6ze91TylvkW7YzNoDaFfZs0JCII" class="speaker-img">
<h3>Amol Dhaygude</h3>
<p>Senior Data Scientist, Microsoft</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/amol-dhaygude/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/564/626/datas/large.png" class="speaker-img">
<h3>Sanjukta Mitra</h3>
<p>Principal Software Engineer</p>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/577/333/datas/large.png" class="speaker-img">
<h3>Uday Pitambare</h3>
<p>Co-Founder, BrewApps</p>
<ul class="speaker-social">
<li><a href="https://www.linkedin.com/in/udaypitambare/"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/578/191/datas/large.png" class="speaker-img">
<h3>Michael Staton</h3>
<p>CEO of Colearn, Partner at Learn Capital, General Partner at LearnStart</p>
<ul class="speaker-social">
<li><a href="https://alphapartners.com/michael-staton-bio/"><span class="ti-link"></span></a></li>
</ul>
</div>
<div class="col-md-2 col-sm-4 feature">
<img src="https://d112y698adiu2z.cloudfront.net/photos/production/judge_photos/002/579/281/datas/large.png" class="speaker-img">
<h3>Vladislav Bilay</h3>
<p>Cloud DevOps Engineer, Aquiva Labs</p>
<ul class="speaker-social">
<li><a href="https://pl.linkedin.com/in/vladislav-bilay"><span class="ti-linkedin"></span></a></li>
</ul>
</div>
</div>
<!-- End: Speakers -->
</div>
<!-- Start: Tickets -->
<div class="container-fluid tickets" id="tickets">
<div class="row me-row content-ct">
<h2 class="row-title">Prizes</h2>
<div class="col-md-2 col-sm-6 col-md-offset-3">
<h3>First Place</h3>
<p class="price">$1200</p>
<p>
~ $500 USD
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ Lifetime CodeCrafter License
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>Second Place</h3>
<p class="price">$1000</p>
<p>
~ $300 USD
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ Lifetime CodeCrafter License
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>Third Place</h3>
<p class="price">$850</p>
<p>
~ $150 USD
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ Lifetime CodeCrafter License
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
</div>
<div class="row me-row content-ct">
<div class="col-md-2 col-sm-6 col-md-offset-2">
<h3>Best Mental Health Project</h3>
<p class="price">$800</p>
<p>
~ $100 USD
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>Best High School Hack</h3>
<p class="price">$800</p>
<p>
~ $100 USD
<br>~ $25 Art of Problem-Solving Coupon
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>Best Women's Health Project</h3>
<p class="price">$800</p>
<p>
~ $100 USD
<br>~ $45 Desmos Gift Card
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>Best Project using Bayun SDK</h3>
<p class="price">$4000</p>
<p>
~ Beats Studio Buds True Wireless Noise Cancelling Earphones
<br>~ Free access to Bayun’s hosted service for 1 year, for up to 3 different apps
<br>~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
</div>
<div class="row me-row content-ct">
<div class="col-md-2 col-sm-6 col-md-offset-3">
<h3>Honorable Mentions (5)</h3>
<p class="price">$700</p>
<p>
~ 1-Year Wolfram Alpha One + Pro
<br>~ 5-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>All Projects Using Bayun SDK</h3>
<p class="price">$1000</p>
<p>
~ Free access to Bayun’s hosted service for 1 year, for 1 App
<br>~ 1-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
<div class="col-md-2 col-sm-6">
<h3>All Participants</h3>
<p class="price">$150</p>
<p>
~ 1-Year Taskade Starter Plan
<br>~ 1-Month echo3D Premium
<br>~ .us Domains for all teammates for 1 year
<br>~ .xyz Domains for all teammates for 1 year
</p>
</div>
</div>
<div class="row me-row content-ct">
<h1 class="row-title">A Special Thanks to Our Sponsors!</h1>
<h2 class="row-title sponsor-tier" id="silver-tier">Silver Sponsors</h2>
<img src="img/colearn.png" class="sponsor-logo"/>
<h2 class="row-title sponsor-tier" id="bronze-tier">Bronze Sponsors</h2>
<img src="img/bayun.png" class="sponsor-logo"/>
<img src="img/leangap.png" class="sponsor-logo"/>
<img src="img/lumiere.png" class="sponsor-logo"/>
<img src="img/ccir.png" class="sponsor-logo"/>
<img src="img/brewapps.png" class="sponsor-logo"/>
<img src="img/veritas.png" class="sponsor-logo"/>
<h2 class="row-title sponsor-tier">In-Kind Sponsors</h2>
<img src="img/hcb.png" class="in-kind">
<img src="img/aops.png" class="in-kind">
<img src="img/xyz.png" class="in-kind">
<img src="img/wolfram.png" class="in-kind">
<img src="img/desmos.png" class="in-kind">
<img src="img/echo3d.png" class="in-kind">
<img src="img/taskade.png"class="in-kind">
<img src="img/codecrafters.png" class="in-kind">
</div>
</div>
<!-- End: Tickets -->
<!-- Start: Schedule -->
<div class="container">
<div class="row me-row schedule" id="schedule">
<h2 class="row-title content-ct">Event Schedule</h2>
<div class="col-md-12">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#day-1" aria-controls="home" role="tab" data-toggle="tab">Day 01 <small class="hidden-xs">(8<sup>th</sup>, September)</small></a></li>
<li role="presentation"><a href="#day-2" aria-controls="profile" role="tab" data-toggle="tab">Day 02 <small class="hidden-xs">(9<sup>th</sup>, September)</small></a></li>
<li role="presentation"><a href="#day-3" aria-controls="messages" role="tab" data-toggle="tab">Day 03 <small class="hidden-xs">(10<sup>th</sup>, September)</small></a></li>
<li role="presentation"><a href="#day-4" aria-controls="messages" role="tab" data-toggle="tab">Day 04 <small class="hidden-xs">(13<sup>th</sup>, September)</small></a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="day-1">
<div class="row">
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">6:00 PM PT</h4>
<h5>Opening Ceremony</h5>
<p>During this time we will go over all rules, restrictions, categories, and all other details for the hackathon.</p>
<p><a href="https://youtu.be/FJGHs9vV5Ic">Link</a> to our archived Opening Ceremony</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">6:30 PM Onwards</h4>
<h5>Work!</h5>
<p>The grind begins! Use this time to develop your application.</p>
</div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="day-2">
<div class="row">
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">Work Day!</h4>
<p>The grind continues! Use this time to develop your application.</p>
</div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="day-3">
<div class="row">
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">Work Day!</h4>
<p>The grind continues! Use this time to develop your application.</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">11:00 AM PT</h4>
<h5>Saratoga MSET Speaker</h5>
<p>15 Minute Presentation hosted by Saratoga MSET Robotics</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">2:00 PM PT</h4>
<h5>Presentation Tips w/ Michael Staton</h5>
<p>Join our workshop hosted by Micheal Staton, CEO and Founder of Colearn, where he will provide tips on presenting and pitching your application for this hackathon and future products you develop!</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">5:00 PM PT</h4>
<h5>Video Submissions Close</h5>
<p>Congratulations! No matter how much you got done you should be proud of yourself for making it this far. </p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">6:00 PM PT</h4>
<h5>Judging Begins</h5>
<p>Our judges will meet, review your videos, and provide feedback to determine who our winners.</p>
</div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="day-4">
<div class="row">
<div class="col-md-6">
<div class="media">
<div class="media-body">
<h4 class="media-heading">9:00 PM PT</h4>
<h5>Winners Announced</h5>
<p>Your hard work has paid off! Winner are announced and prizes will be sent out shortly.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End: Schedule -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/scrolling-nav.js"></script>
<script src="js/validator.js"></script>
<script>
const participants = 400;
const judges = 12;
const sponsors = 14;
const duration = 2000;
function animate(obj, initVal, lastVal, duration) {
let startTime = null;
//get the current timestamp and assign it to the currentTime variable
let currentTime = Date.now();
//pass the current timestamp to the step function
const step = (currentTime ) => {
//if the start time is null, assign the current time to startTime
if (!startTime) {
startTime = currentTime ;
}
//calculate the value to be used in calculating the number to be displayed
const progress = Math.min((currentTime - startTime)/ duration, 1);
//calculate what to be displayed using the value gotten above
obj.innerHTML = Math.floor(progress * (lastVal - initVal) + initVal);
//checking to make sure the counter does not exceed the last value (lastVal)
if (progress < 1) {
window.requestAnimationFrame(step);
} else {
window.cancelAnimationFrame(window.requestAnimationFrame(step));
}
};
//start animating
window.requestAnimationFrame(step);
}
let text1 = document.getElementById('0101');
let text2 = document.getElementById('0102');
let text3 = document.getElementById('0103');
const load = () => {
animate(text1, 0, participants, duration);
animate(text2, 0, judges, duration);
animate(text3, 0, sponsors, duration);
}
</script>
</body>
</html>