-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
37 lines (36 loc) · 1.21 KB
/
scripts.js
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
// Function to handle navigation
function navigateTo(page) {
const content = document.getElementById('content');
switch(page) {
case 'attendance':
content.innerHTML = `
<h2>Attendance Sheet</h2>
<p>This is where the attendance sheet will go.</p>
<a href="/attendance.html">Go to Attendance Sheet</a>
`;
break;
case 'history':
content.innerHTML = `
<h2>Attendance History</h2>
<p>This is where the attendance history will be displayed.</p>
`;
break;
case 'reports':
content.innerHTML = `
<h2>Statistics & Reports</h2>
<p>View detailed statistics and reports here.</p>
`;
break;
case 'settings':
content.innerHTML = `
<h2>Settings</h2>
<p>Manage settings for the attendance system here.</p>
`;
break;
default:
content.innerHTML = `
<h2>Select a feature to begin</h2>
<p>Use the navigation bar above to access different features.</p>
`;
}
}