Update web/index.html
Browse files- web/index.html +46 -0
web/index.html
CHANGED
|
@@ -365,6 +365,36 @@
|
|
| 365 |
</div>
|
| 366 |
</div>
|
| 367 |
</main> <!-- main -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
<script src="js/jquery.min.js"></script>
|
| 369 |
<script src="js/popper.min.js"></script>
|
| 370 |
<script src="js/moment.min.js"></script>
|
|
@@ -385,6 +415,22 @@
|
|
| 385 |
api.getSession().catch(() => { window.location.href = 'auth-login.html'; })
|
| 386 |
.then(r => { if (r && !r.success) window.location.href = 'auth-login.html'; });
|
| 387 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
<script src="js/gauge.min.js"></script>
|
| 389 |
<script src="js/jquery.sparkline.min.js"></script>
|
| 390 |
<script src="js/apexcharts.min.js"></script>
|
|
|
|
| 365 |
</div>
|
| 366 |
</div>
|
| 367 |
</main> <!-- main -->
|
| 368 |
+
|
| 369 |
+
<!-- Modal de Bienvenida -->
|
| 370 |
+
<div class="modal fade" id="welcomeModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="true" data-keyboard="true">
|
| 371 |
+
<div class="modal-dialog modal-dialog-centered" role="document" style="max-width: 420px;">
|
| 372 |
+
<div class="modal-content" style="border-radius: 16px; overflow: hidden; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.15);">
|
| 373 |
+
<!-- Header con gradiente -->
|
| 374 |
+
<div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 2rem; text-align: center;">
|
| 375 |
+
<div style="width: 72px; height: 72px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;">
|
| 376 |
+
<i class="fe fe-user" style="font-size: 2rem; color: white;"></i>
|
| 377 |
+
</div>
|
| 378 |
+
<h4 style="color: white; margin: 0; font-weight: 700;">¡Bienvenido de vuelta!</h4>
|
| 379 |
+
</div>
|
| 380 |
+
<!-- Cuerpo -->
|
| 381 |
+
<div class="modal-body text-center py-4 px-4">
|
| 382 |
+
<h5 class="mb-1" style="font-weight: 600; color: #2d3748;">
|
| 383 |
+
Hola, <span id="welcomeUsername" style="color: #667eea;"></span> 👋
|
| 384 |
+
</h5>
|
| 385 |
+
<p class="text-muted mb-0" style="font-size: 0.9rem;">
|
| 386 |
+
Has iniciado sesión correctamente en el sistema de diagnóstico de Retinopatía Diabética.
|
| 387 |
+
</p>
|
| 388 |
+
</div>
|
| 389 |
+
<!-- Footer -->
|
| 390 |
+
<div class="modal-footer justify-content-center border-0 pt-0 pb-4">
|
| 391 |
+
<button type="button" class="btn btn-primary px-5" data-dismiss="modal" style="border-radius: 25px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none;">
|
| 392 |
+
Continuar al Dashboard
|
| 393 |
+
</button>
|
| 394 |
+
</div>
|
| 395 |
+
</div>
|
| 396 |
+
</div>
|
| 397 |
+
</div>
|
| 398 |
<script src="js/jquery.min.js"></script>
|
| 399 |
<script src="js/popper.min.js"></script>
|
| 400 |
<script src="js/moment.min.js"></script>
|
|
|
|
| 415 |
api.getSession().catch(() => { window.location.href = 'auth-login.html'; })
|
| 416 |
.then(r => { if (r && !r.success) window.location.href = 'auth-login.html'; });
|
| 417 |
</script>
|
| 418 |
+
<script>
|
| 419 |
+
// Mostrar modal de bienvenida si viene de un login reciente
|
| 420 |
+
$(document).ready(function() {
|
| 421 |
+
if (sessionStorage.getItem('justLoggedIn') === 'true') {
|
| 422 |
+
sessionStorage.removeItem('justLoggedIn');
|
| 423 |
+
api.getSession().then(function(response) {
|
| 424 |
+
if (response && response.success && response.user) {
|
| 425 |
+
$('#welcomeUsername').text(response.user.username);
|
| 426 |
+
setTimeout(function() {
|
| 427 |
+
$('#welcomeModal').modal('show');
|
| 428 |
+
}, 400);
|
| 429 |
+
}
|
| 430 |
+
});
|
| 431 |
+
}
|
| 432 |
+
});
|
| 433 |
+
</script>
|
| 434 |
<script src="js/gauge.min.js"></script>
|
| 435 |
<script src="js/jquery.sparkline.min.js"></script>
|
| 436 |
<script src="js/apexcharts.min.js"></script>
|