Spaces:
Running
Running
pas fonctionnel et toutes les donnes sont manquantes
Browse files- README.md +9 -5
- index.html +310 -18
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: undefined
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,311 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Vaccination Insight Atlas - Tableau de Bord</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
| 12 |
+
<script>
|
| 13 |
+
tailwind.config = {
|
| 14 |
+
theme: {
|
| 15 |
+
extend: {
|
| 16 |
+
colors: {
|
| 17 |
+
primary: '#3B82F6',
|
| 18 |
+
secondary: '#10B981'
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
</script>
|
| 24 |
+
<style>
|
| 25 |
+
.gradient-bg {
|
| 26 |
+
background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
|
| 27 |
+
}
|
| 28 |
+
.card-hover {
|
| 29 |
+
transition: all 0.3s ease;
|
| 30 |
+
}
|
| 31 |
+
.card-hover:hover {
|
| 32 |
+
transform: translateY(-5px);
|
| 33 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
| 34 |
+
}
|
| 35 |
+
.stat-card {
|
| 36 |
+
background: rgba(255, 255, 255, 0.1);
|
| 37 |
+
backdrop-filter: blur(10px);
|
| 38 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
</head>
|
| 42 |
+
<body class="bg-gray-50 min-h-screen">
|
| 43 |
+
<!-- Header -->
|
| 44 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 45 |
+
<div class="container mx-auto px-4 py-6">
|
| 46 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 47 |
+
<div class="flex items-center space-x-3 mb-4 md:mb-0">
|
| 48 |
+
<i data-feather="shield" class="w-8 h-8"></i>
|
| 49 |
+
<h1 class="text-2xl font-bold">Vaccination Insight Atlas</h1>
|
| 50 |
+
<span class="text-sm bg-white/20 px-2 py-1 rounded-full">💉 Suivi en Temps Réel</span>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="flex items-center space-x-4">
|
| 53 |
+
<div class="flex items-center space-x-2">
|
| 54 |
+
<i data-feather="map-pin" class="w-5 h-5"></i>
|
| 55 |
+
<span class="text-lg">Hodh El Chargui</span>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
</header>
|
| 59 |
+
|
| 60 |
+
<!-- Main Content -->
|
| 61 |
+
<main class="container mx-auto px-4 py-8">
|
| 62 |
+
<!-- Control Panel -->
|
| 63 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
|
| 64 |
+
<!-- Wilaya Selection -->
|
| 65 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 66 |
+
<label class="block text-sm font-semibold text-gray-700 mb-3">
|
| 67 |
+
<i data-feather="map" class="w-4 h-4 inline mr-2"></i>
|
| 68 |
+
Sélectionnez une Wilaya
|
| 69 |
+
</label>
|
| 70 |
+
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 71 |
+
<option value="Hodh El Chargui" selected>Hodh El Chargui</option>
|
| 72 |
+
</select>
|
| 73 |
+
</div>
|
| 74 |
+
|
| 75 |
+
<!-- Commune Selection -->
|
| 76 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 77 |
+
<label class="block text-sm font-semibold text-gray-700 mb-3">
|
| 78 |
+
<i data-feather="home" class="w-4 h-4 inline mr-2"></i>
|
| 79 |
+
Sélectionnez une Commune
|
| 80 |
+
</label>
|
| 81 |
+
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent" multiple>
|
| 82 |
+
<option value="Beribavar">Beribavar</option>
|
| 83 |
+
<option value="Bangou">Bangou</option>
|
| 84 |
+
<option value="Néma">Néma</option>
|
| 85 |
+
<option value="Ghlig Ehel Beye">Ghlig Ehel Beye</option>
|
| 86 |
+
<option value="Bassikounou">Bassikounou</option>
|
| 87 |
+
<option value="Amourj">Amourj</option>
|
| 88 |
+
<option value="Feirenni">Feirenni</option>
|
| 89 |
+
</select>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<!-- Energy Source Selection -->
|
| 93 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 94 |
+
<label class="block text-sm font-semibold text-gray-700 mb-3">
|
| 95 |
+
<i data-feather="battery" class="w-4 h-4 inline mr-2"></i>
|
| 96 |
+
Sources d'Énergie
|
| 97 |
+
</label>
|
| 98 |
+
<select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent" multiple>
|
| 99 |
+
<option value="Énergie solaire">Énergie solaire</option>
|
| 100 |
+
<option value="Électricité">Électricité</option>
|
| 101 |
+
<option value="Gaz">Gaz</option>
|
| 102 |
+
</select>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<!-- Sliders Section -->
|
| 107 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
| 108 |
+
<!-- Children Age Slider -->
|
| 109 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 110 |
+
<label class="block text-sm font-semibold text-gray-700 mb-4">
|
| 111 |
+
<i data-feather="users" class="w-4 h-4 inline mr-2"></i>
|
| 112 |
+
Âge des Enfants (Minimum)
|
| 113 |
+
</label>
|
| 114 |
+
<input type="range" min="0" max="100" value="0" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider">
|
| 115 |
+
<div class="flex justify-between text-xs text-gray-500 mt-2">
|
| 116 |
+
<span>0</span>
|
| 117 |
+
<span>100</span>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<!-- Zero Dose Slider -->
|
| 122 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 123 |
+
<label class="block text-sm font-semibold text-gray-700 mb-4">
|
| 124 |
+
<i data-feather="alert-triangle" class="w-4 h-4 inline mr-2"></i>
|
| 125 |
+
Enfants Zéro Dose (Maximum)
|
| 126 |
+
</label>
|
| 127 |
+
<input type="range" min="0" max="100" value="0" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider">
|
| 128 |
+
<div class="flex justify-between text-xs text-gray-500 mt-2">
|
| 129 |
+
<span>0</span>
|
| 130 |
+
<span>100</span>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<!-- Statistics Cards -->
|
| 136 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
|
| 137 |
+
<div class="stat-card rounded-xl p-4 text-center text-white">
|
| 138 |
+
<i data-feather="users" class="w-6 h-6 mx-auto mb-2"></i>
|
| 139 |
+
<div class="text-2xl font-bold">24,910</div>
|
| 140 |
+
<div class="text-sm opacity-80">Enfants en âge</div>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="stat-card rounded-xl p-4 text-center text-white">
|
| 143 |
+
<i data-feather="check-circle" class="w-6 h-6 mx-auto mb-2"></i>
|
| 144 |
+
<div class="text-2xl font-bold">18,742</div>
|
| 145 |
+
<div class="text-sm opacity-80">Vaccinés</div>
|
| 146 |
+
</div>
|
| 147 |
+
<div class="stat-card rounded-xl p-4 text-center text-white">
|
| 148 |
+
<i data-feather="alert-triangle" class="w-6 h-6 mx-auto mb-2"></i>
|
| 149 |
+
<div class="text-2xl font-bold">6,168</div>
|
| 150 |
+
<div class="text-sm opacity-80">Zéro Dose</div>
|
| 151 |
+
</div>
|
| 152 |
+
<div class="stat-card rounded-xl p-4 text-center text-white">
|
| 153 |
+
<i data-feather="map-pin" class="w-6 h-6 mx-auto mb-2"></i>
|
| 154 |
+
<div class="text-2xl font-bold">89%</div>
|
| 155 |
+
<div class="text-sm opacity-80">Couverture</div>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
|
| 159 |
+
<!-- Interactive Map -->
|
| 160 |
+
<div class="bg-white rounded-xl shadow-lg p-6 mb-8 card-hover">
|
| 161 |
+
<div class="flex items-center justify-between mb-4">
|
| 162 |
+
<h2 class="text-xl font-semibold text-gray-800">
|
| 163 |
+
<i data-feather="map" class="w-5 h-5 inline mr-2"></i>
|
| 164 |
+
Carte Interactive des Points de Vaccination
|
| 165 |
+
</h2>
|
| 166 |
+
<button class="bg-primary hover:bg-blue-600 text-white px-4 py-2 rounded-lg transition duration-200">
|
| 167 |
+
<i data-feather="refresh-cw" class="w-4 h-4 inline mr-2"></i>
|
| 168 |
+
Actualiser
|
| 169 |
+
</button>
|
| 170 |
+
</div>
|
| 171 |
+
<div id="vaccination-map" class="w-full h-96 rounded-lg border border-gray-200">
|
| 172 |
+
<!-- Map placeholder -->
|
| 173 |
+
<div class="w-full h-full flex items-center justify-center text-gray-500">
|
| 174 |
+
<i data-feather="map" class="w-12 h-12 mb-2"></i>
|
| 175 |
+
<p>Carte en cours de chargement...</p>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
|
| 180 |
+
<!-- Charts Grid -->
|
| 181 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
| 182 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 183 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 184 |
+
<i data-feather="bar-chart-2" class="w-5 h-5 inline mr-2"></i>
|
| 185 |
+
Répartition par Commune
|
| 186 |
+
</h3>
|
| 187 |
+
<div id="commune-bar-chart" class="w-full h-64"></div>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 190 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 191 |
+
<i data-feather="pie-chart" class="w-5 h-5 inline mr-2"></i>
|
| 192 |
+
Sources d'Énergie
|
| 193 |
+
</h3>
|
| 194 |
+
<div id="energy-pie-chart" class="w-full h-64"></div>
|
| 195 |
+
</div>
|
| 196 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 197 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 198 |
+
<i data-feather="trending-up" class="w-5 h-5 inline mr-2"></i>
|
| 199 |
+
Couverture Vaccinale
|
| 200 |
+
</h3>
|
| 201 |
+
<div id="vaccination-coverage-chart" class="w-full h-64"></div>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="bg-white rounded-xl shadow-lg p-6 card-hover">
|
| 204 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 205 |
+
<i data-feather="activity" class="w-5 h-5 inline mr-2"></i>
|
| 206 |
+
Corrélation
|
| 207 |
+
</h3>
|
| 208 |
+
<div id="correlation-scatter-chart" class="w-full h-64"></div>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<!-- Distance Table -->
|
| 213 |
+
<div class="bg-white rounded-xl shadow-lg p-6 mb-8 card-hover">
|
| 214 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">
|
| 215 |
+
<i data-feather="navigation" class="w-5 h-5 inline mr-2"></i>
|
| 216 |
+
Tableau des Distances
|
| 217 |
+
</h3>
|
| 218 |
+
<div class="overflow-x-auto">
|
| 219 |
+
<table class="w-full table-auto">
|
| 220 |
+
<thead class="bg-gray-50">
|
| 221 |
+
<tr>
|
| 222 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 223 |
+
Commune
|
| 224 |
+
</th>
|
| 225 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 226 |
+
Point de Vaccination
|
| 227 |
+
</th>
|
| 228 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 229 |
+
Distance (km)
|
| 230 |
+
</th>
|
| 231 |
+
</tr>
|
| 232 |
+
</thead>
|
| 233 |
+
<tbody class="divide-y divide-gray-200">
|
| 234 |
+
<tr class="hover:bg-gray-50">
|
| 235 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 236 |
+
Beribavar
|
| 237 |
+
</td>
|
| 238 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 239 |
+
القاسمية
|
| 240 |
+
</td>
|
| 241 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 242 |
+
0.00
|
| 243 |
+
</td>
|
| 244 |
+
</tr>
|
| 245 |
+
<tr class="hover:bg-gray-50">
|
| 246 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 247 |
+
Beribavar
|
| 248 |
+
</td>
|
| 249 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 250 |
+
السليمانية
|
| 251 |
+
</td>
|
| 252 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 253 |
+
السليمانية
|
| 254 |
+
</td>
|
| 255 |
+
<td class="px-4 py-3 text-sm text-gray-900">
|
| 256 |
+
0.85
|
| 257 |
+
</td>
|
| 258 |
+
</tr>
|
| 259 |
+
</tbody>
|
| 260 |
+
</table>
|
| 261 |
+
</div>
|
| 262 |
+
</div>
|
| 263 |
+
|
| 264 |
+
<!-- Alert Section -->
|
| 265 |
+
<div id="alert" class="hidden bg-yellow-50 border border-yellow-200 rounded-xl p-4 mb-8">
|
| 266 |
+
<div class="flex items-center">
|
| 267 |
+
<i data-feather="alert-triangle" class="w-5 h-5 text-yellow-600 mr-3"></i>
|
| 268 |
+
<div>
|
| 269 |
+
<h4 class="text-sm font-semibold text-yellow-800">
|
| 270 |
+
Information
|
| 271 |
+
</h4>
|
| 272 |
+
<p class="text-sm text-yellow-700">
|
| 273 |
+
Données en temps réel - Mise à jour automatique
|
| 274 |
+
</p>
|
| 275 |
+
</div>
|
| 276 |
+
</div>
|
| 277 |
+
</main>
|
| 278 |
+
|
| 279 |
+
<!-- Footer -->
|
| 280 |
+
<footer class="gradient-bg text-white py-8 mt-12">
|
| 281 |
+
<div class="container mx-auto px-4 text-center">
|
| 282 |
+
<div class="flex justify-center space-x-6 mb-4">
|
| 283 |
+
<i data-feather="heart" class="w-5 h-5"></i>
|
| 284 |
+
<p class="text-sm opacity-80">
|
| 285 |
+
Système de Suivi Vaccinal - Hodh El Chargui
|
| 286 |
+
</p>
|
| 287 |
+
<p class="text-xs opacity-60 mt-2">
|
| 288 |
+
Développé pour optimiser la couverture vaccinale
|
| 289 |
+
</p>
|
| 290 |
+
</div>
|
| 291 |
+
</footer>
|
| 292 |
+
|
| 293 |
+
<script>
|
| 294 |
+
feather.replace();
|
| 295 |
+
|
| 296 |
+
// Interactive slider effects
|
| 297 |
+
document.querySelectorAll('.slider').forEach(slider => {
|
| 298 |
+
slider.addEventListener('input', function() {
|
| 299 |
+
const value = (this.value - this.min) / (this.max - this.min) * 100;
|
| 300 |
+
this.style.background = `linear-gradient(to right, #3B82F6 ${value}%, #E5E7EB ${value}%)`;
|
| 301 |
+
});
|
| 302 |
+
});
|
| 303 |
+
|
| 304 |
+
// Initialize with gradient
|
| 305 |
+
document.querySelectorAll('.slider').forEach(slider => {
|
| 306 |
+
const value = (slider.value - slider.min) / (slider.max - slider.min) * 100;
|
| 307 |
+
slider.style.background = `linear-gradient(to right, #3B82F6 ${value}%, #E5E7EB ${value}%)`;
|
| 308 |
+
});
|
| 309 |
+
</script>
|
| 310 |
+
</body>
|
| 311 |
</html>
|