-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
616 lines (586 loc) Β· 27.6 KB
/
index.html
File metadata and controls
616 lines (586 loc) Β· 27.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Analytics Tag -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LJHS9DBDQX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-LJHS9DBDQX");
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Primary SEO tags -->
<link rel="canonical" href="https://stayawake.pages.dev" />
<meta name="keywords"
content="screen awake, prevent device sleep, stayawake, stay awake, keep screen on, screen sleep prevention" />
<meta name="description"
content="Prevents your device from sleeping and provides draggable widgets with saved settings. Installable as a PWA." />
<!-- Open Graph -->
<meta property="og:site_name" content="Stay Awake" />
<meta property="og:title" content="Stay Awake β Keep Your Screen Awake" />
<meta property="og:description"
content="Prevents your device from sleeping and provides draggable widgets with saved settings. Installable as a PWA." />
<meta property="og:url" content="https://stayawake.pages.dev" />
<meta property="og:type" content="website" />
<meta name="author" content="Stay Awake" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Stay Awake β Keep Your Screen Awake" />
<meta name="twitter:description"
content="Prevents your device from sleeping and provides draggable widgets with saved settings. Installable as a PWA." />
<!-- JSON-LD structured data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Stay Awake",
"url": "https://stayawake.pages.dev",
"description": "Prevents your device from sleeping and provides draggable widgets with saved settings. Installable as a PWA.",
"alternateName": [
"StayAwake Project",
"Stay Awake App",
"SA Project",
"Screen Awake Tool",
"Stay Awake Pranav",
"Stay Awake Pranav Arya"
],
"publisher": {
"@type": "Organization",
"name": "Stay Awake"
}
}
</script>
<meta name="description"
content="Prevents your device from sleeping and provides draggable widgets with saved settings. Installable as a PWA." />
<title>Stay Awake β Keep Your Screen Awake</title>
<!-- Page Title -->
<!-- Theme Color for browser UI elements (esp. mobile) -->
<meta name="theme-color" content="#49d49d" />
<!-- Link to the Web App Manifest -->
<link rel="manifest" href="manifest.json" />
<!-- External Stylesheets -->
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<!-- Font Awesome 6 CSS for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Custom Application Styles -->
<link rel="stylesheet" href="index.css?v=1.1" />
<!-- Favicon (path is updated dynamically by JS based on state) -->
<link id="web-icon" rel="shortcut icon" href="./favicon/favicon_green.ico" type="image/x-icon" />
<!-- Google Site Verification Tag-->
<meta name="google-site-verification" content="d30soULF1s3YW4bMglLGwj5DHn8JJSK0lO47TKjt_J8" />
<meta name="google-site-verification" content="7JPpadoDGdS9dHLGTQmPESE6v5oVkMqwJp0xsZZrK6w" />
</head>
<body>
<!-- Top Navigation Bar -->
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark background-enabled py-3">
<div class="container">
<!-- Site Brand/Logo -->
<a class="navbar-brand" href="#">
Stay <span class="highlight-text">Awake</span>
<!-- 'Awake' color changes with theme -->
</a>
<!-- Mobile Navigation Toggle Button -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsible Navbar Content (Links & Settings) -->
<div class="collapse navbar-collapse align-items-center justify-content-end" id="navbarNavDropdown">
<ul class="navbar-nav gap-lg-4 gap-2 align-items-center">
<!-- About Link (triggers modal) -->
<li class="nav-item">
<button type="button" class="btn btn-link nav-link" data-bs-toggle="modal" data-bs-target="#aboutModal">
About
</button>
</li>
<!-- External Links (Website, Social, GitHub) -->
<li class="nav-item">
<a class="nav-link" href="https://pranavarya.in" target="_blank" rel="noopener noreferrer"
title="Website"><i class="fa-solid fa-globe"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://x.com/PranavArya37" target="_blank" rel="noopener noreferrer"
title="Twitter / X"><i class="fa-brands fa-x-twitter"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/PranavArya37" target="_blank" rel="noopener noreferrer"
title="GitHub"><i class="fa-brands fa-github"></i></a>
</li>
<!-- Settings Dropdown Menu -->
<li class="nav-item dropdown">
<!-- Dropdown Toggle Button -->
<a class="nav-link" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"
title="Settings"><i class="fa-solid fa-sliders"></i></a>
<!-- Dropdown Menu Items -->
<ul class="dropdown-menu dropdown-menu-end">
<!-- Clock Format (12/24hr) Toggle -->
<li class="px-3 py-2">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="clock-format-switch" />
<label class="form-check-label small" for="clock-format-switch">12-Hour Format</label>
</div>
</li>
<li>
<hr class="dropdown-divider" />
</li>
<li class="dropdown-header small text-uppercase">Widgets</li>
<!-- Widget Visibility Toggles -->
<li class="px-3 py-1">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="show-clock-widget-switch" />
<label class="form-check-label small" for="show-clock-widget-switch">Show Clock</label>
</div>
</li>
<li class="px-3 py-1">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="show-pomodoro-widget-switch" />
<label class="form-check-label small" for="show-pomodoro-widget-switch">Show Pomodoro</label>
</div>
</li>
<li class="px-3 py-1">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="show-battery-widget-switch" />
<label class="form-check-label small" for="show-battery-widget-switch">Show Battery</label>
</div>
</li>
<li class="px-3 py-1">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="show-todo-widget-switch" />
<label class="form-check-label small" for="show-todo-widget-switch">Show To-Do List</label>
</div>
</li>
<li>
<hr class="dropdown-divider" />
</li>
<!-- Minimal Mode Toggle -->
<li class="px-3 py-2">
<div class="form-check form-switch mx-auto">
<input class="form-check-input" type="checkbox" id="minimal-mode-switch" />
<label class="form-check-label small" for="minimal-mode-switch">Minimal Mode</label>
</div>
</li>
<li>
<hr class="dropdown-divider" />
</li>
<!-- Edit Name Button -->
<li class="px-3 py-1">
<button type="button" id="edit-name-btn" class="dropdown-item small">
<i class="fas fa-pencil-alt me-2"></i>Edit Name
</button>
</li>
<!-- Other Actions -->
<li class="px-3 py-1">
<!-- Copy Link Button with Bootstrap Tooltip for feedback -->
<button type="button" id="copy-link-btn" class="dropdown-item small" data-bs-toggle="tooltip"
data-bs-placement="left" data-bs-trigger="manual" title="Copied!">
<i class="fas fa-copy me-2"></i>Copy Link
</button>
</li>
<li class="px-3 py-1">
<button type="button" id="share-btn" class="dropdown-item small">
<i class="fas fa-share-alt me-2"></i>Share App
</button>
</li>
<!-- PWA Install Button (Hidden initially, shown by JS if applicable) -->
<li id="install-pwa-item" class="px-3 py-1" style="display: none">
<button type="button" id="install-pwa-btn" class="dropdown-item small">
<i class="fas fa-download me-2"></i>Install App
</button>
</li>
<!-- Help/Troubleshooting Link (triggers modal) -->
<li class="px-3 py-1">
<button type="button" class="dropdown-item small" data-bs-toggle="modal" data-bs-target="#helpModal">
<i class="fas fa-question-circle me-2"></i>Help /
Troubleshooting
</button>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navigation Bar -->
<!-- Hero Section: Main status display and primary control -->
<div id="hero-section" class="info-hero container-fluid background-enabled text-center">
<div class="container">
<!-- Centering and max-width container -->
<div class="info-box container-md mx-auto">
<!-- Greeting (Dynamically updated with name/time) -->
<h2 id="user-greeting" class="mb-3"></h2>
<!-- Main Clock Display (Dynamically updated) -->
<p id="digital-clock" class="mb-4"></p>
<!-- Static text -->
<h1>The screen is currently</h1>
<!-- Status Text (Dynamically updated: "Awake" / "Almost sleepy") -->
<p id="screen-status" class="highlight-text status-text mb-3">
Awake
</p>
<!-- Description text -->
<p class="info-subtext">
This website prevents your device from going into sleep mode. Use
the switch below to turn on/off this feature:
</p>
<!-- Main Toggle Switch for Wake Lock -->
<div class="form-check form-switch mx-auto py-4 d-inline-block">
<input class="form-check-input py-4 px-5" type="checkbox" id="keep-awake-switch" checked
aria-label="Keep awake switch" />
</div>
</div>
</div>
</div>
<!-- End Hero Section -->
<!-- Disclaimer Text (Positioned near bottom) -->
<p id="info-disclaimer" class="info-disclaimer">
This website only prevents your device from sleeping if it's in a
<span class="highlight-text">foreground</span> tab.
<!-- 'foreground' color changes with theme -->
</p>
<!-- Modal Dialogs -->
<!-- All modals use Bootstrap's modal component -->
<!-- About Modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" aria-labelledby="aboutModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutModalLabel">About Stay Awake</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<!-- Content describing the app -->
<p>
This project prevents your device screen from automatically
sleeping. It includes draggable widgets for Clock, To-Do, Pomodoro
timing, and Battery status, with position and visibility settings
saved locally. It can also be installed as a Progressive Web App
(PWA).
</p>
<p>
This project is based on
<a href="https://github.com/CarolinaMoraes/keep-awake" target="_blank"
rel="noopener noreferrer">keep-awake</a>
by CarolinaMoraes, which itself was inspired by
<a href="https://nosleep.page/" target="_blank" rel="noopener noreferrer">nosleep.page</a>.
</p>
<hr />
<p class="small text-muted">
<strong>Troubleshooting Tip:</strong> Since all your settings,
tasks, and widget positions are saved locally in your browser,
simply refreshing the page is usually a safe first step if you
encounter any display issues or bugs. Your data won't be lost on
refresh.
</p>
<hr />
<h6>Featured On</h6>
<div class="d-flex flex-wrap align-items-center gap-3">
<a href="https://www.producthunt.com/products/stay-awake?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-stay-awake-app"
target="_blank"><img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=961043&theme=light&t=1751663307566"
alt="Stay Awake - Keep PC Awake + Handy Widgets For Your Breaks β | Product Hunt"
style="width: auto; height: 40px;" width="250" height="54" />
</a>
<a href="https://fazier.com/launches/stayawake.pages.dev" target="_blank">
<img src="https://fazier.com/api/v1//public/badges/launch_badges.svg?badge_type=featured&theme=light"
width="auto" height="40px" alt="Fazier badge" />
</a>
<a href="https://startupfa.me/s/stay-awake?utm_source=stayawake.pages.dev" target="_blank">
<img src="https://startupfa.me/badges/featured/light.webp" alt="Featured on Startup Fame"
style="height: 40px; width: auto;">
</a>
<a>
<img alt="ai tools code.market" title="ai tools code.market"
src="https://code.market/assets/manage-product/featured-logo-bright.svg"
style="height: 40px; width: auto;">
</a>
<a href="https://twelve.tools" target="_blank">
<img src="https://twelve.tools/badge0-white.svg" alt="Featured on Twelve Tools" width="auto"
height="40px">
</a>
<a href="https://productburst.com/product/stay-awake" target="_blank" rel="noopener noreferrer">
<img
src="https://3188a5210b07f4ad511bbcdc967bc67b.cdn.bubble.io/f1747781918344x939992978866771600/pB-Badge.png"
alt="Featured on ProductBurst" width="auto" height="40px" />
</a>
<a href='https://www.saashub.com/stay-awake-app?utm_source=badge&utm_campaign=badge&utm_content=stay-awake-app&badge_variant=color&badge_kind=approved'
target='_blank'>
<img src="https://cdn-b.saashub.com/img/badges/approved-color.png?v=1" alt="Stay Awake App badge"
style="width: auto; height: 40px;" />
</a>
</div>
<hr />
<p>
Made with β€οΈ in India by
<a href="https://pranavarya.in" target="_blank" rel="noopener noreferrer">Pranav Arya</a>.
</p>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Close
</button>
</div> -->
</div>
</div>
</div>
<!-- End About Modal -->
<!-- Name Prompt Modal (Used for both initial prompt and editing name) -->
<div class="modal fade" id="namePromptModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="namePromptModalLabel" aria-hidden="true">
<!-- `data-bs-backdrop="static"` prevents closing on backdrop click -->
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="namePromptModalLabel">Welcome!</h5>
<!-- Consider updating title via JS for edit? -->
<!-- No close button (user must enter name or cancel if edit) -->
</div>
<div class="modal-body">
<p>Please enter your name to personalize your experience.</p>
<!-- Name Input Field (value pre-filled by JS for editing) -->
<input type="text" class="form-control" id="userNameInput" placeholder="Your Name" aria-label="User Name"
required />
<!-- Validation Error Message (hidden by default) -->
<div id="nameInputError" class="text-danger mt-2 d-none">
Please enter a name.
</div>
</div>
<div class="modal-footer">
<!-- Primary Action Button -->
<button type="button" class="btn btn-primary" id="submitNameButton">
Save Name
</button>
<!-- Optional: Add Cancel button here if desired for the edit scenario -->
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> -->
</div>
</div>
</div>
</div>
<!-- End Name Prompt Modal -->
<!-- Help / Troubleshooting Modal -->
<div class="modal fade" id="helpModal" tabindex="-1" aria-labelledby="helpModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="helpModalLabel">
<i class="fas fa-question-circle me-2"></i>Troubleshooting & Help
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<h6>Having Issues? Try Refreshing!</h6>
<p>
Sometimes visual glitches or minor bugs might occur (like a widget
not appearing correctly after changing modes).
</p>
<p>
Because all your settings (like widget visibility/position, clock
format) and data (To-Do list items, Pomodoro state) are stored
directly in your browser's local storage,
<strong>it is safe to simply refresh the page (F5 or
Cmd/Ctrl+R)</strong>.
</p>
<p>
Refreshing will reload the application using your saved data,
often resolving temporary display problems without any loss of
information.
</p>
<hr />
<h6>Found a Bug or Have Feedback?</h6>
<p>
If refreshing doesn't help or you've found a consistent bug,
please report it or provide feedback on the project's GitHub
Issues page:
</p>
<p class="text-center">
<!-- Center the link -->
<a href="https://github.com/PranavArya37/StayAwake/issues" target="_blank" rel="noopener noreferrer"
class="btn btn-outline-light btn-sm">
<i class="fab fa-github me-1"></i> Report Issue on GitHub
</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Close
</button>
</div>
</div>
</div>
</div>
<!-- End Help Modal -->
<!-- Pomodoro Finished Alert Modal -->
<div class="modal fade" id="pomodoroFinishedAlertModal" tabindex="-1"
aria-labelledby="pomodoroFinishedAlertModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="pomodoroFinishedAlertModalLabel">
Timer Finished!
<!-- Default Title, updated by JS -->
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p id="pomodoroFinishedAlertMessage">
Your timer session has ended.
<!-- Default Message, updated by JS -->
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Close
</button>
</div>
</div>
</div>
</div>
<!-- End Pomodoro Finished Alert Modal -->
<!-- End Modals Section -->
<!-- Widgets Section -->
<!-- These elements are positioned via CSS (fixed) and their position/visibility is managed by JS -->
<!-- Digital Clock Widget -->
<div id="digital-clock-widget" class="widget digital-clock-widget">
<!-- Header: Contains title, icon, and drag handle -->
<div class="widget-header">
<i class="fas fa-clock widget-icon"></i> Digital Clock
<div class="widget-drag-handle"></div>
<!-- Area used for dragging -->
</div>
<!-- Content: Displays the actual clock data -->
<div class="widget-content">
<div class="digital-clock-widget-display-container">
<span id="widget-digital-date-display" class="widget-date-display"></span>
<!-- Date (updated by JS) -->
<span id="widget-digital-time-display" class="widget-time-display"></span>
<!-- Time (updated by JS) -->
</div>
</div>
<!-- Clock is not resizable -->
</div>
<!-- End Digital Clock Widget -->
<!-- Battery Status Widget -->
<div id="battery-widget" class="widget battery-widget">
<div class="widget-header">
<i class="fas fa-battery-full widget-icon"></i> Battery Status
<div class="widget-drag-handle"></div>
</div>
<div class="widget-content">
<!-- Visual representation -->
<div class="battery-visual">
<div class="battery-capsule">
<!-- Outline -->
<div id="battery-level" class="battery-level"></div>
<!-- Fill level (updated by JS) -->
</div>
</div>
<!-- Textual information -->
<div class="battery-info">
<div class="battery-percentage">
<span id="battery-percentage-value">--</span>%
<!-- Percentage (updated by JS) -->
</div>
<!-- Status indicators (visibility toggled by JS) -->
<div id="battery-charging-status" class="battery-charging-status" style="display: none">
Charging <i class="fas fa-bolt charging-icon"></i>
</div>
<div id="battery-low-status" class="battery-low-status" style="display: none">
Low Battery <i class="fas fa-battery-quarter low-battery-icon"></i>
</div>
</div>
</div>
<!-- Battery is not resizable -->
</div>
<!-- End Battery Status Widget -->
<!-- To-Do List Widget -->
<div id="todo-widget" class="widget todo-widget">
<div class="widget-header">
<i class="fas fa-list-check widget-icon"></i> To-Do List
<div class="widget-drag-handle"></div>
</div>
<!-- Content area for the list itself -->
<div class="widget-content">
<ul id="todo-list" class="todo-list"></ul>
<!-- Task items are rendered here by JS -->
</div>
<!-- Footer: Contains input for adding new tasks -->
<div class="widget-footer">
<input type="text" id="new-todo-input" class="form-control form-control-sm" placeholder="Add new task..." />
<button id="add-todo-button" class="btn btn-sm btn-primary" title="Add Task">
<i class="fas fa-plus"></i>
</button>
</div>
<!-- Resize Handle: Allows user to resize this widget -->
<div class="widget-resize-handle"></div>
</div>
<!-- End To-Do List Widget -->
<!-- Pomodoro Timer Widget -->
<div id="pomodoro-widget" class="widget pomodoro-widget">
<div class="widget-header">
<i class="fas fa-stopwatch widget-icon"></i> Pomodoro Timer
<div class="widget-drag-handle"></div>
</div>
<div class="widget-content p-3">
<!-- Mode Selection Buttons (Pomodoro, Short Break, Long Break) -->
<div class="pomodoro-modes btn-group w-100 mb-3" role="group" aria-label="Pomodoro Modes">
<!-- JS adds 'active' class to the current mode button -->
<button type="button" class="btn btn-sm btn-outline-secondary pomodoro-mode-btn active" data-mode="pomodoro">
Pomodoro (25m)
</button>
<button type="button" class="btn btn-sm btn-outline-secondary pomodoro-mode-btn" data-mode="shortBreak">
Short Break (5m)
</button>
<button type="button" class="btn btn-sm btn-outline-secondary pomodoro-mode-btn" data-mode="longBreak">
Long Break (15m)
</button>
</div>
<!-- Time Display (e.g., 25:00, updated by JS) -->
<div id="pomodoro-time-display" class="pomodoro-time-display text-center mb-3">
25:00
</div>
<!-- Timer Controls (Start, Pause, Reset - visibility managed by JS) -->
<div id="pomodoro-controls" class="pomodoro-controls d-flex justify-content-center gap-2">
<button id="start-pomodoro-btn" class="btn btn-success btn-sm" title="Start Timer">
<i class="fas fa-play"></i> Start
</button>
<button id="pause-pomodoro-btn" class="btn btn-warning btn-sm" title="Pause Timer" style="display: none">
<i class="fas fa-pause"></i> Pause
</button>
<button id="reset-pomodoro-btn" class="btn btn-danger btn-sm" title="Reset Timer" style="display: none">
<i class="fas fa-redo"></i> Reset
</button>
</div>
</div>
<!-- Pomodoro is not resizable -->
</div>
<!-- End Pomodoro Timer Widget -->
<!-- End Widgets Section -->
<!-- Microsoft Edge Add-on Badge -->
<a id="edge-addon-badge"
href="https://microsoftedge.microsoft.com/addons/detail/stayawake/iomlcmincmcifkljkdbjlcfadjhafffc" target="_blank"
rel="noopener noreferrer" title="Get StayAwake for Microsoft Edge">
<img src="https://user-images.githubusercontent.com/11660256/111323589-4f4c7c00-866a-11eb-80ff-da7de777d7c0.png"
alt="Get it for Microsoft Edge" style="height: 50px; width: auto;">
</a>
<!-- Notification Sound for Pomodoro Timer -->
<audio id="pomodoro-finished-sound" preload="auto"></audio>
<!-- JavaScript Files -->
<!-- Main application script (compiled from TypeScript) -->
<script type="module" src="./index.js?v=1.1"></script>
<!-- Bootstrap 5 JS Bundle (includes Popper.js for dropdowns, modals, tooltips) -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
data-id="pranavarya" data-description="Support me on Buy me a coffee!" data-message="" data-color="#008dd5"
data-position="Right" data-x_margin="18" data-y_margin="18"></script>
<!-- End Scripts -->
</body>
</html>