Spaces:
Running
Running
Update attendance.html
Browse files- attendance.html +4 -1
attendance.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<link rel="stylesheet" href="style.css">
|
| 10 |
|
|
|
|
| 11 |
</head>
|
| 12 |
<body class="min-h-screen">
|
| 13 |
<custom-navbar></custom-navbar>
|
|
@@ -561,8 +562,10 @@
|
|
| 561 |
return;
|
| 562 |
}
|
| 563 |
|
|
|
|
| 564 |
const data = {
|
| 565 |
-
timestamp:
|
|
|
|
| 566 |
mealTime: selectedMeal || getCurrentMealTime(),
|
| 567 |
attendance: attendance,
|
| 568 |
class: studentClass,
|
|
|
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<link rel="stylesheet" href="style.css">
|
| 10 |
|
| 11 |
+
<base target="_blank">
|
| 12 |
</head>
|
| 13 |
<body class="min-h-screen">
|
| 14 |
<custom-navbar></custom-navbar>
|
|
|
|
| 562 |
return;
|
| 563 |
}
|
| 564 |
|
| 565 |
+
const now = new Date();
|
| 566 |
const data = {
|
| 567 |
+
timestamp: now.toISOString(),
|
| 568 |
+
date: now.toISOString().split('T')[0],
|
| 569 |
mealTime: selectedMeal || getCurrentMealTime(),
|
| 570 |
attendance: attendance,
|
| 571 |
class: studentClass,
|