{"id":14,"date":"2026-09-21T13:42:55","date_gmt":"2026-09-21T13:42:55","guid":{"rendered":"https:\/\/app.filmarena.site\/?page_id=14"},"modified":"2026-09-21T14:02:03","modified_gmt":"2026-09-21T14:02:03","slug":"question-bank","status":"publish","type":"page","link":"https:\/\/app.filmarena.site\/?page_id=14","title":{"rendered":"Question Bank"},"content":{"rendered":"        <div id=\"msw-qbank-app\" class=\"msw-qbank-app\">\n          <div class=\"msw-qb-head\"><a href=\"https:\/\/app.filmarena.site\/\">\u2190 Home<\/a><h1>Question Bank<\/h1><span id=\"msw-qb-count\"><\/span><\/div>\n          <input id=\"msw-qb-search\" class=\"msw-qb-search\" placeholder=\"\ud83d\udd0d Search subjects and topics...\" \/>\n          <div id=\"msw-qb-body\"><div class=\"msw-qb-loading\">Loading QBank\u2026<\/div><\/div>\n        <\/div>\n        <style>\n        .msw-qbank-app{max-width:1100px;margin:auto;padding:18px;color:#f4f7fb}.msw-qb-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}.msw-qb-head h1{margin:0;font-size:28px;flex:1}.msw-qb-head a{color:#9fb0c3}.msw-qb-count{color:#9fb0c3;font-size:13px}.msw-qb-search{width:100%;padding:15px;border-radius:15px;border:1px solid rgba(255,255,255,.08);background:#0e1c2d;color:#fff;font-size:15px;margin-bottom:18px}.msw-qb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.msw-qb-card{background:linear-gradient(145deg,#10243a,#0c1828);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;cursor:pointer;min-height:132px;position:relative;overflow:hidden;transition:.18s transform,.18s border-color,.18s box-shadow}.msw-qb-card:hover{border-color:#42a5ff;transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.18)}.msw-qb-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(66,165,255,.10);font-size:28px;margin-bottom:14px}.msw-qb-card strong{display:block;margin-top:9px}.msw-qb-card small{color:#9fb0c3}.msw-qb-topic{background:#0e1c2d;border:1px solid rgba(255,255,255,.08);padding:15px;border-radius:14px;margin:9px 0;cursor:pointer}.msw-qb-topic span{color:#9fb0c3;font-size:13px}.msw-qb-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.msw-qb-mode{padding:18px;border:1px solid rgba(255,255,255,.08);background:#0e1c2d;color:#fff;border-radius:16px;cursor:pointer;text-align:left}.msw-qb-mode strong{display:block}.msw-qb-mode small{color:#9fb0c3}.msw-qb-back{border:0;background:none;color:#9fb0c3;padding:8px 0;cursor:pointer}.msw-qb-question{font-size:20px;font-weight:700;margin:18px 0}.msw-qb-option{display:block;width:100%;text-align:left;background:#0e1c2d;color:#fff;border:1px solid rgba(255,255,255,.08);padding:14px;border-radius:13px;margin:9px 0;cursor:pointer}.msw-qb-option.correct{border-color:#35d07f;background:#103224}.msw-qb-option.wrong{border-color:#ff6675;background:#32141a}.msw-qb-expl{background:#12243a;border-radius:14px;padding:14px;margin-top:14px;color:#c4d0dc}.msw-qb-next{margin-top:15px;background:#42a5ff;color:#06101d;border:0;padding:12px 18px;border-radius:12px;font-weight:700;cursor:pointer}.msw-qb-loading{color:#9fb0c3}@media(max-width:700px){.msw-qb-grid{grid-template-columns:1fr 1fr;gap:10px}.msw-qb-card{padding:14px;min-height:120px}.msw-qb-card strong{font-size:14px}.msw-qb-modes{grid-template-columns:1fr}.msw-qb-question{font-size:18px}}\n        <\/style>\n        <script>\n        (()=>{const A=document.getElementById('msw-qbank-app'),B=document.getElementById('msw-qb-body'),S=document.getElementById('msw-qb-search'),C=document.getElementById('msw-qb-count');let data=null,subject=null,topic=null,mode=null,index=0,score=0,answered=false;\n        const ajax=\"https:\/\/app.filmarena.site\/wp-admin\/admin-ajax.php\";\n        async function load(){let r=await fetch(ajax+\"?action=msw_qbank_data\");data=await r.json();renderSubjects();}\n        function renderSubjects(filter=''){subject=null;topic=null;mode=null;let q=filter.toLowerCase();let subs=data.subjects.filter(s=>s.name.toLowerCase().includes(q));C.textContent=data.total_questions+' questions';B.innerHTML='<div class=\"msw-qb-grid\">'+subs.map(s=>`<div class=\"msw-qb-card\" data-s=\"${s.id}\"><div class=\"msw-qb-icon\">${s.icon}<\/div><strong>${s.name}<\/strong><small>${s.count} questions<\/small><\/div>`).join('')+'<\/div>';B.querySelectorAll('[data-s]').forEach(x=>x.onclick=()=>renderTopics(+x.dataset.s));}\n        function renderTopics(id){subject=data.subjects.find(s=>s.id===id);let ts=data.topics.filter(t=>t.subject_id===id);B.innerHTML=`<button class=\"msw-qb-back\" id=\"back\">\u2190 All subjects<\/button><h2>${subject.icon} ${subject.name}<\/h2>`+ts.map(t=>`<div class=\"msw-qb-topic\" data-t=\"${t.id}\"><b>${t.name}<\/b><br><span>${t.count} questions<\/span><\/div>`).join('');document.getElementById('back').onclick=renderSubjects;B.querySelectorAll('[data-t]').forEach(x=>x.onclick=()=>renderModes(+x.dataset.t));}\n        function renderModes(id){topic=data.topics.find(t=>t.id===id);B.innerHTML=`<button class=\"msw-qb-back\" id=\"back\">\u2190 ${subject.name}<\/button><h2>${topic.name}<\/h2><div class=\"msw-qb-modes\"><button class=\"msw-qb-mode\" id=\"normal\"><strong>\ud83d\udcd6 Normal Mode<\/strong><small>Answer and see explanation immediately<\/small><\/button><button class=\"msw-qb-mode\" id=\"test\"><strong>\u23f1\ufe0f Test Mode<\/strong><small>Answer questions first, see result at the end<\/small><\/button><\/div>`;document.getElementById('back').onclick=()=>renderTopics(subject.id);document.getElementById('normal').onclick=()=>start('normal');document.getElementById('test').onclick=()=>start('test');}\n        function start(m){mode=m;index=0;score=0;answered=false;renderQ();}\n        function renderQ(){let qs=topic.questions;if(!qs.length){B.innerHTML='<p>No questions added to this topic yet.<\/p>';return}let q=qs[index%qs.length];answered=false;B.innerHTML=`<button class=\"msw-qb-back\" id=\"back\">\u2190 ${topic.name}<\/button><div style=\"color:#9fb0c3\">Question ${index+1}<\/div><div class=\"msw-qb-question\">${q.question}<\/div><div>${['A','B','C','D'].map(l=>`<button class=\"msw-qb-option\" data-o=\"${l}\"><b>${l}.<\/b> ${q['option_'+l.toLowerCase()]}<\/button>`).join('')}<\/div><div id=\"exp\"><\/div>`;document.getElementById('back').onclick=()=>renderModes(topic.id);B.querySelectorAll('[data-o]').forEach(x=>x.onclick=()=>answer(x.dataset.o,q));}\n        function answer(o,q){if(answered)return;answered=true;let ok=o===q.correct;if(ok)score++;B.querySelectorAll('[data-o]').forEach(x=>{if(x.dataset.o===q.correct)x.classList.add('correct');if(x.dataset.o===o&&!ok)x.classList.add('wrong')});if(mode==='normal'){document.getElementById('exp').innerHTML=`<div class=\"msw-qb-expl\"><b>${ok?'Correct':'Incorrect'}<\/b><br>${q.explanation||''}<\/div><button class=\"msw-qb-next\" id=\"next\">Next question \u2192<\/button>`;document.getElementById('next').onclick=()=>{index++;renderQ()}}else{if(index+1>=topic.questions.length){showResult()}else{document.getElementById('exp').innerHTML='<button class=\"msw-qb-next\" id=\"next\">Next question \u2192<\/button>';document.getElementById('next').onclick=()=>{index++;renderQ()}}}}\n        function showResult(){B.innerHTML=`<button class=\"msw-qb-back\" id=\"back\">\u2190 ${topic.name}<\/button><h2>Test complete \ud83c\udf89<\/h2><div class=\"msw-qb-card\"><h2>${score} \/ ${topic.questions.length}<\/h2><p>Your score<\/p><button class=\"msw-qb-next\" id=\"again\">Try again<\/button><\/div>`;document.getElementById('back').onclick=()=>renderModes(topic.id);document.getElementById('again').onclick=()=>start('test');}\n        S.addEventListener('input',e=>{if(!subject)renderSubjects(e.target.value)});load();\n        })();\n        <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/pages\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/app.filmarena.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":2,"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/pages\/14\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/app.filmarena.site\/index.php?rest_route=\/wp\/v2\/pages\/14\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/app.filmarena.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}