-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (21 loc) · 823 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<title>QR Code Attendance System</title>
</head>
<body>
<div id="welcomeMessage"></div>
<button id="markAttendanceBtn" style="display:none;">Mark Attendance</button>
<script>
// Function to display welcome message and show the attendance button
function showWelcomeMessage(studentName) {
document.getElementById("welcomeMessage").textContent = "Welcome, " + studentName + "!";
document.getElementById("markAttendanceBtn").style.display = "block";
}
// Simulate marking attendance when the button is clicked
document.getElementById("markAttendanceBtn").addEventListener("click", function () {
alert("Attendance marked successfully!");
});
</script>
</body>
</html>