4 خطوات للوصول: حقيبة المستثمر | Networking(RiseUp) | Elevator Pitch(دقيقة) | بيانات مالية
⚠️ ملاحظة 80%: احفظ التكاليف والتعادل عن ظهر قلب | ⚠️ ضرائب: 2.5% في المثال vs 20% في التعريف
`},
{id:'ch8',title:'📒 الفصل 8: خطة العمل وCanvas',content:`
خطة العمل: دراسة علمية شاملة (تسويقية+تشغيلية+مالية) قبل التنفيذ
نموذج العمل: مخطط موجز "صفحة واحدة" — كيف يخلق المشروع قيمة ويحولها لأرباح
Canvas (9 أحجار — 8 مذكورة):
شرائح العملاء (من؟)
القيم المقترحة (ما المشكلة؟)
القنوات (كيف نصل؟)
العلاقات (كيف نحافظ؟)
مصادر الإيرادات (من أين الكاش؟)
الموارد الرئيسية (ما الأصول؟ — 4: مادية+فكرية+بشرية+مالية)
الأنشطة الرئيسية (ما المهام؟)
الشراكات الرئيسية (من المساعدون؟)
⚠️ الفصل 8 = "المحطة الختامية" يجمع كل الفصول السابقة | العنوان يقول 9 أحجار لكن 8 فقط مذكورة!
`}
];
// RENDER STUDY MODE
function renderStudy(){
let fHtml='';
studyData.forEach(s=>{fHtml+=`
${s.content}
`;});
document.getElementById('studyContent').innerHTML=fHtml;
}
function toggleCh(id){
let el=document.getElementById('sc_'+id);
el.classList.toggle('show');
el.previousElementSibling.classList.toggle('open');
}
// QUESTIONS DATA - will be loaded from next script block
let questions=[];
// RENDER TEST MODE
function renderTest(filter='all'){
let qs=filter==='all'?questions:questions.filter(q=>q.ch===filter);
let html='';
qs.forEach((q,i)=>{
let qi=questions.indexOf(q);
html+=`
`;
});
document.getElementById('testContent').innerHTML=html;
document.getElementById('qCount').textContent=`${qs.length} سؤال`;
// filters
let chapters=[...new Set(questions.map(q=>q.ch))];
let fHtml='
الكل
';
chapters.forEach(c=>{fHtml+=`
${c}
`;});
document.getElementById('testFilters').innerHTML=fHtml;
}
let userAnswers={};
let scoreCorrect=0,scoreWrong=0;
function checkAnswer(qi){
let q=questions[qi];
let card=document.getElementById('qc_'+qi);
let exp=document.getElementById('exp_'+qi);
if(card.classList.contains('correct')||card.classList.contains('wrong'))return; // already answered
exp.classList.add('show');
if(q.type==='mcq'){
if(userAnswers[qi]===q.correct){
scoreCorrect++;card.classList.add('correct');
document.getElementById(`opt_${qi}_${q.correct}`).classList.add('correct-ans');
}else{
scoreWrong++;card.classList.add('wrong');
document.getElementById(`opt_${qi}_${userAnswers[qi]}`).classList.add('wrong-ans');
document.getElementById(`opt_${qi}_${q.correct}`).classList.add('correct-ans');
}
// disable further clicks
document.querySelectorAll(`[id^="opt_${qi}_"]`).forEach(l=>{l.style.pointerEvents='none';});
}else if(q.type==='tf'){
if(userAnswers[qi]===q.correct){
scoreCorrect++;card.classList.add('correct');
document.getElementById(`tf_${qi}_${q.correct?1:0}`).classList.add('c-right');
}else{
scoreWrong++;card.classList.add('wrong');
document.getElementById(`tf_${qi}_${userAnswers[qi]?1:0}`).classList.add('c-wrong');
document.getElementById(`tf_${qi}_${q.correct?1:0}`).classList.add('c-right');
}
document.getElementById(`tf_${qi}_1`).style.pointerEvents='none';
document.getElementById(`tf_${qi}_0`).style.pointerEvents='none';
}
updateProgress();
updateLiveScore();
}
function selOpt(qi,oi){
if(userAnswers[qi]!==undefined)return; // already answered
userAnswers[qi]=oi;
document.querySelectorAll(`[id^="opt_${qi}_"]`).forEach(l=>l.classList.remove('selected'));
document.getElementById(`opt_${qi}_${oi}`).classList.add('selected');
checkAnswer(qi);
}
function selTf(qi,val){
if(userAnswers[qi]!==undefined)return; // already answered
userAnswers[qi]=val;
document.getElementById(`tf_${qi}_1`).classList.toggle('sel',val===true);
document.getElementById(`tf_${qi}_0`).classList.toggle('sel',val===false);
checkAnswer(qi);
}
function updateProgress(){
let answered=Object.keys(userAnswers).length;
let total=questions.filter(q=>q.type!=='essay'&&q.type!=='math_essay').length;
let pct=Math.round(answered/total*100);
document.getElementById('progFill').style.width=pct+'%';
}
function updateLiveScore(){
let total=scoreCorrect+scoreWrong;
if(total===0)return;
let pct=Math.round(scoreCorrect/total*100);
document.getElementById('resultArea').innerHTML=`
${pct}%
النتيجة الحالية
${scoreCorrect} ✅
صح
${scoreWrong} ❌
خطأ
${total}
مُجاب
`;
}
function submitTest(){
// Show final score for all questions (including unanswered)
let total=questions.filter(q=>q.type!=='essay'&&q.type!=='math_essay').length;
let unanswered=total-scoreCorrect-scoreWrong;
// Reveal all unanswered
questions.forEach((q,i)=>{
let card=document.getElementById('qc_'+i);
let exp=document.getElementById('exp_'+i);
if(!card.classList.contains('correct')&&!card.classList.contains('wrong')&&(q.type==='mcq'||q.type==='tf')){
card.classList.add('wrong');
exp.classList.add('show');
scoreWrong++;
if(q.type==='mcq')document.getElementById(`opt_${i}_${q.correct}`).classList.add('correct-ans');
if(q.type==='tf')document.getElementById(`tf_${i}_${q.correct?1:0}`).classList.add('c-right');
}
if(q.type==='essay')exp.classList.add('show');
});
let pct=total>0?Math.round(scoreCorrect/total*100):0;
let grade=pct>=90?'A+':pct>=80?'A':pct>=70?'B':pct>=60?'C':'F';
let gc=pct>=80?'a':pct>=70?'b':pct>=60?'c':'f';
document.getElementById('resultArea').innerHTML=`