-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.html
95 lines (89 loc) · 2.44 KB
/
calendar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,
initial-scale=1.0">
<link rel="stylesheet" href="./calendar.css">
<title>Dynamic Calendar</title>
</head>
<body>
<div class="wrapper">
<div class="container-calendar">
<div id="left">
<h1>Dynamic Calendar</h1>
<div id="event-section">
<h3>Add Event</h3>
<input type="date" id="eventDate">
<input type="text"
id="eventTitle"
placeholder="Event Title">
<input type="text"
id="eventDescription"
placeholder="Event Description">
<button id="addEvent" onclick="addEvent()">
Add
</button>
</div>
<div id="reminder-section">
<h3>Reminders</h3>
<h4>mm-dd-yyyy</h4>
<!-- List to display reminders -->
<ul id="reminderList">
<li data-event-id="1">
<strong>Event Title</strong>
- Event Description on Event Date
<button class="delete-event"
onclick="deleteEvent(1)">
Delete
</button>
</li>
</ul>
</div>
</div>
<div id="right">
<h3 id="monthAndYear"></h3>
<div class="button-container-calendar">
<button id="previous"
onclick="previous()">
‹
</button>
<button id="next"
onclick="next()">
›
</button>
</div>
<table class="table-calendar"
id="calendar"
data-lang="en">
<thead id="thead-month"></thead>
<!-- Table body for displaying the calendar -->
<tbody id="calendar-body"></tbody>
</table>
<div class="footer-container-calendar">
<label for="month">Jump To: </label>
<!-- Dropdowns to select a specific month and year -->
<select id="month" onchange="jump()">
<option value=0>Jan</option>
<option value=1>Feb</option>
<option value=2>Mar</option>
<option value=3>Apr</option>
<option value=4>May</option>
<option value=5>Jun</option>
<option value=6>Jul</option>
<option value=7>Aug</option>
<option value=8>Sep</option>
<option value=9>Oct</option>
<option value=10>Nov</option>
<option value=11>Dec</option>
</select>
<!-- Dropdown to select a specific year -->
<select id="year" onchange="jump()"></select>
</div>
</div>
</div>
</div>
<script src="./calendar.js"></script>
</body>
</html>