-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschedule.html
More file actions
268 lines (241 loc) Β· 8.11 KB
/
Copy pathschedule.html
File metadata and controls
268 lines (241 loc) Β· 8.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Schedule</title>
<link rel="stylesheet" href="css/styles.css" />
<link rel="icon" type="image/png" href="/assets/icons/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon.svg" />
<link rel="shortcut icon" href="/assets/icons/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="F" />
<link rel="manifest" href="/assets/icons/site.webmanifest" />
<style>
/* Additional styles for the date/time display */
#currentDateTime {
font-size: 1.2rem;
color: #444;
margin-top: 0.5rem;
font-weight: 500;
background: rgba(255, 255, 255, 0.8);
padding: 0.5rem 1rem;
border-radius: 20px;
display: inline-block;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.clock-container {
text-align: center;
margin-bottom: 1.5rem;
}
/* Status indicator for reload - simplified */
#reloadStatus {
font-size: 0.9rem;
color: #666;
margin-top: 0.5rem;
}
/* About button styles */
.about-button {
position: fixed;
top: 15px;
right: 15px;
width: 32px;
height: 32px;
cursor: pointer;
transition: transform 0.2s;
z-index: 1001;
}
.about-button:hover {
transform: scale(1.1);
}
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1002;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
overflow: auto;
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 25px;
border-radius: 10px;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
position: relative;
}
.close-button {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
position: absolute;
right: 15px;
top: 10px;
}
.close-button:hover {
color: black;
}
/* Next day notification */
.next-day-notification {
background-color: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
text-align: center;
font-weight: 500;
color: #856404;
}
/* Flash toggle responsive adjustments */
@media (max-width: 768px) {
.flash-toggle-container {
position: static;
justify-content: center;
margin: 10px 0;
}
header {
padding-top: 40px;
}
}
@media (max-width: 480px) {
.flash-toggle-btn {
font-size: 0.8rem;
padding: 4px 10px;
}
.flash-status {
font-size: 0.7rem;
}
}
</style>
</head>
<body>
<img src="https://raw.githubusercontent.com/Bella288/F1View/main/images/about_ico.png"
alt="About" class="about-button" title="about the creator and page" id="aboutBtn">
<nav class="navbar">
<a href="index.html">π« Class Setup</a>
<a href="dashboard.html">π Dashboard</a>
<a href="schedule.html" class="active">β° Schedule</a>
<a href="overview.html">π Overview</a>
<a href="quicklinks.html">π Quick Links</a>
<a href="settings.html">βοΈ Settings</a>
<a href="policies.html">π Policies</a>
</nav>
<!-- About Modal -->
<div id="aboutModal" class="modal">
<div class="modal-content">
<span class="close-button">×</span>
<h2>About GradeLine</h2>
<p><strong>Creator:</strong> Bella Lawrence</p>
<p><strong>YouTube:</strong> <a href="https://youtube.com/@SerialDesignationN-BL" target="_blank">youtube.com/@SerialDesignationN-BL</a></p>
<p><strong>Instagram:</strong> @q_law09</p>
<p><strong>Email:</strong> barbar288.2021@gmail.com</p>
<p><strong>Source Code:</strong> <a href="https://github.com/Bella288/futrschool" target="_blank">github.com/Bella288/futrschool</a></p>
<hr>
<p><strong>Why I made it:</strong> To help me and others keep track of their grades and schedules.</p>
<p><strong>Other use cases:</strong> Teachers can track overall average grade by class</p>
<p><strong>Features:</strong> Schedule view, classes and assignments, weighted categories, auto-grade calculation, and more</p>
<hr>
<p><strong>My Bio:</strong> Hey! I'm Bella Lawrence, a developer in the wonderful city of Fort Wayne, Indiana. I live with my two cats, Hermione and Barley, my dog, Pebbles, and my rabbit, Buttercup.</p>
</div>
</div>
<header>
<div class="flash-toggle-container">
<button id="flashToggleBtn" class="flash-toggle-btn" title="Toggle flashing animations">
β‘ Flash
</button>
<span id="flashStatus" class="flash-status">On</span>
</div>
<h1>β° Bell Schedule</h1>
<div class="clock-container">
<div id="currentDateTime">Loading time...</div>
<div id="reloadStatus">Auto-reload active</div>
</div>
</header>
<main>
<div id="nextDayNotification" class="next-day-notification" style="display: none;"></div>
<section id="schedule"></section>
</main>
<script src="js/schedule.js"></script>
<script>
// Function to check time and reload if seconds are 00
function checkTimeAndReload() {
const now = new Date();
const seconds = now.getSeconds();
// Reload the page if seconds are 00
if (seconds === 0) {
setTimeout(() => {
window.location.reload();
}, 100); // Small delay to ensure smooth operation
}
}
// Run the check every second
setInterval(checkTimeAndReload, 1000);
// Initial check
checkTimeAndReload();
// Modal functionality
const modal = document.getElementById("aboutModal");
const btn = document.getElementById("aboutBtn");
const span = document.getElementsByClassName("close-button")[0];
btn.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
// Flash toggle functionality
function initializeFlashToggle() {
const flashToggleBtn = document.getElementById('flashToggleBtn');
const flashStatus = document.getElementById('flashStatus');
// Check localStorage for flash preference
const flashSetting = localStorage.getItem('flash') || 'on';
// Set initial state
if (flashSetting === 'off') {
document.body.classList.remove('flash-enabled');
flashToggleBtn.classList.add('flash-off');
flashToggleBtn.innerHTML = 'β‘ Flash';
flashStatus.textContent = 'Off';
} else {
document.body.classList.add('flash-enabled');
flashToggleBtn.classList.remove('flash-off');
flashToggleBtn.innerHTML = 'β‘ Flash';
flashStatus.textContent = 'On';
}
// Add click event listener
flashToggleBtn.addEventListener('click', function() {
const currentFlash = localStorage.getItem('flash') || 'on';
if (currentFlash === 'on') {
localStorage.setItem('flash', 'off');
document.body.classList.remove('flash-enabled');
flashToggleBtn.classList.add('flash-off');
flashStatus.textContent = 'Off';
} else {
localStorage.setItem('flash', 'on');
document.body.classList.add('flash-enabled');
flashToggleBtn.classList.remove('flash-off');
flashStatus.textContent = 'On';
}
// Reload to apply changes
setTimeout(() => {
window.location.reload();
}, 300);
});
}
// Initialize flash toggle when page loads
document.addEventListener('DOMContentLoaded', initializeFlashToggle);
</script>
</body>
</html>