Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
|
@@ -1,331 +1,639 @@
|
|
| 1 |
-
|
| 2 |
const DATA = [
|
| 3 |
{
|
| 4 |
-
"name": "ا
|
| 5 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 6 |
},
|
| 7 |
{
|
| 8 |
-
"name": "
|
| 9 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 10 |
},
|
| 11 |
{
|
| 12 |
-
"name": "
|
| 13 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 14 |
},
|
| 15 |
{
|
| 16 |
-
"name": "
|
| 17 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 18 |
},
|
| 19 |
{
|
| 20 |
-
"name": "
|
| 21 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 22 |
},
|
| 23 |
{
|
| 24 |
-
"name": "
|
| 25 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 26 |
},
|
| 27 |
{
|
| 28 |
-
"name": "
|
| 29 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 30 |
},
|
| 31 |
{
|
| 32 |
-
"name": "
|
| 33 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 34 |
},
|
| 35 |
{
|
| 36 |
-
"name": "
|
| 37 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 38 |
},
|
| 39 |
{
|
| 40 |
-
"name": "
|
| 41 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 42 |
},
|
| 43 |
{
|
| 44 |
-
"name": "م
|
| 45 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 46 |
},
|
| 47 |
{
|
| 48 |
-
"name": "
|
| 49 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 50 |
},
|
| 51 |
{
|
| 52 |
-
"name": "
|
| 53 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 54 |
},
|
| 55 |
{
|
| 56 |
-
"name": "
|
| 57 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 58 |
},
|
| 59 |
{
|
| 60 |
-
"name": "
|
| 61 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 62 |
},
|
| 63 |
{
|
| 64 |
-
"name": "
|
| 65 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 66 |
},
|
| 67 |
{
|
| 68 |
-
"name": "
|
| 69 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 70 |
},
|
| 71 |
{
|
| 72 |
-
"name": "
|
| 73 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 74 |
},
|
| 75 |
{
|
| 76 |
-
"name": "
|
| 77 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 78 |
},
|
| 79 |
{
|
| 80 |
-
"name": "
|
| 81 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 82 |
},
|
| 83 |
{
|
| 84 |
-
"name": "
|
| 85 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 86 |
},
|
| 87 |
{
|
| 88 |
-
"name": "ل
|
| 89 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
},
|
| 91 |
{
|
| 92 |
"name": "ايمان عبدالعزيز بن صالح الصالح",
|
| 93 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 94 |
},
|
| 95 |
{
|
| 96 |
-
"name": "
|
| 97 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 98 |
},
|
| 99 |
{
|
| 100 |
-
"name": "
|
| 101 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 102 |
},
|
| 103 |
{
|
| 104 |
-
"name": "
|
| 105 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 106 |
},
|
| 107 |
{
|
| 108 |
-
"name": "
|
| 109 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 110 |
},
|
| 111 |
{
|
| 112 |
-
"name": "
|
| 113 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 114 |
},
|
| 115 |
{
|
| 116 |
-
"name": "
|
| 117 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 118 |
},
|
| 119 |
{
|
| 120 |
-
"name": "
|
| 121 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 122 |
},
|
| 123 |
{
|
| 124 |
-
"name": "س
|
| 125 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 126 |
},
|
| 127 |
{
|
| 128 |
-
"name": "
|
| 129 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 130 |
},
|
| 131 |
{
|
| 132 |
-
"name": "
|
| 133 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
},
|
| 135 |
{
|
| 136 |
"name": "حنين محمد مبارك آل مبارك",
|
| 137 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 138 |
},
|
| 139 |
{
|
| 140 |
-
"name": "
|
| 141 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 142 |
},
|
| 143 |
{
|
| 144 |
-
"name": "
|
| 145 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
},
|
| 147 |
{
|
| 148 |
-
"name": "
|
| 149 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 150 |
},
|
| 151 |
{
|
| 152 |
-
"name": "
|
| 153 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 154 |
},
|
| 155 |
{
|
| 156 |
-
"name": "
|
| 157 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 158 |
},
|
| 159 |
{
|
| 160 |
-
"name": "
|
| 161 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
},
|
| 163 |
{
|
| 164 |
"name": "سلافه عباس محمد العلوي",
|
| 165 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 166 |
},
|
| 167 |
{
|
| 168 |
-
"name": "
|
| 169 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 170 |
},
|
| 171 |
{
|
| 172 |
-
"name": "
|
| 173 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 174 |
},
|
| 175 |
{
|
| 176 |
-
"name": "
|
| 177 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 178 |
},
|
| 179 |
{
|
| 180 |
-
"name": "
|
| 181 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 182 |
},
|
| 183 |
{
|
| 184 |
-
"name": "ل
|
| 185 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 186 |
},
|
| 187 |
{
|
| 188 |
-
"name": "
|
| 189 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 190 |
},
|
| 191 |
{
|
| 192 |
-
"name": "
|
| 193 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 194 |
},
|
| 195 |
{
|
| 196 |
-
"name": "ا
|
| 197 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 198 |
},
|
| 199 |
{
|
| 200 |
-
"name": "
|
| 201 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 202 |
},
|
| 203 |
{
|
| 204 |
-
"name": "
|
| 205 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 206 |
},
|
| 207 |
{
|
| 208 |
-
"name": "ا
|
| 209 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 210 |
},
|
| 211 |
{
|
| 212 |
-
"name": "
|
| 213 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 214 |
},
|
| 215 |
{
|
| 216 |
-
"name": "
|
| 217 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 218 |
},
|
| 219 |
{
|
| 220 |
-
"name": "
|
| 221 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 222 |
},
|
| 223 |
{
|
| 224 |
-
"name": "
|
| 225 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 226 |
},
|
| 227 |
{
|
| 228 |
-
"name": "
|
| 229 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 230 |
},
|
| 231 |
{
|
| 232 |
-
"name": "
|
| 233 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 234 |
},
|
| 235 |
{
|
| 236 |
-
"name": "ا
|
| 237 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 238 |
},
|
| 239 |
{
|
| 240 |
-
"name": "
|
| 241 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 242 |
},
|
| 243 |
{
|
| 244 |
-
"name": "
|
| 245 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 246 |
},
|
| 247 |
{
|
| 248 |
-
"name": "
|
| 249 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 250 |
},
|
| 251 |
{
|
| 252 |
-
"name": "
|
| 253 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 254 |
},
|
| 255 |
{
|
| 256 |
-
"name": "ف
|
| 257 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 258 |
},
|
| 259 |
{
|
| 260 |
-
"name": "
|
| 261 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 262 |
},
|
| 263 |
{
|
| 264 |
-
"name": "
|
| 265 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 266 |
},
|
| 267 |
{
|
| 268 |
-
"name": "
|
| 269 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 270 |
},
|
| 271 |
{
|
| 272 |
-
"name": "
|
| 273 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 274 |
},
|
| 275 |
{
|
| 276 |
-
"name": "
|
| 277 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 278 |
},
|
| 279 |
{
|
| 280 |
-
"name": "
|
| 281 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 282 |
},
|
| 283 |
{
|
| 284 |
-
"name": "
|
| 285 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 286 |
},
|
| 287 |
{
|
| 288 |
-
"name": "
|
| 289 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 290 |
},
|
| 291 |
{
|
| 292 |
-
"name": "
|
| 293 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 294 |
},
|
| 295 |
{
|
| 296 |
-
"name": "محمد
|
| 297 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 298 |
},
|
| 299 |
{
|
| 300 |
-
"name": "
|
| 301 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
},
|
| 303 |
{
|
| 304 |
"name": "ناصر عبدالله بن ناصر القحطاني",
|
| 305 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 306 |
},
|
| 307 |
{
|
| 308 |
-
"name": "
|
| 309 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 310 |
},
|
| 311 |
{
|
| 312 |
-
"name": "ا
|
| 313 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 314 |
},
|
| 315 |
{
|
| 316 |
-
"name": "ا
|
| 317 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 318 |
},
|
| 319 |
{
|
| 320 |
-
"name": "
|
| 321 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 322 |
},
|
| 323 |
{
|
| 324 |
-
"name": "
|
| 325 |
-
"url": "https://stat2025-map.static.hf.space/
|
| 326 |
},
|
| 327 |
{
|
| 328 |
-
"name": "عبدال
|
| 329 |
-
"url": "https://stat2025-map.static.hf.space/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
}
|
| 331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
const DATA = [
|
| 2 |
{
|
| 3 |
+
"name": "أبرار ناصر المطيري",
|
| 4 |
+
"url": "https://stat2025-map.static.hf.space/FIS/13.html"
|
| 5 |
},
|
| 6 |
{
|
| 7 |
+
"name": "أحمد جابر بن احمد الشهري",
|
| 8 |
+
"url": "https://stat2025-map.static.hf.space/Teg/17.html"
|
| 9 |
},
|
| 10 |
{
|
| 11 |
+
"name": "أحمد حمود محمد الحربي",
|
| 12 |
+
"url": "https://stat2025-map.static.hf.space/BCS/59.html"
|
| 13 |
},
|
| 14 |
{
|
| 15 |
+
"name": "أحمد طاهر بن عدنان الشرفا",
|
| 16 |
+
"url": "https://stat2025-map.static.hf.space/Teg/29.html"
|
| 17 |
},
|
| 18 |
{
|
| 19 |
+
"name": "أروى سعيد بن عبدالله القحطاني",
|
| 20 |
+
"url": "https://stat2025-map.static.hf.space/BCS/29.html"
|
| 21 |
},
|
| 22 |
{
|
| 23 |
+
"name": "أروى عبدالله سعد العقيل",
|
| 24 |
+
"url": "https://stat2025-map.static.hf.space/Teg/13.html"
|
| 25 |
},
|
| 26 |
{
|
| 27 |
+
"name": "أماني مصطفى بن عبدالله الطيب",
|
| 28 |
+
"url": "https://stat2025-map.static.hf.space/BCS/42.html"
|
| 29 |
},
|
| 30 |
{
|
| 31 |
+
"name": "أمل احمد محمد مجرشي",
|
| 32 |
+
"url": "https://stat2025-map.static.hf.space/BCS/01.html"
|
| 33 |
},
|
| 34 |
{
|
| 35 |
+
"name": "أمل بنت علي بن علي السماعيل",
|
| 36 |
+
"url": "https://stat2025-map.static.hf.space/BCS/50.html"
|
| 37 |
},
|
| 38 |
{
|
| 39 |
+
"name": "أمل جعفر بن علي آل حماد",
|
| 40 |
+
"url": "https://stat2025-map.static.hf.space/BCS/40.html"
|
| 41 |
},
|
| 42 |
{
|
| 43 |
+
"name": "أمل صالح بن احمد آل مزعل",
|
| 44 |
+
"url": "https://stat2025-map.static.hf.space/BCS/06.html"
|
| 45 |
},
|
| 46 |
{
|
| 47 |
+
"name": "أميره عبدالله ابن احمد الرشيد",
|
| 48 |
+
"url": "https://stat2025-map.static.hf.space/Teg/19.html"
|
| 49 |
},
|
| 50 |
{
|
| 51 |
+
"name": "احلام صالح معيوض العصيمي",
|
| 52 |
+
"url": "https://stat2025-map.static.hf.space/BCS/43.html"
|
| 53 |
},
|
| 54 |
{
|
| 55 |
+
"name": "احمد متعب بن عوض الحربي",
|
| 56 |
+
"url": "https://stat2025-map.static.hf.space/BCS/56.html"
|
| 57 |
},
|
| 58 |
{
|
| 59 |
+
"name": "احمد يحي علي هزازي",
|
| 60 |
+
"url": "https://stat2025-map.static.hf.space/Teg/01.html"
|
| 61 |
},
|
| 62 |
{
|
| 63 |
+
"name": "اسراء محمد بن علي الاصيل",
|
| 64 |
+
"url": "https://stat2025-map.static.hf.space/BCS/39.html"
|
| 65 |
},
|
| 66 |
{
|
| 67 |
+
"name": "اسعد بن ماجد بن احمد الهاشم",
|
| 68 |
+
"url": "https://stat2025-map.static.hf.space/BCS/37.html"
|
| 69 |
},
|
| 70 |
{
|
| 71 |
+
"name": "اسماء بنت محمد بن حسين العدساني",
|
| 72 |
+
"url": "https://stat2025-map.static.hf.space/BCS/52.html"
|
| 73 |
},
|
| 74 |
{
|
| 75 |
+
"name": "اشواق عبدالكريم الحنطي",
|
| 76 |
+
"url": "https://stat2025-map.static.hf.space/FIS/07.html"
|
| 77 |
},
|
| 78 |
{
|
| 79 |
+
"name": "اشواق فيحان شوردي المطيري",
|
| 80 |
+
"url": "https://stat2025-map.static.hf.space/Teg/39.html"
|
| 81 |
},
|
| 82 |
{
|
| 83 |
+
"name": "الجازي معيض هادي ال دعلان",
|
| 84 |
+
"url": "https://stat2025-map.static.hf.space/BCS/36.html"
|
| 85 |
},
|
| 86 |
{
|
| 87 |
+
"name": "العنود محمد بن عبدالله",
|
| 88 |
+
"url": "https://stat2025-map.static.hf.space/Teg/05.html"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "الهنوف صالح محمد المبارك",
|
| 92 |
+
"url": "https://stat2025-map.static.hf.space/Teg/21.html"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "امينه حسين بن صالح الشواكر",
|
| 96 |
+
"url": "https://stat2025-map.static.hf.space/Teg/34.html"
|
| 97 |
},
|
| 98 |
{
|
| 99 |
"name": "ايمان عبدالعزيز بن صالح الصالح",
|
| 100 |
+
"url": "https://stat2025-map.static.hf.space/BCS/09.html"
|
| 101 |
},
|
| 102 |
{
|
| 103 |
+
"name": "ايمان عبدالعزيز بن صالح الصالح",
|
| 104 |
+
"url": "https://stat2025-map.static.hf.space/BCS/23.html"
|
| 105 |
},
|
| 106 |
{
|
| 107 |
+
"name": "باسمه احمد بن محمد القرني",
|
| 108 |
+
"url": "https://stat2025-map.static.hf.space/BCS/31.html"
|
| 109 |
},
|
| 110 |
{
|
| 111 |
+
"name": "باقر عبدالله بن هاشم الهاشم",
|
| 112 |
+
"url": "https://stat2025-map.static.hf.space/BCS/47.html"
|
| 113 |
},
|
| 114 |
{
|
| 115 |
+
"name": "بخيته عادل احمد الدوسري",
|
| 116 |
+
"url": "https://stat2025-map.static.hf.space/BCS/12.html"
|
| 117 |
},
|
| 118 |
{
|
| 119 |
+
"name": "بدر عبدالعزيز بن عبدالرحمن العبدالعظيم",
|
| 120 |
+
"url": "https://stat2025-map.static.hf.space/Teg/36.html"
|
| 121 |
},
|
| 122 |
{
|
| 123 |
+
"name": "جمانة محمد بن علي ال دغرير",
|
| 124 |
+
"url": "https://stat2025-map.static.hf.space/Teg/22.html"
|
| 125 |
},
|
| 126 |
{
|
| 127 |
+
"name": "جمانه عزيز الخريصي",
|
| 128 |
+
"url": "https://stat2025-map.static.hf.space/FIS/04.html"
|
| 129 |
},
|
| 130 |
{
|
| 131 |
+
"name": "حسن عادل بن حسين الوصيبعي",
|
| 132 |
+
"url": "https://stat2025-map.static.hf.space/BCS/48.html"
|
| 133 |
},
|
| 134 |
{
|
| 135 |
+
"name": "حسن عبدالله ابوكبوس",
|
| 136 |
+
"url": "https://stat2025-map.static.hf.space/FIS/01.html"
|
| 137 |
},
|
| 138 |
{
|
| 139 |
+
"name": "حسين علي بن صالح الربيعه",
|
| 140 |
+
"url": "https://stat2025-map.static.hf.space/BCS/19.html"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "حصة القرناس",
|
| 144 |
+
"url": "https://stat2025-map.static.hf.space/Teg/30.html"
|
| 145 |
},
|
| 146 |
{
|
| 147 |
"name": "حنين محمد مبارك آل مبارك",
|
| 148 |
+
"url": "https://stat2025-map.static.hf.space/BCS/28.html"
|
| 149 |
},
|
| 150 |
{
|
| 151 |
+
"name": "خديجة حسين هنبوبه",
|
| 152 |
+
"url": "https://stat2025-map.static.hf.space/FIS/11.html"
|
| 153 |
},
|
| 154 |
{
|
| 155 |
+
"name": "خلود سعود بن خليوي الخالدي",
|
| 156 |
+
"url": "https://stat2025-map.static.hf.space/Teg/09.html"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"name": "دانه احمد الدريب",
|
| 160 |
+
"url": "https://stat2025-map.static.hf.space/FIS/09.html"
|
| 161 |
},
|
| 162 |
{
|
| 163 |
+
"name": "ديما علي هادي حكمي",
|
| 164 |
+
"url": "https://stat2025-map.static.hf.space/Teg/04.html"
|
| 165 |
},
|
| 166 |
{
|
| 167 |
+
"name": "روان سعود بن مرشد الرحيلي",
|
| 168 |
+
"url": "https://stat2025-map.static.hf.space/BCS/45.html"
|
| 169 |
},
|
| 170 |
{
|
| 171 |
+
"name": "ريم بنت محمد بن عبدالعزيز الملحم",
|
| 172 |
+
"url": "https://stat2025-map.static.hf.space/BCS/04.html"
|
| 173 |
},
|
| 174 |
{
|
| 175 |
+
"name": "ريم مساعد بن عثمان",
|
| 176 |
+
"url": "https://stat2025-map.static.hf.space/Teg/15.html"
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "ريما عبدالله السحيباني",
|
| 180 |
+
"url": "https://stat2025-map.static.hf.space/FIS/10.html"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"name": "زهراء بنت عايش بن علي الصاهود",
|
| 184 |
+
"url": "https://stat2025-map.static.hf.space/BCS/13.html"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"name": "سارة صالح القحطاني",
|
| 188 |
+
"url": "https://stat2025-map.static.hf.space/FIS/12.html"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "ساره حسين بن عبدالهادي بوخمسين",
|
| 192 |
+
"url": "https://stat2025-map.static.hf.space/BCS/18.html"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name": "ساره خالد سليمان المحيسن",
|
| 196 |
+
"url": "https://stat2025-map.static.hf.space/BCS/20.html"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name": "سراب حميد عبدالمجيد السليمان",
|
| 200 |
+
"url": "https://stat2025-map.static.hf.space/BCS/25.html"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "سكينه حسين بن علي آل خلف",
|
| 204 |
+
"url": "https://stat2025-map.static.hf.space/Teg/28.html"
|
| 205 |
},
|
| 206 |
{
|
| 207 |
"name": "سلافه عباس محمد العلوي",
|
| 208 |
+
"url": "https://stat2025-map.static.hf.space/BCS/30.html"
|
| 209 |
},
|
| 210 |
{
|
| 211 |
+
"name": "سميه سامى بن احمد النعيم",
|
| 212 |
+
"url": "https://stat2025-map.static.hf.space/BCS/51.html"
|
| 213 |
},
|
| 214 |
{
|
| 215 |
+
"name": "شريفه ابراهيم بن عبدالله العقيل",
|
| 216 |
+
"url": "https://stat2025-map.static.hf.space/BCS/33.html"
|
| 217 |
},
|
| 218 |
{
|
| 219 |
+
"name": "شيماء عبدالرحمن بن دحباش سودي",
|
| 220 |
+
"url": "https://stat2025-map.static.hf.space/BCS/26.html"
|
| 221 |
},
|
| 222 |
{
|
| 223 |
+
"name": "شيماء نجم بن عبدالله الرويشد",
|
| 224 |
+
"url": "https://stat2025-map.static.hf.space/Teg/24.html"
|
| 225 |
},
|
| 226 |
{
|
| 227 |
+
"name": "صالح دلي بن عقلاء الشمري",
|
| 228 |
+
"url": "https://stat2025-map.static.hf.space/BCS/46.html"
|
| 229 |
},
|
| 230 |
{
|
| 231 |
+
"name": "صالحه محمد بن مزراق مجرشي",
|
| 232 |
+
"url": "https://stat2025-map.static.hf.space/Teg/02.html"
|
| 233 |
},
|
| 234 |
{
|
| 235 |
+
"name": "طيبه فالح بن عبدالله الرويشد",
|
| 236 |
+
"url": "https://stat2025-map.static.hf.space/BCS/11.html"
|
| 237 |
},
|
| 238 |
{
|
| 239 |
+
"name": "عائشه سليمان بن نايف الحربي",
|
| 240 |
+
"url": "https://stat2025-map.static.hf.space/BCS/44.html"
|
| 241 |
},
|
| 242 |
{
|
| 243 |
+
"name": "عبدالله سالم الهاجري",
|
| 244 |
+
"url": "https://stat2025-map.static.hf.space/FIS/06.html"
|
| 245 |
},
|
| 246 |
{
|
| 247 |
+
"name": "عبدالمجيد مشعل محمد الحربي",
|
| 248 |
+
"url": "https://stat2025-map.static.hf.space/BCS/58.html"
|
| 249 |
},
|
| 250 |
{
|
| 251 |
+
"name": "عبدالهادي عون بن سعييد القحطاني",
|
| 252 |
+
"url": "https://stat2025-map.static.hf.space/BCS/05.html"
|
| 253 |
},
|
| 254 |
{
|
| 255 |
+
"name": "عبير علي حسين كريري",
|
| 256 |
+
"url": "https://stat2025-map.static.hf.space/Teg/31.html"
|
| 257 |
},
|
| 258 |
{
|
| 259 |
+
"name": "عقيله محمدحسين بن علي الجباره",
|
| 260 |
+
"url": "https://stat2025-map.static.hf.space/BCS/53.html"
|
| 261 |
},
|
| 262 |
{
|
| 263 |
+
"name": "علاء عبدالله بن جواد الوسمي",
|
| 264 |
+
"url": "https://stat2025-map.static.hf.space/Teg/37.html"
|
| 265 |
},
|
| 266 |
{
|
| 267 |
+
"name": "علي ابراهيم محمد الغامدي",
|
| 268 |
+
"url": "https://stat2025-map.static.hf.space/Teg/11.html"
|
| 269 |
},
|
| 270 |
{
|
| 271 |
+
"name": "علي حسين بن جعفر آل مبيريك",
|
| 272 |
+
"url": "https://stat2025-map.static.hf.space/Teg/26.html"
|
| 273 |
},
|
| 274 |
{
|
| 275 |
+
"name": "علي عيسى بن سعيد الهاشم",
|
| 276 |
+
"url": "https://stat2025-map.static.hf.space/Teg/27.html"
|
| 277 |
},
|
| 278 |
{
|
| 279 |
+
"name": "غاده سعد بن عبدالرحمن القحطاني",
|
| 280 |
+
"url": "https://stat2025-map.static.hf.space/BCS/08.html"
|
| 281 |
},
|
| 282 |
{
|
| 283 |
+
"name": "غشمه محمد بن سعد الشهراني",
|
| 284 |
+
"url": "https://stat2025-map.static.hf.space/BCS/14.html"
|
| 285 |
},
|
| 286 |
{
|
| 287 |
+
"name": "فايزه محمد مسعود الحازمي",
|
| 288 |
+
"url": "https://stat2025-map.static.hf.space/BCS/22.html"
|
| 289 |
},
|
| 290 |
{
|
| 291 |
+
"name": "فهد علي بن عبدالخالق الغامدي",
|
| 292 |
+
"url": "https://stat2025-map.static.hf.space/Teg/03.html"
|
| 293 |
},
|
| 294 |
{
|
| 295 |
+
"name": "فوز عائد نومان المطيري",
|
| 296 |
+
"url": "https://stat2025-map.static.hf.space/BCS/61.html"
|
| 297 |
},
|
| 298 |
{
|
| 299 |
+
"name": "فيصل تركي فيصل القحطاني",
|
| 300 |
+
"url": "https://stat2025-map.static.hf.space/BCS/34.html"
|
| 301 |
},
|
| 302 |
{
|
| 303 |
+
"name": "قنوت محمد بن عبدالله آل حماد",
|
| 304 |
+
"url": "https://stat2025-map.static.hf.space/BCS/03.html"
|
| 305 |
},
|
| 306 |
{
|
| 307 |
+
"name": "لطيفه صالح بن عبدالرحمن العبد القادر",
|
| 308 |
+
"url": "https://stat2025-map.static.hf.space/BCS/32.html"
|
| 309 |
},
|
| 310 |
{
|
| 311 |
+
"name": "لطيفه علي بن حسين النعيم",
|
| 312 |
+
"url": "https://stat2025-map.static.hf.space/BCS/16.html"
|
| 313 |
},
|
| 314 |
{
|
| 315 |
+
"name": "لولوه بدر بن حمد الصياح",
|
| 316 |
+
"url": "https://stat2025-map.static.hf.space/BCS/21.html"
|
| 317 |
},
|
| 318 |
{
|
| 319 |
+
"name": "لين أحمد بن عبدالعزيز القصير",
|
| 320 |
+
"url": "https://stat2025-map.static.hf.space/BCS/35.html"
|
| 321 |
},
|
| 322 |
{
|
| 323 |
+
"name": "مؤيد محمد بن عبدالله السعيد",
|
| 324 |
+
"url": "https://stat2025-map.static.hf.space/Teg/12.html"
|
| 325 |
},
|
| 326 |
{
|
| 327 |
+
"name": "محمد سعد بن غربي",
|
| 328 |
+
"url": "https://stat2025-map.static.hf.space/Teg/38.html"
|
| 329 |
},
|
| 330 |
{
|
| 331 |
+
"name": "محمد صالح الخضير",
|
| 332 |
+
"url": "https://stat2025-map.static.hf.space/FIS/14.html"
|
| 333 |
},
|
| 334 |
{
|
| 335 |
+
"name": "محمد فهد محمد الحربي",
|
| 336 |
+
"url": "https://stat2025-map.static.hf.space/BCS/60.html"
|
| 337 |
},
|
| 338 |
{
|
| 339 |
+
"name": "محمد ماجد بن محمد القصاب",
|
| 340 |
+
"url": "https://stat2025-map.static.hf.space/Teg/10.html"
|
| 341 |
},
|
| 342 |
{
|
| 343 |
+
"name": "مرتضى عبدالجليل بن عيسى الحكيم",
|
| 344 |
+
"url": "https://stat2025-map.static.hf.space/BCS/38.html"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"name": "مرتضى محمد بن ابراهيم السيهاتى",
|
| 348 |
+
"url": "https://stat2025-map.static.hf.space/Teg/06.html"
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"name": "مروة سلمان بن سلمان العاشور",
|
| 352 |
+
"url": "https://stat2025-map.static.hf.space/Teg/18.html"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"name": "مريم خالد احمد السليمان",
|
| 356 |
+
"url": "https://stat2025-map.static.hf.space/Teg/20.html"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"name": "مريم محمد عبدالله الدوسري",
|
| 360 |
+
"url": "https://stat2025-map.static.hf.space/Teg/08.html"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"name": "مشاعل احمد عبدالعزيز السويعي",
|
| 364 |
+
"url": "https://stat2025-map.static.hf.space/Teg/25.html"
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"name": "مصطفى احمد بن جمعه الرمضان",
|
| 368 |
+
"url": "https://stat2025-map.static.hf.space/BCS/49.html"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"name": "مفلح مشبب علي القحطاني",
|
| 372 |
+
"url": "https://stat2025-map.static.hf.space/FIS/02.html"
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"name": "منى خلف العنزي",
|
| 376 |
+
"url": "https://stat2025-map.static.hf.space/FIS/05.html"
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"name": "منيره سعد بن احمد الجديدي",
|
| 380 |
+
"url": "https://stat2025-map.static.hf.space/BCS/54.html"
|
| 381 |
},
|
| 382 |
{
|
| 383 |
"name": "ناصر عبدالله بن ناصر القحطاني",
|
| 384 |
+
"url": "https://stat2025-map.static.hf.space/BCS/57.html"
|
| 385 |
},
|
| 386 |
{
|
| 387 |
+
"name": "ناهد عبداللطيف بن محمد الخوفي",
|
| 388 |
+
"url": "https://stat2025-map.static.hf.space/Teg/35.html"
|
| 389 |
},
|
| 390 |
{
|
| 391 |
+
"name": "نايف علي ال قحصان",
|
| 392 |
+
"url": "https://stat2025-map.static.hf.space/FIS/03.html"
|
| 393 |
},
|
| 394 |
{
|
| 395 |
+
"name": "نايف مطر الشمري",
|
| 396 |
+
"url": "https://stat2025-map.static.hf.space/FIS/15.html"
|
| 397 |
},
|
| 398 |
{
|
| 399 |
+
"name": "نبأ عادل بن عبدالكريم آل رضوان",
|
| 400 |
+
"url": "https://stat2025-map.static.hf.space/BCS/15.html"
|
| 401 |
},
|
| 402 |
{
|
| 403 |
+
"name": "نجاح شوعي محمد حكمي",
|
| 404 |
+
"url": "https://stat2025-map.static.hf.space/Teg/14.html"
|
| 405 |
},
|
| 406 |
{
|
| 407 |
+
"name": "نجود عبدالعزيز بن عقيل العمري",
|
| 408 |
+
"url": "https://stat2025-map.static.hf.space/BCS/24.html"
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"name": "ندى ابراهيم بن علي المنصور",
|
| 412 |
+
"url": "https://stat2025-map.static.hf.space/BCS/17.html"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"name": "نوت فواز بن حميد الشمري",
|
| 416 |
+
"url": "https://stat2025-map.static.hf.space/Teg/32.html"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"name": "نوره عبدالله بن زهير الرزقي",
|
| 420 |
+
"url": "https://stat2025-map.static.hf.space/BCS/10.html"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"name": "نوف سعود بن سالم الخثعمي",
|
| 424 |
+
"url": "https://stat2025-map.static.hf.space/BCS/02.html"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"name": "نوف صالح بن محمد السميح",
|
| 428 |
+
"url": "https://stat2025-map.static.hf.space/BCS/55.html"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"name": "نوف صالح عبدالله الدوسري",
|
| 432 |
+
"url": "https://stat2025-map.static.hf.space/Teg/16.html"
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"name": "نيللي حسين عبدالله الجعص",
|
| 436 |
+
"url": "https://stat2025-map.static.hf.space/BCS/27.html"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"name": "هيله خالد بن عبدالله العليط",
|
| 440 |
+
"url": "https://stat2025-map.static.hf.space/Teg/33.html"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"name": "وضحاء نائف سعد الشريف",
|
| 444 |
+
"url": "https://stat2025-map.static.hf.space/BCS/07.html"
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"name": "وعد احمد حكمي",
|
| 448 |
+
"url": "https://stat2025-map.static.hf.space/Teg/23.html"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"name": "ياسمين عيسى المطوع",
|
| 452 |
+
"url": "https://stat2025-map.static.hf.space/FIS/08.html"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "يحي علي بن يحي المسين",
|
| 456 |
+
"url": "https://stat2025-map.static.hf.space/BCS/41.html"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"name": "يوسف بن احمد بن",
|
| 460 |
+
"url": "https://stat2025-map.static.hf.space/Teg/07.html"
|
| 461 |
+
}
|
| 462 |
+
];
|
| 463 |
+
|
| 464 |
+
|
| 465 |
+
function normalizeArabic(s) {
|
| 466 |
+
if (!s) return "";
|
| 467 |
+
return String(s)
|
| 468 |
+
.trim()
|
| 469 |
+
.toLowerCase()
|
| 470 |
+
.replace(/[\u064B-\u065F\u0670\u06D6-\u06ED]/g, "")
|
| 471 |
+
.replace(/\u0640/g, "")
|
| 472 |
+
.replace(/[إأآٱ]/g, "ا")
|
| 473 |
+
.replace(/ى/g, "ي")
|
| 474 |
+
.replace(/ة/g, "ه")
|
| 475 |
+
.replace(/^ال\s+/g, "")
|
| 476 |
+
.replace(/\s+/g, " ");
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
function escapeHtml(str) {
|
| 480 |
+
return String(str)
|
| 481 |
+
.replaceAll("&", "&")
|
| 482 |
+
.replaceAll("<", "<")
|
| 483 |
+
.replaceAll(">", ">")
|
| 484 |
+
.replaceAll('"', """)
|
| 485 |
+
.replaceAll("'", "'");
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
function highlightMatch(name, rawQuery) {
|
| 489 |
+
if (!rawQuery) return escapeHtml(name);
|
| 490 |
+
const tokens = rawQuery.trim().split(/\s+/).filter(Boolean);
|
| 491 |
+
if (!tokens.length) return escapeHtml(name);
|
| 492 |
+
|
| 493 |
+
const t = tokens[0];
|
| 494 |
+
const idx = name.indexOf(t);
|
| 495 |
+
if (idx === -1) return escapeHtml(name);
|
| 496 |
+
|
| 497 |
+
const before = escapeHtml(name.slice(0, idx));
|
| 498 |
+
const mid = escapeHtml(name.slice(idx, idx + t.length));
|
| 499 |
+
const after = escapeHtml(name.slice(idx + t.length));
|
| 500 |
+
return `${before}<mark>${mid}</mark>${after}`;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
const elQ = document.getElementById("q");
|
| 504 |
+
const elResults = document.getElementById("results");
|
| 505 |
+
const elCount = document.getElementById("countPill");
|
| 506 |
+
const elTotal = document.getElementById("totalChip");
|
| 507 |
+
const toast = document.getElementById("toast");
|
| 508 |
+
const toastText = document.getElementById("toastText");
|
| 509 |
+
|
| 510 |
+
elTotal.innerHTML = `إجمالي: <b>${DATA.length}</b>`;
|
| 511 |
+
|
| 512 |
+
function showToast(msg = "تم نسخ الرابط") {
|
| 513 |
+
toastText.textContent = msg;
|
| 514 |
+
toast.classList.add("show");
|
| 515 |
+
clearTimeout(window.__toastT);
|
| 516 |
+
window.__toastT = setTimeout(() => toast.classList.remove("show"), 1200);
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
async function copyLink(url) {
|
| 520 |
+
try {
|
| 521 |
+
await navigator.clipboard.writeText(url);
|
| 522 |
+
showToast();
|
| 523 |
+
} catch (e) {
|
| 524 |
+
const ta = document.createElement("textarea");
|
| 525 |
+
ta.value = url;
|
| 526 |
+
document.body.appendChild(ta);
|
| 527 |
+
ta.select();
|
| 528 |
+
document.execCommand("copy");
|
| 529 |
+
document.body.removeChild(ta);
|
| 530 |
+
showToast();
|
| 531 |
+
}
|
| 532 |
+
}
|
| 533 |
+
|
| 534 |
+
function renderResults(list, rawQuery) {
|
| 535 |
+
elResults.innerHTML = "";
|
| 536 |
+
|
| 537 |
+
if (!list.length) {
|
| 538 |
+
elCount.textContent = "النتائج: 0";
|
| 539 |
+
elResults.innerHTML = `<div class="empty">لا توجد نتائج</div>`;
|
| 540 |
+
return;
|
| 541 |
}
|
| 542 |
+
|
| 543 |
+
elCount.textContent = `النتائج: ${list.length}`;
|
| 544 |
+
const frag = document.createDocumentFragment();
|
| 545 |
+
|
| 546 |
+
list.forEach(item => {
|
| 547 |
+
const row = document.createElement("div");
|
| 548 |
+
row.className = "result";
|
| 549 |
+
|
| 550 |
+
const nm = document.createElement("div");
|
| 551 |
+
nm.className = "name";
|
| 552 |
+
nm.innerHTML = highlightMatch(item.name, rawQuery);
|
| 553 |
+
|
| 554 |
+
const actions = document.createElement("div");
|
| 555 |
+
actions.className = "actions";
|
| 556 |
+
|
| 557 |
+
const open = document.createElement("a");
|
| 558 |
+
open.className = "openBtn";
|
| 559 |
+
open.href = item.url;
|
| 560 |
+
open.target = "_blank";
|
| 561 |
+
open.rel = "noopener";
|
| 562 |
+
open.innerHTML = `فتح <span aria-hidden="true">↗</span>`;
|
| 563 |
+
|
| 564 |
+
const copy = document.createElement("button");
|
| 565 |
+
copy.className = "copyBtn";
|
| 566 |
+
copy.type = "button";
|
| 567 |
+
copy.innerHTML = `نسخ <span aria-hidden="true">⧉</span>`;
|
| 568 |
+
copy.addEventListener("click", () => copyLink(item.url));
|
| 569 |
+
|
| 570 |
+
actions.appendChild(open);
|
| 571 |
+
actions.appendChild(copy);
|
| 572 |
+
|
| 573 |
+
row.appendChild(nm);
|
| 574 |
+
row.appendChild(actions);
|
| 575 |
+
|
| 576 |
+
frag.appendChild(row);
|
| 577 |
+
});
|
| 578 |
+
|
| 579 |
+
elResults.appendChild(frag);
|
| 580 |
+
}
|
| 581 |
+
|
| 582 |
+
function doSearch() {
|
| 583 |
+
const raw = (elQ.value || "").trim();
|
| 584 |
+
const q = normalizeArabic(raw);
|
| 585 |
+
|
| 586 |
+
if (!q) {
|
| 587 |
+
elCount.textContent = "النتائج: 0";
|
| 588 |
+
elResults.innerHTML = "";
|
| 589 |
+
return;
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
const tokens = q.split(" ").filter(Boolean);
|
| 593 |
+
|
| 594 |
+
const matched = DATA.filter(d => {
|
| 595 |
+
const nameNorm = normalizeArabic(d.name);
|
| 596 |
+
return tokens.every(t => nameNorm.includes(t));
|
| 597 |
+
});
|
| 598 |
+
|
| 599 |
+
matched.sort((a, b) => {
|
| 600 |
+
const al = (a.name || "").length;
|
| 601 |
+
const bl = (b.name || "").length;
|
| 602 |
+
if (al !== bl) return al - bl;
|
| 603 |
+
return (a.name || "").localeCompare(b.name || "", "ar");
|
| 604 |
+
});
|
| 605 |
+
|
| 606 |
+
renderResults(matched, raw);
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
document.getElementById("btnSearch").addEventListener("click", doSearch);
|
| 610 |
+
document.getElementById("btnClear").addEventListener("click", () => {
|
| 611 |
+
elQ.value = "";
|
| 612 |
+
elQ.focus();
|
| 613 |
+
elResults.innerHTML = "";
|
| 614 |
+
elCount.textContent = "النتائج: 0";
|
| 615 |
+
});
|
| 616 |
+
|
| 617 |
+
let t = null;
|
| 618 |
+
elQ.addEventListener("input", () => {
|
| 619 |
+
clearTimeout(t);
|
| 620 |
+
t = setTimeout(doSearch, 140);
|
| 621 |
+
});
|
| 622 |
+
|
| 623 |
+
elQ.addEventListener("keydown", (e) => {
|
| 624 |
+
if (e.key === "Enter") doSearch();
|
| 625 |
+
});
|
| 626 |
+
|
| 627 |
+
// حفظ آخر بحث
|
| 628 |
+
try {
|
| 629 |
+
const last = localStorage.getItem("maps_last_query");
|
| 630 |
+
if (last) {
|
| 631 |
+
elQ.value = last;
|
| 632 |
+
doSearch();
|
| 633 |
+
}
|
| 634 |
+
elQ.addEventListener("input", () => {
|
| 635 |
+
localStorage.setItem("maps_last_query", elQ.value || "");
|
| 636 |
+
});
|
| 637 |
+
} catch(_){}
|
| 638 |
+
|
| 639 |
+
elCount.textContent = "النتائج: 0";
|