-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.html
106 lines (96 loc) · 4.8 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
96
97
98
99
100
101
102
103
104
105
106
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="project.css">
<link rel="stylesheet" href="calendar.css">
<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=Elsie:wght@400;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Elsie:wght@400;900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Elsie:wght@400;900&family=Lexend:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rowdies:wght@300;400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Elsie:wght@400;900&family=Lexend:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rowdies:wght@300;400;700&display=swap" rel="stylesheet">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<title>Whispering Willow</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navi " style="color: #000000;box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);position: fixed;top:0;" >
<a class="navbar-brand" href="#" style="font-size: 18px;"><img src="logoC.jpg" style="width: 10%;height: 100%;position: absolute;top: 0;"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation" style="color: #fffdfd;" >
<i class='bx bx-menu' style="color: black;"></i>
</button>
<div class="collapse navbar-collapse" id="navbarNav" style="color: #000000;" >
<ul class="navbar-nav" style="position: absolute;right: 0;margin-right: 8px;">
<li class="nav-item active">
<a class="nav-link" href="./project.html" >Dashboard<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./selfcare.html">Self Care</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./mood.html" style="text-decoration: underline;text-decoration-color: rgb(208, 116, 116);">Mood Tracker</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./progress.html">Progress Tracker</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./helpline.html" >Helpline</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" ><i class='bx bx-user-circle' style="font-size: 20px;"></i></a>
</li>
</ul>
</div>
</nav>
<div class="calendar">
<div class="month">
<ul>
<li class="prev">❮</li>
<li class="next">❯</li>
<li>March<br><span style="font-size:18px">2024</span></li>
</ul>
</div>
<ul class="weekdays">
<li>Sun</li>
<li>Mon</li>
<li>Tue</li>
<li>Wed</li>
<li>Thu</li>
<li>Fri</li>
<li>Sat</li>
</ul>
<ul class="days">
<!-- Days will be generated dynamically using JavaScript -->
</ul>
</div>
<script>
const daysList = document.querySelector('.days');
// Function to generate calendar days
function generateCalendarDays() {
daysList.innerHTML = '';
const daysInMonth = 31; // Change this based on the current month
for (let i = 1; i <= daysInMonth; i++) {
const day = document.createElement('li');
day.textContent = i;
daysList.appendChild(day);
// Add event listener to each day for user input
day.addEventListener('click', () => {
const event = prompt(`Enter event for ${i}`);
if (event) {
// Here, you can save the event to your database or perform any other action
alert(`Event "${event}" added for ${i}`);
}
});
}
}
generateCalendarDays();
</script> <!-- You can add your own JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>