| | |
| | const DATA = [ |
| | { |
| | "name": "أمل احمد محمد مجرشي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/01.html" |
| | }, |
| | { |
| | "name": "قنوت محمد بن عبدالله آل حماد", |
| | "url": "https://stat2025-map.static.hf.space/EQ/02.html" |
| | }, |
| | { |
| | "name": "ريم بنت محمد بن عبدالعزيز الملحم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/03.html" |
| | }, |
| | { |
| | "name": "نوف سعود بن سالم الخثعمي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/04.html" |
| | }, |
| | { |
| | "name": "هيه بنت عبدالعزيز بن فرحان المزيني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/05.html" |
| | }, |
| | { |
| | "name": "جواهر عبدالله عامر القرني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/06.html" |
| | }, |
| | { |
| | "name": "حنان حمد بن صالح المهناء", |
| | "url": "https://stat2025-map.static.hf.space/EQ/07.html" |
| | }, |
| | { |
| | "name": "نبأ عادل بن عبدالكريم آل رضوان", |
| | "url": "https://stat2025-map.static.hf.space/EQ/08.html" |
| | }, |
| | { |
| | "name": "زهره علي بن حسن الجاسم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/09.html" |
| | }, |
| | { |
| | "name": "اسعد بن ماجد بن احمد الهاشم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/10.html" |
| | }, |
| | { |
| | "name": "مرتضى عبدالجليل بن عيسى الحكيم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/11.html" |
| | }, |
| | { |
| | "name": "فاطمه حسين بن ابراهيم القرقوش", |
| | "url": "https://stat2025-map.static.hf.space/EQ/12.html" |
| | }, |
| | { |
| | "name": "أريج صالح بن عبدالله الغامدي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/13.html" |
| | }, |
| | { |
| | "name": "أمل جعفر بن علي آل حماد", |
| | "url": "https://stat2025-map.static.hf.space/EQ/14.html" |
| | }, |
| | { |
| | "name": "ساره حسين بن عبدالهادي بوخمسين", |
| | "url": "https://stat2025-map.static.hf.space/EQ/15.html" |
| | }, |
| | { |
| | "name": "ندى ابراهيم بن علي المنصور", |
| | "url": "https://stat2025-map.static.hf.space/EQ/16.html" |
| | }, |
| | { |
| | "name": "طيبه فالح بن عبدالله الرويشد", |
| | "url": "https://stat2025-map.static.hf.space/EQ/17.html" |
| | }, |
| | { |
| | "name": "نجود عبدالعزيز بن عقيل العمري", |
| | "url": "https://stat2025-map.static.hf.space/EQ/18.html" |
| | }, |
| | { |
| | "name": "غاده سعد بن عبدالرحمن القحطاني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/19.html" |
| | }, |
| | { |
| | "name": "غشمه محمد بن سعد الشهراني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/20.html" |
| | }, |
| | { |
| | "name": "أمل صالح بن احمد آل مزعل", |
| | "url": "https://stat2025-map.static.hf.space/EQ/21.html" |
| | }, |
| | { |
| | "name": "لطيفه علي بن حسين النعيم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/22.html" |
| | }, |
| | { |
| | "name": "منيره سعد محمد القرني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/23.html" |
| | }, |
| | { |
| | "name": "زهراء بنت عايش بن علي الصاهود", |
| | "url": "https://stat2025-map.static.hf.space/EQ/24.html" |
| | }, |
| | { |
| | "name": "ساره خالد سليمان المحيسن", |
| | "url": "https://stat2025-map.static.hf.space/EQ/25.html" |
| | }, |
| | { |
| | "name": "لطيفه صالح بن عبدالرحمن العبد القادر", |
| | "url": "https://stat2025-map.static.hf.space/EQ/26.html" |
| | }, |
| | { |
| | "name": "فايزه محمد مسعود الحازمي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/27.html" |
| | }, |
| | { |
| | "name": "نور عبدالرحمن عبدالوهاب الدخيل", |
| | "url": "https://stat2025-map.static.hf.space/EQ/28.html" |
| | }, |
| | { |
| | "name": "فيصل تركي فيصل القحطاني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/29.html" |
| | }, |
| | { |
| | "name": "لولوه بدر بن حمد الصياح", |
| | "url": "https://stat2025-map.static.hf.space/EQ/30.html" |
| | }, |
| | { |
| | "name": "سراب حميد عبدالمجيد السليمان", |
| | "url": "https://stat2025-map.static.hf.space/EQ/31.html" |
| | }, |
| | { |
| | "name": "أروى سعيد بن عبدالله القحطاني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/32.html" |
| | }, |
| | { |
| | "name": "نيللي حسين عبدالله الجعص", |
| | "url": "https://stat2025-map.static.hf.space/EQ/33.html" |
| | }, |
| | { |
| | "name": "حنين محمد مبارك آل مبارك", |
| | "url": "https://stat2025-map.static.hf.space/EQ/34.html" |
| | }, |
| | { |
| | "name": "شيماء عبدالرحمن بن دحباش سودي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/35.html" |
| | }, |
| | { |
| | "name": "الجازي معيض هادي ال دعلان", |
| | "url": "https://stat2025-map.static.hf.space/EQ/36.html" |
| | }, |
| | { |
| | "name": "حصه عبداللطيف بن سعد الدوسري", |
| | "url": "https://stat2025-map.static.hf.space/EQ/37.html" |
| | }, |
| | { |
| | "name": "لين أحمد بن عبدالعزيز القصير", |
| | "url": "https://stat2025-map.static.hf.space/EQ/38.html" |
| | }, |
| | { |
| | "name": "خليفه عباس بن عبدالله الفرج", |
| | "url": "https://stat2025-map.static.hf.space/EQ/39.html" |
| | }, |
| | { |
| | "name": "شريفة إبراهيم العقيل", |
| | "url": "https://stat2025-map.static.hf.space/EQ/40.html" |
| | }, |
| | { |
| | "name": "سلافه عباس محمد العلوي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/41.html" |
| | }, |
| | { |
| | "name": "عبدالعزيز بن ناصر بن محمد الزرعه", |
| | "url": "https://stat2025-map.static.hf.space/EQ/42.html" |
| | }, |
| | { |
| | "name": "عبدالاله عبدالله بن عبدالله العيسى", |
| | "url": "https://stat2025-map.static.hf.space/EQ/43.html" |
| | }, |
| | { |
| | "name": "أحمد ابن عبود بن سلمان باقرين", |
| | "url": "https://stat2025-map.static.hf.space/EQ/44.html" |
| | }, |
| | { |
| | "name": "عمر عبدالله عبدالرحمن القاسم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/45.html" |
| | }, |
| | { |
| | "name": "ايمان عبدالعزيز بن صالح الصالح", |
| | "url": "https://stat2025-map.static.hf.space/EQ/46.html" |
| | }, |
| | { |
| | "name": "غفران احمد بن علي البقال", |
| | "url": "https://stat2025-map.static.hf.space/EQ/47.html" |
| | }, |
| | { |
| | "name": "اسراء محمد بن علي الاصيل", |
| | "url": "https://stat2025-map.static.hf.space/EQ/48.html" |
| | }, |
| | { |
| | "name": "ابرار بنت يوسف بن علي آل حماد", |
| | "url": "https://stat2025-map.static.hf.space/EQ/49.html" |
| | }, |
| | { |
| | "name": "حوراء زكي بن احمد آل عباس", |
| | "url": "https://stat2025-map.static.hf.space/EQ/50.html" |
| | }, |
| | { |
| | "name": "زكي بن عيسى بن عبدالله القفاص", |
| | "url": "https://stat2025-map.static.hf.space/EQ/51.html" |
| | }, |
| | { |
| | "name": "احمد علي بن عايض الحارثي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/52.html" |
| | }, |
| | { |
| | "name": "مهنا فهيد مساعد القثامي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/53.html" |
| | }, |
| | { |
| | "name": "جواهر فرحان بن فضي الرشيدي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/54.html" |
| | }, |
| | { |
| | "name": "فاطمه حسين محمد معشي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/55.html" |
| | }, |
| | { |
| | "name": "سحر عدنان محمدابراهيم سمرقندي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/56.html" |
| | }, |
| | { |
| | "name": "يعقوب حمد هادي مشول", |
| | "url": "https://stat2025-map.static.hf.space/EQ/57.html" |
| | }, |
| | { |
| | "name": "أماني مصطفى بن عبدالله الطيب", |
| | "url": "https://stat2025-map.static.hf.space/EQ/58.html" |
| | }, |
| | { |
| | "name": "احلام صالح معيوض العصيمي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/59.html" |
| | }, |
| | { |
| | "name": "روان سعود بن مرشد الرحيلي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/60.html" |
| | }, |
| | { |
| | "name": "عائشه سليمان بن نايف الحربي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/61.html" |
| | }, |
| | { |
| | "name": "صالح دلي بن عقلاء الشمري", |
| | "url": "https://stat2025-map.static.hf.space/EQ/62.html" |
| | }, |
| | { |
| | "name": "باقر عبدالله بن هاشم الهاشم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/63.html" |
| | }, |
| | { |
| | "name": "هيا عبدالله بن عبدالعزيز اليحيا", |
| | "url": "https://stat2025-map.static.hf.space/EQ/64.html" |
| | }, |
| | { |
| | "name": "منيره سعد بن احمد الجديدي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/65.html" |
| | }, |
| | { |
| | "name": "مصطفى احمد بن جمعه الرمضان", |
| | "url": "https://stat2025-map.static.hf.space/EQ/66.html" |
| | }, |
| | { |
| | "name": "سميه سامى بن احمد النعيم", |
| | "url": "https://stat2025-map.static.hf.space/EQ/67.html" |
| | }, |
| | { |
| | "name": "اسماء بنت محمد بن حسين العدساني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/68.html" |
| | }, |
| | { |
| | "name": "ساره عبدالحميد بن حسين البوحمد", |
| | "url": "https://stat2025-map.static.hf.space/EQ/69.html" |
| | }, |
| | { |
| | "name": "نوف صالح بن محمد السميح", |
| | "url": "https://stat2025-map.static.hf.space/EQ/70.html" |
| | }, |
| | { |
| | "name": "تركي وحيد بن عيسى المحيفيظ", |
| | "url": "https://stat2025-map.static.hf.space/EQ/71.html" |
| | }, |
| | { |
| | "name": "عقيله محمدحسين بن علي الجباره", |
| | "url": "https://stat2025-map.static.hf.space/EQ/72.html" |
| | }, |
| | { |
| | "name": "أمل بنت علي بن علي السماعيل", |
| | "url": "https://stat2025-map.static.hf.space/EQ/73.html" |
| | }, |
| | { |
| | "name": "محمد عبدالمنعم بن محمد العبدالقادر", |
| | "url": "https://stat2025-map.static.hf.space/EQ/74.html" |
| | }, |
| | { |
| | "name": "حسن عادل بن حسين الوصيبعي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/75.html" |
| | }, |
| | { |
| | "name": "ناصر عبدالله بن ناصر القحطاني", |
| | "url": "https://stat2025-map.static.hf.space/EQ/76.html" |
| | }, |
| | { |
| | "name": "محمد حمد بن محمد الفهادي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/77.html" |
| | }, |
| | { |
| | "name": "اسامه عمر عبده حمدي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/78.html" |
| | }, |
| | { |
| | "name": "محمد فهد محمد الحربي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/79.html" |
| | }, |
| | { |
| | "name": "عبدالمجيد مشعل محمد الحربي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/80.html" |
| | }, |
| | { |
| | "name": "فوز عائد نومان المطيري", |
| | "url": "https://stat2025-map.static.hf.space/EQ/81.html" |
| | }, |
| | { |
| | "name": "أحمد حمود محمد الحربي", |
| | "url": "https://stat2025-map.static.hf.space/EQ/82.html" |
| | } |
| | ] |
| |
|
| |
|
| |
|
| | function normalizeArabic(s) { |
| | if (!s) return ""; |
| | return String(s) |
| | .trim() |
| | .toLowerCase() |
| | .replace(/[\u064B-\u065F\u0670\u06D6-\u06ED]/g, "") |
| | .replace(/\u0640/g, "") |
| | .replace(/[إأآٱ]/g, "ا") |
| | .replace(/ى/g, "ي") |
| | .replace(/ة/g, "ه") |
| | .replace(/^ال\s+/g, "") |
| | .replace(/\s+/g, " "); |
| | } |
| |
|
| | function escapeHtml(str) { |
| | return String(str) |
| | .replaceAll("&", "&") |
| | .replaceAll("<", "<") |
| | .replaceAll(">", ">") |
| | .replaceAll('"', """) |
| | .replaceAll("'", "'"); |
| | } |
| |
|
| | function highlightMatch(name, rawQuery) { |
| | if (!rawQuery) return escapeHtml(name); |
| | const tokens = rawQuery.trim().split(/\s+/).filter(Boolean); |
| | if (!tokens.length) return escapeHtml(name); |
| |
|
| | const t = tokens[0]; |
| | const idx = name.indexOf(t); |
| | if (idx === -1) return escapeHtml(name); |
| |
|
| | const before = escapeHtml(name.slice(0, idx)); |
| | const mid = escapeHtml(name.slice(idx, idx + t.length)); |
| | const after = escapeHtml(name.slice(idx + t.length)); |
| | return `${before}<mark>${mid}</mark>${after}`; |
| | } |
| |
|
| | const elQ = document.getElementById("q"); |
| | const elResults = document.getElementById("results"); |
| | const elCount = document.getElementById("countPill"); |
| | const elTotal = document.getElementById("totalChip"); |
| | const toast = document.getElementById("toast"); |
| | const toastText = document.getElementById("toastText"); |
| |
|
| | elTotal.innerHTML = `إجمالي: <b>${DATA.length}</b>`; |
| |
|
| | function showToast(msg = "تم نسخ الرابط") { |
| | toastText.textContent = msg; |
| | toast.classList.add("show"); |
| | clearTimeout(window.__toastT); |
| | window.__toastT = setTimeout(() => toast.classList.remove("show"), 1200); |
| | } |
| |
|
| | async function copyLink(url) { |
| | try { |
| | await navigator.clipboard.writeText(url); |
| | showToast(); |
| | } catch (e) { |
| | const ta = document.createElement("textarea"); |
| | ta.value = url; |
| | document.body.appendChild(ta); |
| | ta.select(); |
| | document.execCommand("copy"); |
| | document.body.removeChild(ta); |
| | showToast(); |
| | } |
| | } |
| |
|
| | function renderResults(list, rawQuery) { |
| | elResults.innerHTML = ""; |
| |
|
| | if (!list.length) { |
| | elCount.textContent = "النتائج: 0"; |
| | elResults.innerHTML = `<div class="empty">لا توجد نتائج</div>`; |
| | return; |
| | } |
| |
|
| | elCount.textContent = `النتائج: ${list.length}`; |
| | const frag = document.createDocumentFragment(); |
| |
|
| | list.forEach(item => { |
| | const row = document.createElement("div"); |
| | row.className = "result"; |
| |
|
| | const nm = document.createElement("div"); |
| | nm.className = "name"; |
| | nm.innerHTML = highlightMatch(item.name, rawQuery); |
| |
|
| | const actions = document.createElement("div"); |
| | actions.className = "actions"; |
| |
|
| | const open = document.createElement("a"); |
| | open.className = "openBtn"; |
| | open.href = item.url; |
| | open.target = "_blank"; |
| | open.rel = "noopener"; |
| | open.innerHTML = `فتح <span aria-hidden="true">↗</span>`; |
| |
|
| | const copy = document.createElement("button"); |
| | copy.className = "copyBtn"; |
| | copy.type = "button"; |
| | copy.innerHTML = `نسخ <span aria-hidden="true">⧉</span>`; |
| | copy.addEventListener("click", () => copyLink(item.url)); |
| |
|
| | actions.appendChild(open); |
| | actions.appendChild(copy); |
| |
|
| | row.appendChild(nm); |
| | row.appendChild(actions); |
| |
|
| | frag.appendChild(row); |
| | }); |
| |
|
| | elResults.appendChild(frag); |
| | } |
| |
|
| | function doSearch() { |
| | const raw = (elQ.value || "").trim(); |
| | const q = normalizeArabic(raw); |
| |
|
| | if (!q) { |
| | elCount.textContent = "النتائج: 0"; |
| | elResults.innerHTML = ""; |
| | return; |
| | } |
| |
|
| | const tokens = q.split(" ").filter(Boolean); |
| |
|
| | const matched = DATA.filter(d => { |
| | const nameNorm = normalizeArabic(d.name); |
| | return tokens.every(t => nameNorm.includes(t)); |
| | }); |
| |
|
| | matched.sort((a, b) => { |
| | const al = (a.name || "").length; |
| | const bl = (b.name || "").length; |
| | if (al !== bl) return al - bl; |
| | return (a.name || "").localeCompare(b.name || "", "ar"); |
| | }); |
| |
|
| | renderResults(matched, raw); |
| | } |
| |
|
| | document.getElementById("btnSearch").addEventListener("click", doSearch); |
| | document.getElementById("btnClear").addEventListener("click", () => { |
| | elQ.value = ""; |
| | elQ.focus(); |
| | elResults.innerHTML = ""; |
| | elCount.textContent = "النتائج: 0"; |
| | }); |
| |
|
| | let t = null; |
| | elQ.addEventListener("input", () => { |
| | clearTimeout(t); |
| | t = setTimeout(doSearch, 140); |
| | }); |
| |
|
| | elQ.addEventListener("keydown", (e) => { |
| | if (e.key === "Enter") doSearch(); |
| | }); |
| |
|
| | |
| | try { |
| | const last = localStorage.getItem("maps_last_query"); |
| | if (last) { |
| | elQ.value = last; |
| | doSearch(); |
| | } |
| | elQ.addEventListener("input", () => { |
| | localStorage.setItem("maps_last_query", elQ.value || ""); |
| | }); |
| | } catch(_){} |
| |
|
| | elCount.textContent = "النتائج: 0"; |
| |
|