Update templates/index.html
Browse files- templates/index.html +7 -21
templates/index.html
CHANGED
@@ -41,28 +41,15 @@
|
|
41 |
.navbar-shadow {
|
42 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
43 |
}
|
44 |
-
/* Loader Styles */
|
45 |
-
#loader {
|
46 |
-
position: fixed;
|
47 |
-
top: 0;
|
48 |
-
left: 0;
|
49 |
-
width: 100%;
|
50 |
-
height: 100%;
|
51 |
-
background: rgba(0, 0, 0, 0.5);
|
52 |
-
z-index: 1000;
|
53 |
-
display: flex;
|
54 |
-
align-items: center;
|
55 |
-
justify-content: center;
|
56 |
-
}
|
57 |
</style>
|
58 |
</head>
|
59 |
<body class="min-h-screen">
|
60 |
<!-- Loader -->
|
61 |
-
<div id="loader" class="hidden">
|
62 |
-
<
|
63 |
-
<
|
64 |
-
<
|
65 |
-
</
|
66 |
</div>
|
67 |
|
68 |
<!-- Barre de navigation -->
|
@@ -242,9 +229,8 @@
|
|
242 |
container.appendChild(div);
|
243 |
}
|
244 |
|
245 |
-
// Affichage du loader
|
246 |
-
|
247 |
-
form.addEventListener('submit', function() {
|
248 |
document.getElementById('loader').classList.remove('hidden');
|
249 |
});
|
250 |
</script>
|
|
|
41 |
.navbar-shadow {
|
42 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
43 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
</style>
|
45 |
</head>
|
46 |
<body class="min-h-screen">
|
47 |
<!-- Loader -->
|
48 |
+
<div id="loader" class="hidden fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center z-50">
|
49 |
+
<div class="flex flex-col items-center">
|
50 |
+
<div class="animate-spin rounded-full h-16 w-16 border-t-4 border-blue-500"></div>
|
51 |
+
<p class="mt-4 text-white text-lg">Veuillez patienter...</p>
|
52 |
+
</div>
|
53 |
</div>
|
54 |
|
55 |
<!-- Barre de navigation -->
|
|
|
229 |
container.appendChild(div);
|
230 |
}
|
231 |
|
232 |
+
// Affichage du loader dès la soumission du formulaire
|
233 |
+
document.querySelector('form').addEventListener('submit', function() {
|
|
|
234 |
document.getElementById('loader').classList.remove('hidden');
|
235 |
});
|
236 |
</script>
|