تخطى إلى المحتوى
الرئيسية
المقالات
الكتب
تطوير الذات
الفقه
عن فهد
تواصل
قناة كنوز الكلام
يوتيوب
document.getElementById(‘ff-track’).innerHTML=’اختبار التشغيل: JavaScript يعمل’;(function(){ ‘use strict’; const API=’h ttps://api.aladhan.com/v1/calendarByCity’; =60; const AR_WEEK const THRESHOLD=20; const ALERT_MINUTE S={ Sun:’الأحد’,Mon:’الاثنين’,Tue:’الثلاثاء’, Wed:’الأربعاء’,Thu:’الخميس’,Fri:’الجمعة’,Sat:’السبت’ أكتو }; const AR_MONTH=[ ‘يناير’,’فبراير’,’مارس’,’أبريل’,’مايو’,’يونيو’, ‘يوليو’,’أغسطس’,’سبتمبر’, ‘بر’,’نوفمبر’,’ديسمبر’ ]; const CITIES=[ {ar:’الرياض’,city:’Riyadh’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,main:true,force:true,method:4}, flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’المدينة’,city:’Madinah’,country:’Saudi Arabi {ar:’الدمام’,city:’Dammam’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’القصيم’,city:’Buraydah’,country:’Saudi Arabia’ ,a’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’مكة’,city:’Makkah’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’تبوك’,city:’Tabuk’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, iyadh’,group:’السعودية’,force:true,method:4}, {ar:’أبوظبي’,city:’Abu Dhabi’,country:’United Arab Emirates’,flag: {ar:’عرعر’,city:’Arar’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’أبها’,city:’Abha’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/Riyadh’,group:’السعودية’,force:true,method:4}, {ar:’جازان’,city:’Jazan’,country:’Saudi Arabia’,flag:’🇸🇦’,tz:’Asia/ R’🇦🇪’,tz:’Asia/Dubai’,group:’الإمارات’,main:true,method:8}, {ar:’الكويت’,city:’Kuwait City’,country:’Kuwait’,flag:’🇰🇼’,tz:’Asia/Kuwait’,group:’الكويت’,main:true,method:9}, {ar:’الدوحة’,city:’Doha’,country:’Qatar’,flag:’🇶🇦’,tz:’Asia/Qatar’,group:’قطر’,main:true,method:10}, {ar:’المنامة’,city:’Manama’,country:’Bahrain’,flag:’🇧🇭’,tz:’Asia/Bahrain’,group:’البحرين’,main:true,method:8}, {ar:’مسقط’,city:’Muscat’,country:’Oman’,flag:’🇴🇲’,tz:’Asia/Muscat’,group:’عُمان’,main:true,method:8}, country:’Iraq’,flag:’🇮🇶’,tz:’Asia/Baghdad’,group:’العراق’}, {ar:’الموصل’,city:’Mosul’,country {ar:’صلالة’,city:’Salalah’,country:’Oman’,flag:’🇴🇲’,tz:’Asia/Muscat’,group:’عُمان’,method:8}, {ar:’صنعاء’,city:’Sanaa’,country:’Yemen’,flag:’🇾🇪’,tz:’Asia/Aden’,group:’اليمن’,main:true}, {ar:’عدن’,city:’Aden’,country:’Yemen’,flag:’🇾🇪’,tz:’Asia/Aden’,group:’اليمن’}, {ar:’المكلا’,city:’Al Mukalla’,country:’Yemen’,flag:’🇾🇪’,tz:’Asia/Aden’,group:’اليمن’}, {ar:’بغداد’,city:’Baghdad’,country:’Iraq’,flag:’🇮🇶’,tz:’Asia/Baghdad’,group:’العراق’,main:true}, {ar:’البصرة’,city:’Basra’ ,:’Iraq’,flag:’🇮🇶’,tz:’Asia/Baghdad’,group:’العراق’}, {ar:’القائم’,city:’Al Qaim’,country:’Iraq’,flag:’🇮🇶’,tz:’Asia/Baghdad’,group:’العراق’}, {ar:’عمّان’,city:’Amman’,country:’Jordan’,flag:’🇯🇴’,tz:’Asia/Amman’,group:’الأردن’,main:true}, {ar:’القدس’,city:’Jerusalem’,country:’Palestine’,flag:’🇵🇸’,tz:’Asia/Jerusalem’,group:’فلسطين’,main:true}, {ar:’بيروت’,city:’Beirut’,country:’Lebanon’,flag:’🇱🇧’,tz:’Asia/Beirut’,group:’لبنان’,main:true}, {ar:’دمشق’,city:’Damascus’,country:’Syria’,flag:’🇸🇾’,tz:’Asia/Damascus’,group:’سوريا’,main:true}, {ar:’القاهرة’,city:’Cairo’,country:’Egypt’,flag:’🇪🇬’,tz:’Africa/Cairo’,group:’مصر’,main:true,method:5}, ‘,tz:’Africa/Mogadishu’,group:’الصومال’}, {ar:’جيبوتي’,city:’Djibouti’,country:’Djibout {ar:’سيوة’,city:’Siwa’,country:’Egypt’,flag:’🇪🇬’,tz:’Africa/Cairo’,group:’مصر’,method:5}, {ar:’أسوان’,city:’Aswan’,country:’Egypt’,flag:’🇪🇬’,tz:’Africa/Cairo’,group:’مصر’,method:5}, {ar:’الخرطوم’,city:’Khartoum’,country:’Sudan’,flag:’🇸🇩’,tz:’Africa/Khartoum’,group:’السودان’,main:true}, {ar:’بورتسودان’,city:’Port Sudan’,country:’Sudan’,flag:’🇸🇩’,tz:’Africa/Khartoum’,group:’السودان’}, {ar:’الفاشر’,city:’El Fasher’,country:’Sudan’,flag:’🇸🇩’,tz:’Africa/Khartoum’,group:’السودان’}, {ar:’مقديشو’,city:’Mogadishu’,country:’Somalia’,flag:’🇸🇴’,tz:’Africa/Mogadishu’,group:’الصومال’,main:true}, {ar:’غاروي’,city:’Garowe’,country:’Somalia’,flag:’ 🇸🇴i’,flag:’🇩🇯’,tz:’Africa/Djibouti’,group:’جيبوتي’,main:true}, {ar:’موروني’,city:’Moroni’,country:’Comoros’,flag:’🇰🇲’,tz:’Indian/Comoro’,group:’جزر القمر’,main:true}, {ar:’طرابلس’,city:’Tripoli’,country:’Libya’,flag:’🇱🇾’,tz:’Africa/Tripoli’,group:’ليبيا’,main:true}, {ar:’بنغازي’,city:’Benghazi’,country:’Libya’,flag:’🇱🇾’,tz:’Africa/Tripoli’,group:’ليبيا’}, {ar:’سبها’,city:’Sabha’,country:’Libya’,flag:’🇱🇾’,tz:’Africa/Tripoli’,group:’ليبيا’}, {ar:’تونس’,city:’Tunis’,country:’Tunisia’,flag:’🇹🇳’,tz:’Africa/Tunis’,group:’تونس’,main:true,method:18}, {ar:’الجزائر’,city:’Algiers’,country:’Algeria’,flag:’🇩🇿’,tz:’Africa/Algiers’,group:’الجزائر’,main:true,method:19}, {ar:’تندوف’,city:’Tindouf’,country:’Algeria’,flag:’🇩🇿’,tz:’Africa/Algiers’,group:’الجزائر’,method:19}, ById(‘ff-track’); const title=()=>document.getElementById(‘ff-title’); function parts(tz,date){ const p={ {ar:’تمنراست’,city:’Tamanrasset’,country:’Algeria’,flag:’🇩🇿’,tz:’Africa/Algiers’,group:’الجزائر’,method:19}, {ar:’الرباط’,city:’Rabat’,country:’Morocco’,flag:’🇲🇦’,tz:’Africa/Casablanca’,group:’المغرب’,main:true,method:21}, {ar:’وجدة’,city:’Oujda’,country:’Morocco’,flag:’🇲🇦’,tz:’Africa/Casablanca’,group:’المغرب’,method:21}, {ar:’أكادير’,city:’Agadir’,country:’Morocco’,flag:’🇲🇦’,tz:’Africa/Casablanca’,group:’المغرب’,method:21}, {ar:’نواكشوط’,city:’Nouakchott’,country:’Mauritania’,flag:’🇲🇷’,tz:’Africa/Nouakchott’,group:’موريتانيا’,main:true}, {ar:’النعمة’,city:’Nema’,country:’Mauritania’,flag:’🇲🇷’,tz:’Africa/Nouakchott’,group:’موريتانيا’} ]; let DATA=[]; let busy=false; const root=()=>document.getElementById(‘ff-smartbar’); const track=()=>document.getElemen t}; new Intl.DateTimeFormat(‘en-GB’,{ timeZone:tz, year:’numeric’, month:’2-digit’, day:’2-digit’, weekday:’short’, hour:’2-digit’, minute:’2-digit’, hour12:false }).formatToParts(date||new Date()).forEach(x=>{ if(x.type!==’literal’)p[x.type]=x.value; }); return { y:+p.year, m:+p.month, d:+p.day, wd:p.weekday, h:(+p.hour)%24, min:+p.minute }; } function shift(x,days){ const d=new Date(Date.UTC(x.y,x.m-1,x.d+days)); return { y:d.getUTCFullYear(), m:d.getUTCMonth()+1, d:d.getUTCDate() }; } function cleanTime(s){ const m=String(s||”).match(/(\d{1,2}):(\d{2})/); return m ? m[1].padStart(2,’0′)+’:’+m[2] : ”; } function mins(s){ const t=cleanTime(s).split(‘:’); return t.length===2 ? (+t[0]*60)+(+t[1]) : NaN; } function after(start,t){ c.cit let x=t; while(x
‘٠١٢٣٤٥٦٧٨٩'[d] ); } function fmt(s){ const t=cleanTime(s).split(‘:’); if(t.length!==2)return s||”; let h=+t[0]; const m=t[1]; const ap=h<12?'ص':'م'; h=h%12||12; return arNum(h)+':'+arNum(m)+' '+ap; } function fmtAbs(v){ v=((Math.round(v)%1440)+1440)%1440; return fmt( String(Math.floor(v/60)).padStart(2,'0')+ ':'+ String(v%60).padStart(2,'0') ); } function cycDiff(a,b){ let d=Math.abs(a-b)%1440; return Math.min(d,1440-d); } function gregDateText(){ const p=parts('Asia/Riyadh',new Date()); return ( (AR_WEEK[p.wd]||'')+ ' '+ arNum(p.d)+ ' '+ AR_MONTH[p.m-1]+ ' '+ arNum(p.y)+ 'م' ); } async function calendar(c,x){ const key= 'ffcal|' +y+'|'+ c.country+'|'+ x.y+'-'+x.m+'|'+ (c.method||'auto'); try{ const hit= JSON.parse( localStorage.getItem(key)||'null' ); if( hit && Date.now()-hit.ts<86400000 && Array.isArray(hit.data) ){ return hit.data; } }catch(e){} let url= API+'/'+ x.y+'/'+ x.m+ '?city='+ encodeURIComponent(c.city)+ '&country='+ encodeURIComponent(c.country); if(c.method){ url+='&method='+encodeURIComponent(c.method); } const r= await fetch( url, {cache:'no-store'} ); if(!r.ok){ throw new Error('HTTP '+r.status); } const j=await r.json(); if( j.code!==200 || !Array.isArray(j.data) ){ throw new Error('API'); } try{ localStorage.setItem( key, JSON.stringify({ ts:Date.now(), data:j.data =null; }) ); }catch(e){} return j.data; } async function record(c,x){ const a=await calendar(c,x); return a[x.d-1]||null; } async function loadCity(c){ const now= parts( c.tz, new Date() ); const today={ y:now.y, m:now.m, d:now.d }; const prev=shift(today,-1); const next=shift(today,1); const [r0,r1,r2]= await Promise.all([ record(c,prev), record(c,today), record(c,next) ]); if(!r0||!r1||!r2){ throw new Error('Missing day'); } return build( c, now, r0, r1, r2 ); } function build(c,now,prev,today,next){ const T=today.timings; const P=prev.timings; const N=next.timings; const nowMin= now.h*60+ now.min; const fajr= mins(T.Fajr); const mag= mins(T.Maghrib); const asr= mins(T.Asr); let currentNigh t if(nowMin
=mag){ const start= mag; const end= after( start, mins(N.Fajr) ); const len= end-start; currentNight={ second:start+(len/3), last:start+(2*len/3), now:nowMin, fajr:cleanTime(N.Fajr) }; } let stage=’day’; if(currentNight){ stage= currentNight.now>=currentNight.last ? ‘last’ : currentNight.now>=currentNight.second ? ‘second’ : ‘first’; } const isThu= now.wd===’Thu’; const isFri= now.wd===’Fri’; const fridayNight= morning, evening (isThu && nowMin>=mag) || (isFri && nowMin
=fajr && nowMin
=asr; const fridayLastHour= fridayDay && nowMin>=mag-20; const morning= nowMin>=fajr && nowMin
=mag && nowMin
=THRESHOLD; } function chosen(data){ const mains={}; data.forEach(x=>{ if(x.c.main){ mains[x.c.group]=x; } }); return data.filter( x=> qualifies( x, mains[x.c.group] ) ); } function cityStatus(x){ const s=x.state; if(s.fridayLastHour){ return { color:’#9de3c8′, extra: label:’آخر 20 دقيقة قبل المغرب’, color:’#f4d06f’, extra: ‘ • المغرب ‘+ fmt(x.times.maghrib) }; } if(s.fridayAfterAsr){ return { label:’تحروا ساعة الإجابة’, color:’#f4d06f’, extra: ‘ • المغرب ‘+ fmt(x.times.maghrib) }; } if( s.morning && s.fridayDay ){ return { label:’طلع فجر الجمعة’, color:’#f4d06f’, extra: ‘ • الفجر ‘+ fmt(x.times.fajr) }; } if(s.morning){ return { label:’طلع الفجر • أذكار الصباح’, color:’#ffe59a’, extra: ‘ • الفجر ‘+ fmt(x.times.fajr) }; } if( s.evening && s.fridayNight ){ return { label:’دخلت ليلة الجمعة’, color:’#f4d06f’, extra: ‘ • المغرب ‘+ fmt(x.times.maghrib) }; } if(s.evening){ return { label:’غربت الشمس • أذكار المساء’, ‘ • المغرب ‘+ fmt(x.times.maghrib) }; } if(s.stage===’last’){ return { label:’الثلث الأخير’, color:’#f0c95a’, extra: ‘ • بدأ ‘+ fmtAbs(x.night.last)+ ‘ • الفجر ‘+ fmt(x.night.fajr) }; } if(s.stage===’second’){ return { label:’الثلث الثاني’, color:’#c8d1ff’, extra: ‘ • بدأ ‘+ fmtAbs(x.night.second)+ ‘ • الثلث الأخير ‘+ fmtAbs(x.night.last)+ ‘ • الفجر ‘+ fmt(x.night.fajr) }; } if(s.fridayNight){ return { label:’ليلة الجمعة’, color:’#f4d06f’, extra: ‘ • الثلث الثاني ‘+ fmtAbs(x.night.second)+ ‘ • الثلث الأخير ‘+ fmtAbs(x.night.last) }; } if(s.fridayDay){ return { label:’يوم الجمعة’, color:’#f4d06f’, extra: ‘ • العصر ‘+ fmt(x.times.asr)+ ‘ • المغرب ‘+ fmt(x.times.maghrib) ‘
‘+ gregDateText()+ ‘
‘ ); if(s.fridayNight){ out.push( ‘
‘+ ‘دخلت ليلة الجمعة • أكثروا من الصلاة على النبي ﷺ • ‘+ ‘قال ﷺ: «أكثروا الصلاة علي يوم الجمعة وليلة الجمعة، فمن صلى علي صلاة صلى الله عليه عشرا» — حسن لشواهده.’+ ‘
‘ ); } else if(s.fridayDay){ out.push( ‘
‘+ ‘بدأ يوم الجمعة • أكثروا من الصلاة على النبي ﷺ • ‘+ ‘قال ﷺ: «إن من أفضل أيامكم يوم الجمعة، فأكثروا علي من الصلاة فيه، فإن صلاتكم معروضة علي» — رواه أبو داود.’+ ‘
‘ ); } if(s.fridayAfterAsr){ out.push( class=”ff-hadith”>’+ ‘تحروا ساعة الإجابة من يوم الجمعة • ‘+ ‘قال ﷺ: «فالتمسوها آخر ساعة بعد العصر» — رواه أبو داود والنسائي.’+ ‘‘ ); } if(s.morning){ out.push( ‘
‘+ ‘طلع الفجر • حان الآن وقت أذكار الصباح.’+ ‘
‘ ); } if(s.evening){ out.push( ‘
‘+ ‘غربت الشمس • دخل المساء • حان الآن وقت أذكار المساء.’+ ‘
‘ ); } if(s.stage===’second’){ out.push( ‘
‘+ ‘الثلث الثاني من الليل • ‘+ ‘قال ﷺ: «إن الله يمهل حتى إذا ذهب ثلث الليل الأول، نزل إلى السماء الدنيا…» — رواه مسلم.’+ ‘
‘ ); } if(s.stage===’last’){ out.push( ‘
‘+ ‘الثلث الأخير من الليل • ‘+ ‘قال ﷺ: «ينزل ربنا تبارك وتعالى كل ليلة إلى السماء الدنيا حين يبقى ثلث الليل الآخر…» — متفق عليه.’+ ‘
‘ ); } return out; } function dominantState(x){ const s=x.state; if(s.stage===’last’){ return ‘last’; } if(s.stage===’second’){ return ‘second’; } if( s.morning && s.fridayDay ){ return ‘friday’; } if( s.fridayLastHour || s.fridayAfterAsr ){ return ‘friday’; } if( s.evening && s.fridayNight ){ return ‘friday’; } if(s.morning){ return ‘morning’; } if(s.evening){ return ‘evening’; } if( s.fridayNight || s.fridayDay ){ return ‘friday’; } return ‘base’; } function titleText(x){ const s=x.state; if( s.stage===’last’ && s.fridayNight ){ return ‘ليلة الجمعة • الثلث الأخير’; } if( s.stage===’second’ && s.fridayNight ){ return ‘ليلة الجمعة • الثلث الثاني’; } if(s.stage===’last’){ return ‘الثلث الأخير من الليل’; } if(s.stage===’second’){ return ‘الثلث الثاني من الليل’; } if(s.fridayLastHour){ return ‘ساعة الإجابة يوم الجمعة’; } i f(s.fridayAfterAsr){ return ‘ساعة الإجابة يوم الجمعة’; } if( s.morning && s.fridayDay ){ return ‘فجر الجمعة’; } if(s.fridayNight){ return ‘ليلة الجمعة’; } if(s.fridayDay){ return ‘يوم الجمعة’; } if(s.morning){ return ‘أذكار الصباح’; } if(s.evening){ return ‘أذكار المساء’; } return ‘مواقيت النزول الإلهي’; } function applyState(x){ const el=root(); if(!el){ return; } const d= dominantState(x); el.className= ‘ff-smartbar ‘+ ( d===’second’ ? ‘ff-state-second’ : d===’last’ ? ‘ff-state-last’ : d===’morning’ ? ‘ff-state-morning’ : d===’evening’ ? ‘ff-state-evening’ : d===’friday’ ? ‘ff-state-friday’ : ‘ff-state-base’ ); const t=title(); if(t){ t.textContent= titleText(x); } } function cityHTML(x){ const st= cityStatus(x); return ( ‘
‘+ ‘
‘+ x.c.flag+ ‘ ‘+ x.c.ar+ ‘
‘+ ‘ • ‘+ st.label+ st.extra+ ‘
‘ ); } function render(){ if(!DATA.length){ return; } const anchor= DATA.find( x=>x.c.city===’Riyadh’ ) || DATA[0]; applyState(anchor); const out= leadMessages(anchor); chosen(DATA).forEach(x=>{ out.push( cityHTML(x) ); }); const t=track(); if(t){ t.innerHTML= out.join( ‘
•
‘ ); } } async function loadAll(){ if(busy){ return; } busy=true; const t=track(); if(t){ t.innerHTML= ‘
‘+ ‘جاري تحديث مواقيت الدول العربية…’+ ‘
‘; } try{ const results=[]; for( let i=0; i
loadCity(c) .catch(()=>null) ) ); results.push.apply( results, r.filter(Boolean) ); } DATA=results; if(DATA.length){ render(); } else if(t){ t.innerHTML= ‘
‘+ ‘تعذر تحديث المواقيت مؤقتًا، أعد المحاولة بعد قليل.’+ ‘
‘; } } catch(e){ if(t){ t.innerHTML= ‘
‘+ ‘تعذر تحديث المواقيت مؤقتًا، أعد المحاولة بعد قليل.’+ ‘
‘; } } busy=false; } loadAll(); setInterval( render, 60000 ); setInterval( loadAll, 900000 ); })();
☾
مواقيت النزول الإلهي
جاري حساب المواقيت…
قناة كنوز الكلام
بشرى لرجال الفجر
علامات تدل على السكز
ماذا يحدث للجسم بعد ترك الدخان
حسن صلاتك يحسن الله لك حياتك
من إبداعات منصور السالمي في تلاوة القرآن
إحذر من هذا الخطأ الكارثي
هل المرآة في غرفة النوم لها علاقة بالجن /محمد هيكل
من إبداعات الشباب هذا جبل أحد يحبنا ونحبه
زيارة إلى المقبرة
Arabic
English