Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +6 -4
- index.html +443 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: attedancedemo
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,443 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Student Attendance System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
/* Custom animations */
|
| 11 |
+
@keyframes pulse {
|
| 12 |
+
0%, 100% { opacity: 1; }
|
| 13 |
+
50% { opacity: 0.5; }
|
| 14 |
+
}
|
| 15 |
+
.animate-pulse {
|
| 16 |
+
animation: pulse 2s infinite;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* Custom scrollbar */
|
| 20 |
+
::-webkit-scrollbar {
|
| 21 |
+
width: 8px;
|
| 22 |
+
}
|
| 23 |
+
::-webkit-scrollbar-track {
|
| 24 |
+
background: #f1f1f1;
|
| 25 |
+
}
|
| 26 |
+
::-webkit-scrollbar-thumb {
|
| 27 |
+
background: #888;
|
| 28 |
+
border-radius: 4px;
|
| 29 |
+
}
|
| 30 |
+
::-webkit-scrollbar-thumb:hover {
|
| 31 |
+
background: #555;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/* Custom checkbox */
|
| 35 |
+
input[type="checkbox"].custom-checkbox {
|
| 36 |
+
appearance: none;
|
| 37 |
+
-webkit-appearance: none;
|
| 38 |
+
width: 24px;
|
| 39 |
+
height: 24px;
|
| 40 |
+
border: 2px solid #e2e8f0;
|
| 41 |
+
border-radius: 6px;
|
| 42 |
+
cursor: pointer;
|
| 43 |
+
display: flex;
|
| 44 |
+
align-items: center;
|
| 45 |
+
justify-content: center;
|
| 46 |
+
transition: all 0.2s;
|
| 47 |
+
}
|
| 48 |
+
input[type="checkbox"].custom-checkbox:checked {
|
| 49 |
+
background-color: #4f46e5;
|
| 50 |
+
border-color: #4f46e5;
|
| 51 |
+
}
|
| 52 |
+
input[type="checkbox"].custom-checkbox:checked::after {
|
| 53 |
+
content: "✓";
|
| 54 |
+
color: white;
|
| 55 |
+
font-size: 14px;
|
| 56 |
+
font-weight: bold;
|
| 57 |
+
}
|
| 58 |
+
</style>
|
| 59 |
+
</head>
|
| 60 |
+
<body class="bg-gray-50">
|
| 61 |
+
<div class="min-h-screen flex flex-col">
|
| 62 |
+
<!-- Header -->
|
| 63 |
+
<header class="bg-indigo-600 text-white shadow-lg">
|
| 64 |
+
<div class="container mx-auto px-4 py-4">
|
| 65 |
+
<div class="flex justify-between items-center">
|
| 66 |
+
<div class="flex items-center space-x-2">
|
| 67 |
+
<i class="fas fa-clipboard-check text-2xl"></i>
|
| 68 |
+
<h1 class="text-xl font-bold">Attendance Portal</h1>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="flex items-center space-x-4">
|
| 71 |
+
<div class="hidden md:flex items-center space-x-2 bg-indigo-500 px-3 py-1 rounded-full">
|
| 72 |
+
<i class="fas fa-user-graduate"></i>
|
| 73 |
+
<span id="student-name">John Doe</span>
|
| 74 |
+
</div>
|
| 75 |
+
<button class="bg-white text-indigo-600 px-4 py-1 rounded-full font-medium hover:bg-indigo-50 transition">Logout</button>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</header>
|
| 80 |
+
|
| 81 |
+
<!-- Main Content -->
|
| 82 |
+
<main class="flex-1 container mx-auto px-4 py-6">
|
| 83 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 84 |
+
<!-- Left Column - Student Info and Today's Classes -->
|
| 85 |
+
<div class="lg:col-span-1 space-y-6">
|
| 86 |
+
<!-- Student Profile Card -->
|
| 87 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
| 88 |
+
<div class="flex items-center space-x-4 mb-4">
|
| 89 |
+
<div class="relative">
|
| 90 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Student" class="w-16 h-16 rounded-full object-cover border-2 border-indigo-100">
|
| 91 |
+
<span class="absolute bottom-0 right-0 bg-green-500 rounded-full w-4 h-4 border-2 border-white"></span>
|
| 92 |
+
</div>
|
| 93 |
+
<div>
|
| 94 |
+
<h2 class="font-bold text-lg" id="full-name">John Doe</h2>
|
| 95 |
+
<p class="text-gray-600" id="student-id">ID: S10024</p>
|
| 96 |
+
<p class="text-gray-600" id="student-courses">Computer Science</p>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="grid grid-cols-3 gap-2 text-center">
|
| 100 |
+
<div class="bg-indigo-50 rounded-lg p-2">
|
| 101 |
+
<p class="text-gray-500 text-sm">Total Classes</p>
|
| 102 |
+
<p class="font-bold">48</p>
|
| 103 |
+
</div>
|
| 104 |
+
<div class="bg-indigo-50 rounded-lg p-2">
|
| 105 |
+
<p class="text-gray-500 text-sm">Present</p>
|
| 106 |
+
<p class="font-bold">42</p>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="bg-indigo-50 rounded-lg p-2">
|
| 109 |
+
<p class="text-gray-500 text-sm">Attendance</p>
|
| 110 |
+
<p class="font-bold text-green-600">87.5%</p>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<!-- Today's Classes -->
|
| 116 |
+
<div class="bg-white rounded-xl shadow-md p-6">
|
| 117 |
+
<h3 class="font-bold text-lg mb-4 flex items-center">
|
| 118 |
+
<i class="fas fa-calendar-day mr-2 text-indigo-600"></i>
|
| 119 |
+
Today's Schedule
|
| 120 |
+
</h3>
|
| 121 |
+
<div class="space-y-3">
|
| 122 |
+
<div class="flex justify-between items-center p-3 bg-indigo-50 rounded-lg">
|
| 123 |
+
<div>
|
| 124 |
+
<p class="font-medium">Data Structures</p>
|
| 125 |
+
<p class="text-sm text-gray-500">9:00 AM - 10:30 AM</p>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="text-green-500">
|
| 128 |
+
<i class="fas fa-check-circle"></i>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
<div class="flex justify-between items-center p-3 bg-indigo-50 rounded-lg">
|
| 132 |
+
<div>
|
| 133 |
+
<p class="font-medium">Algorithms</p>
|
| 134 |
+
<p class="text-sm text-gray-500">11:00 AM - 12:30 PM</p>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="text-orange-500">
|
| 137 |
+
<i class="fas fa-clock"></i>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
|
| 141 |
+
<div>
|
| 142 |
+
<p class="font-medium">Database Systems</p>
|
| 143 |
+
<p class="text-sm text-gray-500">2:00 PM - 3:30 PM</p>
|
| 144 |
+
</div>
|
| 145 |
+
<div class="text-gray-400">
|
| 146 |
+
<i class="fas fa-lock"></i>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<!-- Right Column - Attendance Form -->
|
| 154 |
+
<div class="lg:col-span-2">
|
| 155 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 156 |
+
<!-- Attendance Form Header -->
|
| 157 |
+
<div class="bg-indigo-600 text-white px-6 py-4">
|
| 158 |
+
<div class="flex justify-between items-center">
|
| 159 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 160 |
+
<i class="fas fa-user-check mr-2"></i>
|
| 161 |
+
Mark Attendance
|
| 162 |
+
</h2>
|
| 163 |
+
<div class="flex items-center space-x-2">
|
| 164 |
+
<span id="current-date" class="font-medium">June 15, 2023</span>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
<!-- Attendance Form Body -->
|
| 170 |
+
<div class="p-6">
|
| 171 |
+
<!-- Current Class Info -->
|
| 172 |
+
<div class="bg-indigo-50 rounded-lg p-4 mb-6">
|
| 173 |
+
<div class="flex justify-between items-center">
|
| 174 |
+
<div>
|
| 175 |
+
<h3 class="font-bold text-lg" id="current-class-name">Algorithms</h3>
|
| 176 |
+
<p class="text-gray-600" id="current-class-time">11:00 AM - 12:30 PM</p>
|
| 177 |
+
</div>
|
| 178 |
+
<div class="bg-indigo-100 text-indigo-800 px-3 py-1 rounded-full text-sm font-medium">
|
| 179 |
+
Active Now
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<!-- Geo Location Check -->
|
| 185 |
+
<div class="mb-6">
|
| 186 |
+
<div class="flex items-center justify-between mb-3">
|
| 187 |
+
<h4 class="font-medium">Location Verification</h4>
|
| 188 |
+
<div class="flex items-center space-x-2">
|
| 189 |
+
<span class="text-sm text-gray-500">Your location:</span>
|
| 190 |
+
<span id="location-status" class="text-sm font-medium text-green-600">Verified</span>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
<div class="flex items-center space-x-4">
|
| 194 |
+
<div class="flex-1 bg-gray-100 rounded-lg p-3">
|
| 195 |
+
<div class="flex items-center justify-between">
|
| 196 |
+
<div>
|
| 197 |
+
<p class="text-sm font-medium text-gray-700">Approximate Location</p>
|
| 198 |
+
<p id="location-details" class="text-sm text-gray-500">University Main Building, Room 204</p>
|
| 199 |
+
</div>
|
| 200 |
+
<button id="refresh-location" class="text-indigo-600 hover:text-indigo-800">
|
| 201 |
+
<i class="fas fa-sync-alt"></i>
|
| 202 |
+
</button>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
<div class="bg-green-100 text-green-800 px-3 py-2 rounded-lg">
|
| 206 |
+
<i class="fas fa-check-circle mr-1"></i>
|
| 207 |
+
<span>Match</span>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<!-- Attendance Marking -->
|
| 213 |
+
<div class="mb-6">
|
| 214 |
+
<h4 class="font-medium mb-3">Confirm Attendance</h4>
|
| 215 |
+
<div class="bg-indigo-50 rounded-lg p-4">
|
| 216 |
+
<div class="flex items-center justify-between mb-2">
|
| 217 |
+
<div class="flex items-center space-x-3">
|
| 218 |
+
<input type="checkbox" id="confirm-attendance" class="custom-checkbox">
|
| 219 |
+
<label for="confirm-attendance" class="text-gray-700 font-medium">I confirm that I'm attending this class</label>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
<div class="flex items-center justify-between">
|
| 223 |
+
<div>
|
| 224 |
+
<p class="text-xs text-gray-500">Note: Marking false attendance may lead to disciplinary action.</p>
|
| 225 |
+
</div>
|
| 226 |
+
<div>
|
| 227 |
+
<p class="text-xs text-gray-500">Session will expire in: <span id="timer" class="font-bold">14:32</span></p>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<!-- QR Code Option -->
|
| 234 |
+
<div class="mb-8">
|
| 235 |
+
<h4 class="font-medium mb-3">Alternative Verification</h4>
|
| 236 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 237 |
+
<button id="scan-qr-btn" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-800 font-medium py-3 px-4 rounded-lg flex items-center justify-center space-x-2 transition">
|
| 238 |
+
<i class="fas fa-qrcode"></i>
|
| 239 |
+
<span>Scan QR Code</span>
|
| 240 |
+
</button>
|
| 241 |
+
<button class="bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-3 px-4 rounded-lg flex items-center justify-center space-x-2 transition">
|
| 242 |
+
<i class="fas fa-fingerprint"></i>
|
| 243 |
+
<span>Use Biometric</span>
|
| 244 |
+
</button>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<!-- Submit Button -->
|
| 249 |
+
<button id="submit-attendance" class="w-full bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-4 rounded-lg shadow-md flex items-center justify-center space-x-2 transition disabled:opacity-50 disabled:cursor-not-allowed" disabled>
|
| 250 |
+
<i class="fas fa-check-circle"></i>
|
| 251 |
+
<span>Submit Attendance</span>
|
| 252 |
+
</button>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
|
| 256 |
+
<!-- Attendance History -->
|
| 257 |
+
<div class="mt-6 bg-white rounded-xl shadow-md overflow-hidden">
|
| 258 |
+
<div class="bg-indigo-600 text-white px-6 py-4">
|
| 259 |
+
<h2 class="text-xl font-bold flex items-center">
|
| 260 |
+
<i class="fas fa-history mr-2"></i>
|
| 261 |
+
Recent Attendance
|
| 262 |
+
</h2>
|
| 263 |
+
</div>
|
| 264 |
+
<div class="overflow-x-auto">
|
| 265 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 266 |
+
<thead class="bg-gray-50">
|
| 267 |
+
<tr>
|
| 268 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
| 269 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Class</th>
|
| 270 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
|
| 271 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 272 |
+
</tr>
|
| 273 |
+
</thead>
|
| 274 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 275 |
+
<tr>
|
| 276 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">June 14, 2023</td>
|
| 277 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Database Systems</td>
|
| 278 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2:00 PM - 3:30 PM</td>
|
| 279 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 280 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">Present</span>
|
| 281 |
+
</td>
|
| 282 |
+
</tr>
|
| 283 |
+
<tr>
|
| 284 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">June 14, 2023</td>
|
| 285 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Algorithms</td>
|
| 286 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">11:00 AM - 12:30 PM</td>
|
| 287 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 288 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">Present</span>
|
| 289 |
+
</td>
|
| 290 |
+
</tr>
|
| 291 |
+
<tr>
|
| 292 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">June 12, 2023</td>
|
| 293 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Data Structures</td>
|
| 294 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9:00 AM - 10:30 AM</td>
|
| 295 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 296 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-red-100 text-red-800">Absent</span>
|
| 297 |
+
</td>
|
| 298 |
+
</tr>
|
| 299 |
+
<tr>
|
| 300 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">June 10, 2023</td>
|
| 301 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Computer Networks</td>
|
| 302 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4:00 PM - 5:30 PM</td>
|
| 303 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 304 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">Present</span>
|
| 305 |
+
</td>
|
| 306 |
+
</tr>
|
| 307 |
+
</tbody>
|
| 308 |
+
</table>
|
| 309 |
+
</div>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</main>
|
| 314 |
+
|
| 315 |
+
<!-- Footer -->
|
| 316 |
+
<footer class="bg-gray-100 border-t border-gray-200 py-4">
|
| 317 |
+
<div class="container mx-auto px-4">
|
| 318 |
+
<p class="text-center text-gray-600 text-sm">© 2023 University Attendance System. All rights reserved.</p>
|
| 319 |
+
</div>
|
| 320 |
+
</footer>
|
| 321 |
+
</div>
|
| 322 |
+
|
| 323 |
+
<!-- QR Code Modal -->
|
| 324 |
+
<div id="qr-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 325 |
+
<div class="bg-white rounded-xl p-6 w-full max-w-sm">
|
| 326 |
+
<div class="flex justify-between items-center mb-4">
|
| 327 |
+
<h3 class="text-lg font-bold">Scan QR Code</h3>
|
| 328 |
+
<button id="close-qr-modal" class="text-gray-500 hover:text-gray-700">
|
| 329 |
+
<i class="fas fa-times"></i>
|
| 330 |
+
</button>
|
| 331 |
+
</div>
|
| 332 |
+
<div class="bg-gray-100 rounded-lg p-4 flex flex-col items-center mb-4">
|
| 333 |
+
<div class="bg-white p-4 rounded-lg mb-4">
|
| 334 |
+
<!-- Placeholder for QR code -->
|
| 335 |
+
<div class="w-48 h-48 bg-gray-200 flex items-center justify-center text-gray-500">
|
| 336 |
+
<div class="text-center">
|
| 337 |
+
<i class="fas fa-qrcode text-4xl mb-2"></i>
|
| 338 |
+
<p class="text-sm">QR Code Display</p>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
</div>
|
| 342 |
+
<p class="text-sm text-gray-600 text-center">Point your camera at the QR code displayed by your instructor</p>
|
| 343 |
+
</div>
|
| 344 |
+
<button class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition">
|
| 345 |
+
Use Camera
|
| 346 |
+
</button>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
|
| 350 |
+
<!-- Success Modal -->
|
| 351 |
+
<div id="success-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 352 |
+
<div class="bg-white rounded-xl p-6 w-full max-w-sm">
|
| 353 |
+
<div class="flex flex-col items-center text-center">
|
| 354 |
+
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4">
|
| 355 |
+
<i class="fas fa-check-circle text-green-600 text-3xl"></i>
|
| 356 |
+
</div>
|
| 357 |
+
<h3 class="text-xl font-bold mb-2">Attendance Recorded!</h3>
|
| 358 |
+
<p class="text-gray-600 mb-4">Your attendance has been successfully submitted for <span class="font-medium">Algorithms</span> class.</p>
|
| 359 |
+
<button id="close-success-modal" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition">
|
| 360 |
+
Close
|
| 361 |
+
</button>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
</div>
|
| 365 |
+
|
| 366 |
+
<script>
|
| 367 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 368 |
+
// Set current date
|
| 369 |
+
const now = new Date();
|
| 370 |
+
const options = { year: 'numeric', month: 'long', day: 'numeric' };
|
| 371 |
+
document.getElementById('current-date').textContent = now.toLocaleDateString('en-US', options);
|
| 372 |
+
|
| 373 |
+
// Timer countdown
|
| 374 |
+
let minutes = 14;
|
| 375 |
+
let seconds = 32;
|
| 376 |
+
const timerElement = document.getElementById('timer');
|
| 377 |
+
|
| 378 |
+
const timerInterval = setInterval(() => {
|
| 379 |
+
seconds--;
|
| 380 |
+
if (seconds < 0) {
|
| 381 |
+
minutes--;
|
| 382 |
+
seconds = 59;
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
if (minutes < 0) {
|
| 386 |
+
clearInterval(timerInterval);
|
| 387 |
+
timerElement.textContent = "Expired";
|
| 388 |
+
timerElement.classList.add('text-red-500');
|
| 389 |
+
document.getElementById('submit-attendance').disabled = true;
|
| 390 |
+
} else {
|
| 391 |
+
timerElement.textContent = `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
|
| 392 |
+
}
|
| 393 |
+
}, 1000);
|
| 394 |
+
|
| 395 |
+
// Attendance checkbox
|
| 396 |
+
const confirmAttendance = document.getElementById('confirm-attendance');
|
| 397 |
+
const submitButton = document.getElementById('submit-attendance');
|
| 398 |
+
|
| 399 |
+
confirmAttendance.addEventListener('change', () => {
|
| 400 |
+
submitButton.disabled = !confirmAttendance.checked;
|
| 401 |
+
});
|
| 402 |
+
|
| 403 |
+
// QR Code Modal
|
| 404 |
+
const qrModal = document.getElementById('qr-modal');
|
| 405 |
+
const scanQrBtn = document.getElementById('scan-qr-btn');
|
| 406 |
+
const closeQrModal = document.getElementById('close-qr-modal');
|
| 407 |
+
|
| 408 |
+
scanQrBtn.addEventListener('click', () => {
|
| 409 |
+
qrModal.classList.remove('hidden');
|
| 410 |
+
});
|
| 411 |
+
|
| 412 |
+
closeQrModal.addEventListener('click', () => {
|
| 413 |
+
qrModal.classList.add('hidden');
|
| 414 |
+
});
|
| 415 |
+
|
| 416 |
+
// Submit Attendance
|
| 417 |
+
const successModal = document.getElementById('success-modal');
|
| 418 |
+
const closeSuccessModal = document.getElementById('close-success-modal');
|
| 419 |
+
|
| 420 |
+
submitButton.addEventListener('click', () => {
|
| 421 |
+
qrModal.classList.add('hidden');
|
| 422 |
+
successModal.classList.remove('hidden');
|
| 423 |
+
clearInterval(timerInterval);
|
| 424 |
+
});
|
| 425 |
+
|
| 426 |
+
closeSuccessModal.addEventListener('click', () => {
|
| 427 |
+
successModal.classList.add('hidden');
|
| 428 |
+
// In a real app, this would redirect or refresh the page
|
| 429 |
+
});
|
| 430 |
+
|
| 431 |
+
// Refresh location
|
| 432 |
+
const refreshLocationBtn = document.getElementById('refresh-location');
|
| 433 |
+
refreshLocationBtn.addEventListener('click', () => {
|
| 434 |
+
// Simulate refreshing location
|
| 435 |
+
refreshLocationBtn.classList.add('animate-spin');
|
| 436 |
+
setTimeout(() => {
|
| 437 |
+
refreshLocationBtn.classList.remove('animate-spin');
|
| 438 |
+
}, 1000);
|
| 439 |
+
})
|
| 440 |
+
});
|
| 441 |
+
</script>
|
| 442 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Jay-Lokhande/attedancedemo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 443 |
+
</html>
|