forked from p1t5-Calendar/ProjectOne
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (71 loc) · 3.75 KB
/
index.html
File metadata and controls
75 lines (71 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title aria-label="Monthly Calendar">Monthly Calendar</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="data:,">
</head>
<body>
<div class="container py-4">
<div class="d-flex justify-content-between align-items-center">
<div class="cal-head">
<button id="prevMonth" class="btn btn-outline-primary" aria-label="Previous Month">◀</button>
<h1 id="monthYear"></h1>
<button id="nextMonth" class="btn btn-outline-primary" aria-label="Next Month">▶</button>
</div>
<button id="todayButton" class="btn btn-outline-success" aria-label="Go To Today">Today</button>
<div class="hamburger-menu">
<button id="hamburgerButton" class="btn btn-outline-secondary" aria-label="Open View Options">☰ View</button>
<div id="viewDropdown" class="dropdown-menu">
<div class="dropdown-item" onclick="changeView('month')" aria-label="Month View">Month View</div>
<div class="dropdown-item" onclick="changeView('week')" aria-label="Week View">Week View</div>
<div class="dropdown-item" onclick="changeView('day')" aria-label="Day View">Day View</div>
</div>
</div>
<button id="darkb" class="dark-mode" style="font-size:28px" aria-label="Toggle dark mode">
<i class="bi-brightness-high-fill"></i>
</button>
</div>
<div class="calendar-grid" id="calendarGrid">
<!-- Example hardcoded date for demonstration -->
<div class="date" data-date="2025-01-01">
<div>1
<button class="add-task-btn" onclick="openModal('2025-01-01')" aria-label="Add Task">Add Task</button>
</div>
<div class="tasks" id="2025-01-01-tasks"></div>
</div>
</div>
<div id="taskModal" class="custom-modal">
<div class="custom-modal-content" id="modalContent">
<div class="modal-header" id="modalHeader">
<span class="close-button" onclick="closeModal()">×</span>
</div>
<form id="taskForm">
<div class="mb-3">
<label for="taskInput" class="form-label">Task</label>
<input type="text" aria-label="Task" class="form-control" id="taskInput" required>
</div>
<div class="radio-group">
<label>
<input type="radio" aria-label="Urgent" name="urgency" value="urgent" required>
Urgent
</label>
<label>
<input type="radio" aria-label="Non-Urgent" name="urgency" value="non-urgent">
Non-Urgent
</label>
</div>
<input type="hidden" aria-label="hidden" id="selectedDate">
<button aria-label="Add Task" type="submit" class="btn btn-primary">Add Task</button>
</form>
<div class="resize-handle" id="resizeHandle"></div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js"></script>
<script src="script.js"></script>
</body>
</html>