الدليل الثقافي

* { box-sizing: border-box; margin: 0; padding: 0; } .dir-wrap { font-family: Tahoma, Arial, sans-serif; direction: rtl; max-width: 900px; margin: 0 auto; padding: 20px; } .dir-search { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; direction: rtl; margin-bottom: 16px; } .dir-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; } .dir-filter { padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px; cursor: pointer; font-size: 13px; background: #f5f5f5; } .dir-filter.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; } .dir-count { font-size: 13px; color: #888; margin-bottom: 16px; } .dir-person { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #efefef; align-items: flex-start; } .dir-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; color: #555; flex-shrink: 0; } .dir-name { font-size: 15px; font-weight: bold; margin-bottom: 4px; } .dir-spec { font-size: 12px; color: #666; margin-bottom: 4px; } .dir-org { font-size: 12px; color: #999; margin-bottom: 6px; } .dir-tag { font-size: 11px; background: #f0f0f0; padding: 3px 8px; border-radius: 4px; margin-left: 4px; }
الكل أكاديميون صحفيون دبلوماسيون باحثون مثقفون
var people = [ {name:"د. عبدالحميد الحكيم", spec:"أكاديمي", field:"العلاقات الدولية", org:"جامعة الملك عبدالعزيز", x:"@abdalhamid"}, {name:"غسان شربل", spec:"صحفي", field:"السياسة العربية", org:"الشرق الأوسط", x:"@ghassancharbel"}, {name:"د. خالد الدخيل", spec:"أكاديمي", field:"علم الاجتماع السياسي", org:"جامعة الملك سعود", x:"@khaleddakheel"}, {name:"د. منى سليمان", spec:"باحث", field:"الحركات الإسلامية", org:"مركز دراسات التطرف", x:"@mona_sl"}, ]; var af="الكل"; function rd(list){ document.getElementById("dc").textContent=list.length+" شخصية"; document.getElementById("dl").innerHTML=list.map(function(p){ return '
'+p.name.charAt(0)+'
'+p.name+'
'+p.spec+' · '+p.field+'
'+p.org+'
'+(p.x?''+p.x+'':'')+'
'; }).join(''); } function fd(){ var q=document.getElementById("ds").value.toLowerCase(); var list=people; if(af!=="الكل") list=list.filter(function(p){return p.spec===af;}); if(q) list=list.filter(function(p){return p.name.includes(q)||p.field.includes(q);}); rd(list); } function sf(f,el){ af=f; document.querySelectorAll('.dir-filter').forEach(function(x){x.classList.remove('active');}); el.classList.add('active'); fd(); } rd(people);