-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathcalendar.html
More file actions
786 lines (767 loc) · 42.9 KB
/
calendar.html
File metadata and controls
786 lines (767 loc) · 42.9 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
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
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Calendar - SRTdash Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Interactive calendar with event management and multiple view options.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="assets/images/icon/logo.png">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/fontawesome.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/metismenujs.min.css">
<link rel="stylesheet" href="assets/css/swiper-bundle.min.css">
<!-- amchart css -->
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<!-- others css -->
<link rel="stylesheet" href="assets/css/typography.css">
<link rel="stylesheet" href="assets/css/default-css.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/responsive.css">
</head>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- preloader area start -->
<div id="preloader">
<div class="loader"></div>
</div>
<!-- preloader area end -->
<!-- page container area start -->
<div class="page-container">
<!-- sidebar menu area start -->
<div class="sidebar-menu">
<div class="sidebar-header">
<div class="logo">
<a href="index.html"><picture><source srcset="assets/images/icon/logo.avif" type="image/avif"><img src="assets/images/icon/logo.png" alt="logo"></picture></a>
</div>
</div>
<div class="main-menu">
<div class="menu-inner">
<nav>
<ul class="metismenu" id="menu">
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>dashboard</span></a>
<ul class="collapse">
<li><a href="index.html">ICO dashboard</a></li>
<li><a href="index2.html">Ecommerce dashboard</a></li>
<li><a href="index3.html">SEO dashboard</a></li>
</ul>
</li>
<li>
<a href="https://dashboardpack.com/?utm_source=srtdash&utm_medium=sidebar&utm_campaign=demo" target="_blank" rel="noopener"><i class="fa-solid fa-crown"></i> <span>Go Pro</span><span class="badge rounded-pill bg-danger ms-2" style="font-size:10px;">Hot</span></a>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-layout-sidebar-left"></i><span>Sidebar
Types
</span></a>
<ul class="collapse">
<li><a href="index.html">Left Sidebar</a></li>
<li><a href="index3-horizontalmenu.html">Horizontal Sidebar</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-pie-chart"></i><span>Charts</span></a>
<ul class="collapse">
<li><a href="barchart.html">bar chart</a></li>
<li><a href="linechart.html">line Chart</a></li>
<li><a href="piechart.html">pie chart</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-palette"></i><span>UI Features</span></a>
<ul class="collapse">
<li><a href="accordion.html">Accordion</a></li>
<li><a href="alert.html">Alert</a></li>
<li><a href="badge.html">Badge</a></li>
<li><a href="button.html">Button</a></li>
<li><a href="button-group.html">Button Group</a></li>
<li><a href="cards.html">Cards</a></li>
<li><a href="dropdown.html">Dropdown</a></li>
<li><a href="list-group.html">List Group</a></li>
<li><a href="media-object.html">Media Object</a></li>
<li><a href="modal.html">Modal</a></li>
<li><a href="pagination.html">Pagination</a></li>
<li><a href="popovers.html">Popover</a></li>
<li><a href="progressbar.html">Progressbar</a></li>
<li><a href="tab.html">Tab</a></li>
<li><a href="typography.html">Typography</a></li>
<li><a href="form.html">Form</a></li>
<li><a href="grid.html">grid system</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-slice"></i><span>icons</span></a>
<ul class="collapse">
<li><a href="fontawesome.html">fontawesome icons</a></li>
<li><a href="themify.html">themify icons</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="fa-solid fa-table"></i>
<span>Tables</span></a>
<ul class="collapse">
<li><a href="table-basic.html">basic table</a></li>
<li><a href="table-layout.html">table layout</a></li>
<li><a href="datatable.html">datatable</a></li>
</ul>
</li>
<li><a href="maps.html"><i class="ti-map-alt"></i> <span>maps</span></a></li>
<li><a href="invoice.html"><i class="ti-receipt"></i> <span>Invoice Summary</span></a></li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-widget"></i><span>Apps</span></a>
<ul class="collapse">
<li><a href="profile.html">Profile</a></li>
<li><a href="notifications.html">Notifications</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="file-manager.html">File Manager</a></li>
<li><a href="chat.html">Chat</a></li>
<li><a href="email.html">Email</a></li>
<li><a href="widgets.html">Widgets</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="ti-layers-alt"></i> <span>Pages</span></a>
<ul class="collapse">
<li><a href="login.html">Login</a></li>
<li><a href="login2.html">Login 2</a></li>
<li><a href="login3.html">Login 3</a></li>
<li><a href="register.html">Register</a></li>
<li><a href="register2.html">Register 2</a></li>
<li><a href="register3.html">Register 3</a></li>
<li><a href="register4.html">Register 4</a></li>
<li><a href="screenlock.html">Lock Screen</a></li>
<li><a href="screenlock2.html">Lock Screen 2</a></li>
<li><a href="reset-pass.html">reset password</a></li>
<li><a href="forgot-password.html">Forgot Password</a></li>
<li><a href="pricing.html">Pricing</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="fa-solid fa-exclamation-triangle"></i>
<span>Error</span></a>
<ul class="collapse">
<li><a href="404.html">Error 404</a></li>
<li><a href="403.html">Error 403</a></li>
<li><a href="500.html">Error 500</a></li>
<li><a href="401.html">Error 401</a></li>
</ul>
</li>
<li>
<a href="javascript:void(0)" aria-expanded="true"><i class="fa-solid fa-align-left"></i> <span>Multi
level menu</span></a>
<ul class="collapse">
<li><a href="#">Item level (1)</a></li>
<li><a href="#">Item level (1)</a></li>
<li><a href="#" aria-expanded="true">Item level (1)</a>
<ul class="collapse">
<li><a href="#">Item level (2)</a></li>
<li><a href="#">Item level (2)</a></li>
<li><a href="#">Item level (2)</a></li>
</ul>
</li>
<li><a href="#">Item level (1)</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- sidebar menu area end -->
<!-- main content area start -->
<div class="main-content">
<!-- header area start -->
<div class="header-area">
<div class="row align-items-center">
<!-- nav and search button -->
<div class="col-md-6 col-sm-8 clearfix">
<div class="nav-btn float-start">
<span></span>
<span></span>
<span></span>
</div>
<div class="search-box float-start">
<form action="#">
<input type="text" name="search" placeholder="Search..." required>
<i class="ti-search"></i>
</form>
</div>
</div>
<!-- profile info & task notification -->
<div class="col-md-6 col-sm-4 clearfix">
<ul class="notification-area float-end">
<li id="full-view"><i class="ti-fullscreen"></i></li>
<li id="full-view-exit"><i class="ti-zoom-out"></i></li>
<li class="dropdown">
<i class="ti-bell dropdown-toggle" data-bs-toggle="dropdown">
<span>2</span>
</i>
<div class="dropdown-menu bell-notify-box notify-box">
<span class="notify-title">You have 3 new notifications <a href="#">view all</a></span>
<div class="notify-list">
<a href="#" class="notify-item">
<div class="notify-thumb"><i class="ti-key bg-danger"></i></div>
<div class="notify-text">
<p>You have Changed Your Password</p>
<span>Just Now</span>
</div>
</a>
<a href="#" class="notify-item">
<div class="notify-thumb"><i class="ti-comments-smiley bg-info"></i></div>
<div class="notify-text">
<p>New Comments On Post</p>
<span>30 Seconds ago</span>
</div>
</a>
<a href="#" class="notify-item">
<div class="notify-thumb"><i class="ti-key bg-primary"></i></div>
<div class="notify-text">
<p>Some special like you</p>
<span>Just Now</span>
</div>
</a>
</div>
</div>
</li>
<li class="dropdown">
<i class="fa-regular fa-envelope dropdown-toggle" data-bs-toggle="dropdown"><span>3</span></i>
<div class="dropdown-menu notify-box nt-enveloper-box">
<span class="notify-title">You have 3 new notifications <a href="#">view all</a></span>
<div class="notify-list">
<a href="#" class="notify-item">
<div class="notify-thumb">
<picture><source srcset="assets/images/author/author-img1.avif" type="image/avif"><img src="assets/images/author/author-img1.jpg" alt="image"></picture>
</div>
<div class="notify-text">
<p>Aglae Mayer</p>
<span class="msg">Hey I am waiting for you...</span>
<span>3:15 PM</span>
</div>
</a>
</div>
</div>
</li>
<li class="settings-btn">
<i class="ti-settings"></i>
</li>
</ul>
</div>
</div>
</div>
<!-- header area end -->
<!-- page title area start -->
<div class="page-title-area">
<div class="row align-items-center">
<div class="col-sm-6">
<div class="breadcrumbs-area clearfix">
<h1 class="page-title float-start">Calendar</h1>
<ul class="breadcrumbs float-start">
<li><a href="index.html">Home</a></li>
<li><span>Calendar</span></li>
</ul>
</div>
</div>
<div class="col-sm-6 clearfix">
<div class="user-profile float-end">
<picture><source srcset="assets/images/author/avatar.avif" type="image/avif"><img class="avatar user-thumb" src="assets/images/author/avatar.png" alt="avatar"></picture>
<h4 class="user-name dropdown-toggle" data-bs-toggle="dropdown">Aigars Silkalns <i class="fa-solid fa-angle-down"></i></h4>
<div class="dropdown-menu user-dropdown">
<a class="dropdown-item" href="profile.html"><i class="fa-solid fa-user"></i> My Profile</a>
<a class="dropdown-item" href="notifications.html"><i class="fa-solid fa-envelope"></i> Inbox <span class="badge rounded-pill bg-primary ms-auto">3</span></a>
<a class="dropdown-item" href="settings.html"><i class="fa-solid fa-gear"></i> Account Settings</a>
<a class="dropdown-item" href="screenlock.html"><i class="fa-solid fa-lock"></i> Lock Screen</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item user-dropdown-logout" href="#"><i class="fa-solid fa-right-from-bracket"></i> Log Out</a>
</div>
</div>
</div>
</div>
</div>
<!-- page title area end -->
<div class="main-content-inner" id="main-content">
<!-- calendar page start -->
<div class="row mt-4 mb-4">
<!-- left sidebar with upcoming events -->
<div class="col-lg-3">
<div class="card mb-4">
<div class="card-body">
<button class="btn btn-primary w-100 mb-4" data-bs-toggle="modal" data-bs-target="#addEventModal">
<i class="fa-solid fa-plus me-2"></i>Add Event
</button>
<h6 class="header-title mb-3">Upcoming Events</h6>
<div class="d-flex align-items-center mb-3 cal-sidebar-event" data-event-title="Team Standup">
<div class="me-3" style="width:10px;height:10px;border-radius:50%;background:#4336fb;"></div>
<div>
<h6 class="mb-0" style="font-size:14px;">Team Standup</h6>
<small class="text-muted">Today, 10:00 AM</small>
</div>
</div>
<div class="d-flex align-items-center mb-3 cal-sidebar-event" data-event-title="Project Review">
<div class="me-3" style="width:10px;height:10px;border-radius:50%;background:#36b398;"></div>
<div>
<h6 class="mb-0" style="font-size:14px;">Project Review</h6>
<small class="text-muted">Tomorrow, 2:00 PM</small>
</div>
</div>
<div class="d-flex align-items-center mb-3 cal-sidebar-event" data-event-title="Deadline: Q1 Report">
<div class="me-3" style="width:10px;height:10px;border-radius:50%;background:#f96776;"></div>
<div>
<h6 class="mb-0" style="font-size:14px;">Deadline: Q1 Report</h6>
<small class="text-muted">Feb 14, 5:00 PM</small>
</div>
</div>
<div class="d-flex align-items-center mb-3 cal-sidebar-event" data-event-title="Client Meeting">
<div class="me-3" style="width:10px;height:10px;border-radius:50%;background:#d6a20c;"></div>
<div>
<h6 class="mb-0" style="font-size:14px;">Client Meeting</h6>
<small class="text-muted">Feb 15, 11:00 AM</small>
</div>
</div>
<div class="d-flex align-items-center cal-sidebar-event" data-event-title="Team Lunch">
<div class="me-3" style="width:10px;height:10px;border-radius:50%;background:#4796ea;"></div>
<div>
<h6 class="mb-0" style="font-size:14px;">Team Lunch</h6>
<small class="text-muted">Feb 16, 12:30 PM</small>
</div>
</div>
</div>
</div>
</div>
<!-- calendar area -->
<div class="col-lg-9">
<div class="card">
<div class="card-body">
<div id="calendar"></div>
</div>
</div>
</div>
</div>
<!-- add event modal -->
<div class="modal fade" id="addEventModal" tabindex="-1" aria-labelledby="addEventModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addEventModalLabel">Add New Event</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="eventTitle" class="form-label">Event Title</label>
<input type="text" class="form-control" id="eventTitle" placeholder="Enter event title">
</div>
<div class="row mb-3">
<div class="col-md-6">
<label for="eventStart" class="form-label">Start Date</label>
<input type="date" class="form-control" id="eventStart">
</div>
<div class="col-md-6">
<label for="eventEnd" class="form-label">End Date</label>
<input type="date" class="form-control" id="eventEnd">
</div>
</div>
<div class="mb-3">
<label for="eventColor" class="form-label">Color</label>
<select class="form-select" id="eventColor">
<option value="#4336fb">Primary</option>
<option value="#36b398">Success</option>
<option value="#f96776">Danger</option>
<option value="#d6a20c">Warning</option>
<option value="#4796ea">Info</option>
</select>
</div>
<div class="mb-3">
<label for="eventDescription" class="form-label">Description</label>
<textarea class="form-control" id="eventDescription" rows="3" placeholder="Event details..."></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary">Save Event</button>
</div>
</div>
</div>
</div>
<!-- view event modal -->
<div class="modal fade" id="viewEventModal" tabindex="-1" aria-labelledby="viewEventModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="viewEventModalLabel">Event Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="d-flex align-items-center mb-3">
<div id="viewEventColor" class="me-3" style="width:14px;height:14px;border-radius:50%;"></div>
<h5 class="mb-0" id="viewEventTitle"></h5>
</div>
<div class="mb-2">
<i class="ti-calendar me-2 text-muted"></i>
<span id="viewEventDate"></span>
</div>
<div class="mb-2" id="viewEventTimeRow">
<i class="ti-time me-2 text-muted"></i>
<span id="viewEventTime"></span>
</div>
<div class="mb-2" id="viewEventLocationRow" style="display:none;">
<i class="ti-location-pin me-2 text-muted"></i>
<span id="viewEventLocation"></span>
</div>
<hr>
<p class="text-muted mb-0" id="viewEventDesc"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-danger btn-sm" id="viewEventDelete">
<i class="ti-trash me-1"></i>Delete
</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- calendar page end -->
</div>
</div>
<!-- main content area end -->
<!-- footer area start-->
<footer>
<div class="footer-area">
<p>© Copyright 2026. All right reserved. Template by <a href="https://colorlib.com/wp/">Colorlib</a>.</p>
</div>
</footer>
<!-- footer area end-->
</div>
<!-- page container area end -->
<!-- offset area start -->
<div class="offset-area">
<div class="offset-close"><i class="ti-close"></i></div>
<ul class="nav offset-menu-tab">
<li><a class="active" data-bs-toggle="tab" href="#activity">Activity</a></li>
<li><a data-bs-toggle="tab" href="#settings">Settings</a></li>
</ul>
<div class="offset-content tab-content">
<div id="activity" class="tab-pane fade in show active">
<div class="recent-activity">
<div class="timeline-task">
<div class="icon bg1">
<i class="fa-solid fa-envelope"></i>
</div>
<div class="tm-title">
<h4>Rashed sent you an email</h4>
<span class="time"><i class="ti-time"></i>09:35</span>
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse distinctio itaque at.
</p>
</div>
<div class="timeline-task">
<div class="icon bg2">
<i class="fa-solid fa-check"></i>
</div>
<div class="tm-title">
<h4>Added</h4>
<span class="time"><i class="ti-time"></i>7 Minutes Ago</span>
</div>
<p>Lorem ipsum dolor sit amet consectetur.
</p>
</div>
<div class="timeline-task">
<div class="icon bg2">
<i class="fa-solid fa-exclamation-triangle"></i>
</div>
<div class="tm-title">
<h4>You missed you Password!</h4>
<span class="time"><i class="ti-time"></i>09:20 Am</span>
</div>
</div>
<div class="timeline-task">
<div class="icon bg3">
<i class="fa-solid fa-bomb"></i>
</div>
<div class="tm-title">
<h4>Member waiting for you Attention</h4>
<span class="time"><i class="ti-time"></i>09:35</span>
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse distinctio itaque at.
</p>
</div>
</div>
</div>
<div id="settings" class="tab-pane fade">
<div class="offset-settings">
<h4>General Settings</h4>
<div class="settings-list">
<div class="s-settings">
<div class="s-sw-title">
<h5>Notifications</h5>
<div class="s-swtich">
<input type="checkbox" id="switch1" />
<label for="switch1">Toggle</label>
</div>
</div>
<p>Keep it 'On' When you want to get all the notification.</p>
</div>
<div class="s-settings">
<div class="s-sw-title">
<h5>Show recent activity</h5>
<div class="s-swtich">
<input type="checkbox" id="switch2" />
<label for="switch2">Toggle</label>
</div>
</div>
<p>The for attribute is necessary to bind our custom checkbox with the input.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- offset area end -->
<!-- bootstrap 5 js -->
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/swiper-bundle.min.js"></script>
<script src="assets/js/metismenujs.min.js"></script>
<script src="assets/js/scripts.js"></script>
<!-- FullCalendar 6 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/index.global.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
if (!calendarEl) return;
// View-event modal elements
var viewModal = new bootstrap.Modal(document.getElementById('viewEventModal'));
var viewTitle = document.getElementById('viewEventTitle');
var viewDate = document.getElementById('viewEventDate');
var viewTime = document.getElementById('viewEventTime');
var viewTimeRow = document.getElementById('viewEventTimeRow');
var viewLocation = document.getElementById('viewEventLocation');
var viewLocationRow = document.getElementById('viewEventLocationRow');
var viewDesc = document.getElementById('viewEventDesc');
var viewColor = document.getElementById('viewEventColor');
var viewDeleteBtn = document.getElementById('viewEventDelete');
var clickedEvent = null;
// Format date for display
function formatDate(d) {
var opts = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
return d.toLocaleDateString('en-US', opts);
}
function formatTime(d) {
return d.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' });
}
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth',
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
editable: true,
selectable: true,
dayMaxEvents: true,
eventClick: function(info) {
info.jsEvent.preventDefault();
clickedEvent = info.event;
var ev = info.event;
var props = ev.extendedProps || {};
viewTitle.textContent = ev.title;
viewColor.style.background = ev.backgroundColor || '#4336fb';
// Date
viewDate.textContent = formatDate(ev.start);
if (ev.end && ev.end.toDateString() !== ev.start.toDateString()) {
viewDate.textContent += ' — ' + formatDate(ev.end);
}
// Time
if (ev.allDay) {
viewTimeRow.style.display = 'none';
} else {
viewTimeRow.style.display = '';
var timeTxt = formatTime(ev.start);
if (ev.end) timeTxt += ' — ' + formatTime(ev.end);
viewTime.textContent = timeTxt;
}
// Location
if (props.location) {
viewLocationRow.style.display = '';
viewLocation.textContent = props.location;
} else {
viewLocationRow.style.display = 'none';
}
// Description
viewDesc.textContent = props.description || 'No additional details.';
viewModal.show();
},
events: [
{
title: 'Team Standup',
start: '2026-02-10T10:00:00',
color: '#4336fb',
extendedProps: {
description: 'Daily 15-minute sync with the development team to review progress and blockers.',
location: 'Conference Room A'
}
},
{
title: 'Project Review',
start: '2026-02-11T14:00:00',
color: '#36b398',
extendedProps: {
description: 'Review milestones and deliverables for the current sprint cycle.',
location: 'Board Room'
}
},
{
title: 'Deadline: Q1 Report',
start: '2026-02-14T17:00:00',
color: '#f96776',
extendedProps: {
description: 'Final submission of the Q1 financial and progress report to stakeholders.'
}
},
{
title: 'Client Meeting',
start: '2026-02-15T11:00:00',
end: '2026-02-15T12:00:00',
color: '#d6a20c',
extendedProps: {
description: 'Discuss project requirements and timeline with the client.',
location: 'Zoom Call'
}
},
{
title: 'Team Lunch',
start: '2026-02-16T12:30:00',
color: '#4796ea',
extendedProps: {
description: 'Monthly team lunch outing to celebrate recent wins.',
location: 'Downtown Grill'
}
},
{
title: 'Sprint Planning',
start: '2026-02-18T09:00:00',
end: '2026-02-18T10:30:00',
color: '#4336fb',
extendedProps: {
description: 'Plan tasks and assign story points for the next two-week sprint.',
location: 'Conference Room B'
}
},
{
title: 'Design Review',
start: '2026-02-20T15:00:00',
color: '#36b398',
extendedProps: {
description: 'Review mockups and prototypes for the new dashboard redesign.',
location: 'Design Studio'
}
},
{
title: 'Board Meeting',
start: '2026-02-22T10:00:00',
end: '2026-02-22T16:00:00',
color: '#f96776',
extendedProps: {
description: 'Full-day board meeting covering Q1 results, strategy, and budget approval.',
location: 'Executive Suite'
}
},
{
title: 'Workshop',
start: '2026-02-25',
end: '2026-02-27',
color: '#d6a20c',
extendedProps: {
description: 'Two-day hands-on workshop on modern front-end development practices.',
location: 'Training Center'
}
}
]
});
calendar.render();
// Delete event from modal
viewDeleteBtn.addEventListener('click', function() {
if (clickedEvent) {
clickedEvent.remove();
clickedEvent = null;
viewModal.hide();
}
});
// Add Event — wire up Save button
var addModal = document.getElementById('addEventModal');
var saveBtn = addModal.querySelector('.btn-primary');
saveBtn.addEventListener('click', function() {
var title = document.getElementById('eventTitle').value.trim();
if (!title) {
document.getElementById('eventTitle').classList.add('is-invalid');
return;
}
document.getElementById('eventTitle').classList.remove('is-invalid');
var startVal = document.getElementById('eventStart').value;
var endVal = document.getElementById('eventEnd').value;
var color = document.getElementById('eventColor').value;
var desc = document.getElementById('eventDescription').value.trim();
calendar.addEvent({
title: title,
start: startVal || new Date().toISOString().split('T')[0],
end: endVal || null,
color: color,
extendedProps: { description: desc }
});
// Reset form and close
addModal.querySelector('form').reset();
bootstrap.Modal.getInstance(addModal).hide();
});
// Make sidebar upcoming events clickable
document.querySelectorAll('.cal-sidebar-event').forEach(function(el) {
el.style.cursor = 'pointer';
el.addEventListener('click', function() {
var eventTitle = el.getAttribute('data-event-title');
var events = calendar.getEvents();
for (var i = 0; i < events.length; i++) {
if (events[i].title === eventTitle) {
clickedEvent = events[i];
var ev = events[i];
var props = ev.extendedProps || {};
viewTitle.textContent = ev.title;
viewColor.style.background = ev.backgroundColor || '#4336fb';
viewDate.textContent = formatDate(ev.start);
if (ev.end && ev.end.toDateString() !== ev.start.toDateString()) {
viewDate.textContent += ' — ' + formatDate(ev.end);
}
if (ev.allDay) {
viewTimeRow.style.display = 'none';
} else {
viewTimeRow.style.display = '';
var timeTxt = formatTime(ev.start);
if (ev.end) timeTxt += ' — ' + formatTime(ev.end);
viewTime.textContent = timeTxt;
}
if (props.location) {
viewLocationRow.style.display = '';
viewLocation.textContent = props.location;
} else {
viewLocationRow.style.display = 'none';
}
viewDesc.textContent = props.description || 'No additional details.';
viewModal.show();
break;
}
}
});
});
});
</script>
<!-- Google Analytics 4 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "G-XXXXXXXXXX");
</script>
</body>
</html>