{"id":8928,"date":"2025-08-25T18:44:51","date_gmt":"2025-08-25T15:44:51","guid":{"rendered":"https:\/\/afedne.info\/?p=8928"},"modified":"2025-08-25T18:53:17","modified_gmt":"2025-08-25T15:53:17","slug":"%d8%a8%d9%86%d9%83-%d8%a3%d8%b3%d8%a6%d9%84%d8%a9-%d8%a5%d9%84%d9%83%d8%aa%d8%b1%d9%88%d9%86%d9%8a","status":"publish","type":"post","link":"https:\/\/afedne.info\/?p=8928","title":{"rendered":"\u0628\u0646\u0643 \u0623\u0633\u0626\u0644\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"ar\" dir=\"rtl\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>\u0628\u0646\u0643 \u0623\u0633\u0626\u0644\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u062a\u0641\u0627\u0639\u0644\u064a &#8211; \u0633\u0644\u0637\u0646\u0629 \u0639\u064f\u0645\u0627\u0646<\/title>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <style>\n    body { font-family: 'Cairo', Arial, sans-serif; background: #f2f6fa; margin: 0; color: #222; }\n    .container { max-width: 950px; margin: 40px auto 30px auto; background: #fff; padding: 30px 18px; border-radius: 15px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);}\n    h1 { color: #0077b6; border-right: 4px solid #0096c7; padding-right: 12px; font-size: 2em; margin-top: 0; }\n    select, button { padding: 8px 12px; border-radius: 6px; border: 1px solid #bde0fe; margin-left: 10px; font-size: 1em;}\n    button { background: #00b4d8; color: #fff; cursor: pointer; border: none; margin-top: 12px;}\n    button:hover { background: #0077b6;}\n    .question { background: #e9f6fb; border: 1px solid #b6e0ef; border-radius: 10px; padding: 15px 12px; margin-bottom: 18px;}\n    .score { background: #d9f9e4; color: #256029; border: 1px solid #b4e2c5; border-radius: 8px; padding: 13px; margin: 18px 0; font-size: 1.2em;}\n    .pdf-btn { background: #ffc107; color: #6d4c00; border: none; padding: 8px 14px; border-radius: 7px; margin-top: 12px;}\n    .pdf-btn:hover { background: #ffb300;}\n    .answer-status { font-weight: bold; margin-top: 8px;}\n    .correct { color: #219150;}\n    .wrong { color: #d32f2f;}\n    .section-title { background: #caf0f8; color: #0077b6; margin: 30px 0 14px 0; padding: 8px 16px 8px 0; border-radius: 8px; font-size: 1.2em; border-right: 4px solid #00b4d8;}\n    @media (max-width: 700px) { .container { padding: 8px 1px; } h1 { font-size: 1.2em; } }\n  <\/style>\n<\/head>\n<body>\n  <div class=\"container\">\n    <h1>\u0628\u0646\u0643 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u064a \u0644\u0644\u0635\u0641\u0648\u0641 \u0627\u0644\u0639\u0644\u064a\u0627 (\u0639\u0627\u0634\u0631 &#8211; \u062d\u0627\u062f\u064a \u0639\u0634\u0631 &#8211; \u062b\u0627\u0646\u064a \u0639\u0634\u0631)<\/h1>\n    <label>\u0627\u062e\u062a\u0631 \u0627\u0644\u0635\u0641:\n      <select id=\"gradeSelect\">\n        <option value=\"10\">\u0627\u0644\u0635\u0641 \u0627\u0644\u0639\u0627\u0634\u0631<\/option>\n        <option value=\"11\">\u0627\u0644\u0635\u0641 \u0627\u0644\u062d\u0627\u062f\u064a \u0639\u0634\u0631<\/option>\n        <option value=\"12\">\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0646\u064a \u0639\u0634\u0631<\/option>\n      <\/select>\n    <\/label>\n    <label>\u0627\u062e\u062a\u0631 \u0627\u0644\u0645\u0627\u062f\u0629:\n      <select id=\"subjectSelect\">\n        <option value=\"\u0631\u064a\u0627\u0636\u064a\u0627\u062a\">\u0627\u0644\u0631\u064a\u0627\u0636\u064a\u0627\u062a<\/option>\n        <option value=\"\u0641\u064a\u0632\u064a\u0627\u0621\">\u0627\u0644\u0641\u064a\u0632\u064a\u0627\u0621<\/option>\n        <option value=\"\u0643\u064a\u0645\u064a\u0627\u0621\">\u0627\u0644\u0643\u064a\u0645\u064a\u0627\u0621<\/option>\n      <\/select>\n    <\/label>\n    <button onclick=\"startQuiz()\">\u0628\u062f\u0621 \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631<\/button>\n    <button class=\"pdf-btn\" onclick=\"generatePDF()\">\u062a\u0648\u0644\u064a\u062f \u0645\u0644\u0641 PDF<\/button>\n    <form id=\"quizForm\" style=\"margin-top:30px;display:none;\" onsubmit=\"event.preventDefault(); checkAnswers();\">\n      <div id=\"questionsArea\"><\/div>\n      <button type=\"submit\">\u062a\u0635\u062d\u064a\u062d \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631<\/button>\n    <\/form>\n    <div id=\"scoreArea\"><\/div>\n  <\/div>\n  <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js\"><\/script>\n  <script>\n    \/\/ \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0635\u0641 \u0627\u0644\u0639\u0627\u0634\u0631\n    const questions_10 = {\n      \"\u0631\u064a\u0627\u0636\u064a\u0627\u062a\": [\n        {q:\"\u0645\u0627 \u0646\u062a\u064a\u062c\u0629 5 \u00d7 12 \u061f\", type:\"mcq\", choices:[\"60\",\"50\",\"70\"], ans:\"60\"},\n        {q:\"\u062d\u0644 \u0627\u0644\u0645\u0639\u0627\u062f\u0644\u0629: 2\u0633 + 4 = 10\", type:\"text\", ans:\"3\"},\n        {q:\"\u0623\u0648\u062c\u062f \u0642\u064a\u0645\u0629 2\u00b3 + 4 \u00d7 2\", type:\"mcq\", choices:[\"16\",\"14\",\"12\"], ans:\"12\"},\n        {q:\"\u0625\u0630\u0627 \u0643\u0627\u0646 \u0645\u062d\u064a\u0637 \u0645\u0631\u0628\u0639 36 \u0633\u0645\u060c \u0645\u0627 \u0637\u0648\u0644 \u0627\u0644\u0636\u0644\u0639\u061f\", type:\"text\", ans:\"9\"}\n      ],\n      \"\u0641\u064a\u0632\u064a\u0627\u0621\": [\n        {q:\"\u0645\u0627 \u0648\u062d\u062f\u0629 \u0642\u064a\u0627\u0633 \u0627\u0644\u0642\u0648\u0629\u061f\", type:\"mcq\", choices:[\"\u0646\u064a\u0648\u062a\u0646\",\"\u062c\u0648\u0644\",\"\u0648\u0627\u0637\"], ans:\"\u0646\u064a\u0648\u062a\u0646\"},\n        {q:\"\u0645\u0627 \u0647\u0648 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a \u0644\u0646\u064a\u0648\u062a\u0646\u061f (\u0627\u0643\u062a\u0628 \u0627\u0644\u0635\u064a\u063a\u0629 \u0627\u0644\u0631\u064a\u0627\u0636\u064a\u0629)\", type:\"text\", ans:\"\u0627\u0644\u0642\u0648\u0629 = \u0627\u0644\u0643\u062a\u0644\u0629 \u00d7 \u0627\u0644\u062a\u0633\u0627\u0631\u0639\"},\n        {q:\"\u0623\u064a \u0645\u0645\u0627 \u064a\u0644\u064a \u0646\u0627\u0642\u0644 \u062c\u064a\u062f \u0644\u0644\u0643\u0647\u0631\u0628\u0627\u0621\u061f\", type:\"mcq\", choices:[\"\u0627\u0644\u0646\u062d\u0627\u0633\",\"\u0627\u0644\u0645\u0637\u0627\u0637\",\"\u0627\u0644\u0648\u0631\u0642\"], ans:\"\u0627\u0644\u0646\u062d\u0627\u0633\"},\n        {q:\"\u0627\u0630\u0643\u0631 \u0645\u062b\u0627\u0644\u064b\u0627 \u0639\u0644\u0649 \u062a\u062d\u0648\u0644 \u0627\u0644\u0637\u0627\u0642\u0629 \u0645\u0646 \u0634\u0643\u0644 \u0644\u0622\u062e\u0631.\", type:\"text\", ans:\"\u0645\u0635\u0628\u0627\u062d \u0643\u0647\u0631\u0628\u0627\u0626\u064a\"}\n      ],\n      \"\u0643\u064a\u0645\u064a\u0627\u0621\": [\n        {q:\"\u0645\u0627 \u0631\u0645\u0632 \u0639\u0646\u0635\u0631 \u0627\u0644\u0635\u0648\u062f\u064a\u0648\u0645\u061f\", type:\"mcq\", choices:[\"Na\",\"S\",\"K\"], ans:\"Na\"},\n        {q:\"\u0627\u0630\u0643\u0631 \u062d\u0627\u0644\u0629 \u0627\u0644\u0645\u0627\u0621 \u0639\u0646\u062f \u062f\u0631\u062c\u0629 \u062d\u0631\u0627\u0631\u0629 0 \u0645\u0626\u0648\u064a\u0629.\", type:\"text\", ans:\"\u0635\u0644\u0628\u0629\"},\n        {q:\"\u0645\u0627 \u0647\u0648 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0630\u0631\u064a \u0644\u0644\u0623\u0643\u0633\u062c\u064a\u0646\u061f\", type:\"mcq\", choices:[\"8\",\"16\",\"12\"], ans:\"8\"},\n        {q:\"\u0645\u0627 \u0627\u0633\u0645 \u0627\u0644\u0645\u0627\u062f\u0629 \u0627\u0644\u0646\u0627\u062a\u062c\u0629 \u0639\u0646 \u062a\u0641\u0627\u0639\u0644 \u0627\u0644\u062d\u062f\u064a\u062f \u0645\u0639 \u0627\u0644\u0623\u0643\u0633\u062c\u064a\u0646\u061f\", type:\"text\", ans:\"\u0635\u062f\u0623 \u0627\u0644\u062d\u062f\u064a\u062f\"}\n      ]\n    };\n\n    \/\/ \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0635\u0641 \u0627\u0644\u062d\u0627\u062f\u064a \u0639\u0634\u0631\n    const questions_11 = {\n      \"\u0631\u064a\u0627\u0636\u064a\u0627\u062a\": [\n        {q:\"\u0645\u0627 \u0642\u064a\u0645\u0629 \u0627\u0644\u062c\u0630\u0631 \u0627\u0644\u062a\u0631\u0628\u064a\u0639\u064a \u0644\u0640 81 \u061f\", type:\"mcq\", choices:[\"7\",\"8\",\"9\"], ans:\"9\"},\n        {q:\"\u0625\u0630\u0627 \u0643\u0627\u0646 \u0645\u062d\u064a\u0637 \u062f\u0627\u0626\u0631\u0629 31.4 \u0633\u0645\u060c \u0641\u0645\u0627 \u0642\u0637\u0631\u0647\u0627 (\u03c0=3.14)\u061f\", type:\"text\", ans:\"10\"},\n        {q:\"\u062d\u0644 \u0627\u0644\u0645\u0639\u0627\u062f\u0644\u0629: \u0633\u00b2 - 16 = 0\", type:\"mcq\", choices:[\"4\",\"-4 \u0648 4\",\"-4\"], ans:\"-4 \u0648 4\"},\n        {q:\"\u0645\u0627 \u0646\u0627\u062a\u062c (2\u0633 + 3)(\u0633 - 1) \u0639\u0646\u062f \u0633=2\u061f\", type:\"text\", ans:\"7\"}\n      ],\n      \"\u0641\u064a\u0632\u064a\u0627\u0621\": [\n        {q:\"\u0627\u0644\u0645\u062c\u0627\u0644 \u0627\u0644\u0645\u063a\u0646\u0627\u0637\u064a\u0633\u064a \u064a\u0642\u0627\u0633 \u0628\u0648\u062d\u062f\u0629:\", type:\"mcq\", choices:[\"\u062a\u0633\u0644\u0627\",\"\u0646\u064a\u0648\u062a\u0646\",\"\u0641\u0648\u0644\u062a\"], ans:\"\u062a\u0633\u0644\u0627\"},\n        {q:\"\u0627\u0630\u0643\u0631 \u0623\u062d\u062f \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u062d\u062b \u0627\u0644\u0643\u0647\u0631\u0648\u0645\u063a\u0646\u0627\u0637\u064a\u0633\u064a.\", type:\"text\", ans:\"\u0627\u0644\u0645\u0648\u0644\u062f \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\"},\n        {q:\"\u0623\u064a \u0645\u0645\u0627 \u064a\u0644\u064a \u0645\u0635\u062f\u0631 \u0644\u0644\u0637\u0627\u0642\u0629 \u0627\u0644\u0645\u062a\u062c\u062f\u062f\u0629\u061f\", type:\"mcq\", choices:[\"\u0627\u0644\u0634\u0645\u0633\",\"\u0627\u0644\u0641\u062d\u0645\",\"\u0627\u0644\u0646\u0641\u0637\"], ans:\"\u0627\u0644\u0634\u0645\u0633\"},\n        {q:\"\u0645\u0627 \u0627\u0633\u0645 \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0644\u0642\u064a\u0627\u0633 \u0634\u062f\u0629 \u0627\u0644\u062a\u064a\u0627\u0631 \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u061f\", type:\"text\", ans:\"\u0627\u0644\u0623\u0645\u064a\u062a\u0631\"}\n      ],\n      \"\u0643\u064a\u0645\u064a\u0627\u0621\": [\n        {q:\"\u0639\u062f\u062f \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u0627\u062a \u0639\u0646\u0635\u0631 \u0627\u0644\u0643\u0644\u0648\u0631 (Cl)\u061f\", type:\"mcq\", choices:[\"17\",\"18\",\"19\"], ans:\"17\"},\n        {q:\"\u0627\u0643\u062a\u0628 \u0631\u0645\u0632 \u062d\u0645\u0636 \u0627\u0644\u0643\u0628\u0631\u064a\u062a\u064a\u0643.\", type:\"text\", ans:\"H2SO4\"},\n        {q:\"\u0623\u064a \u0645\u0645\u0627 \u064a\u0644\u064a \u0642\u0627\u0639\u062f\u0629\u061f\", type:\"mcq\", choices:[\"NaOH\",\"HCl\",\"CO2\"], ans:\"NaOH\"},\n        {q:\"\u0645\u0627 \u0647\u0648 \u0627\u0644\u063a\u0627\u0632 \u0627\u0644\u0646\u0627\u062a\u062c \u0639\u0646 \u0627\u062d\u062a\u0631\u0627\u0642 \u0627\u0644\u0647\u064a\u062f\u0631\u0648\u062c\u064a\u0646 \u0641\u064a \u0627\u0644\u0647\u0648\u0627\u0621\u061f\", type:\"text\", ans:\"\u0628\u062e\u0627\u0631 \u0627\u0644\u0645\u0627\u0621\"}\n      ]\n    };\n\n    \/\/ \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0646\u064a \u0639\u0634\u0631\n    const questions_12 = {\n      \"\u0631\u064a\u0627\u0636\u064a\u0627\u062a\": [\n        {q:\"\u062a\u0643\u0627\u0645\u0644 \u0627\u0644\u062f\u0627\u0644\u0629 f(x)=2x \u0647\u0648:\", type:\"mcq\", choices:[\"x\u00b2 + C\",\"2x + C\",\"x\u00b2 + 2C\"], ans:\"x\u00b2 + C\"},\n        {q:\"\u0623\u0648\u062c\u062f \u0627\u0644\u0646\u0647\u0627\u064a\u0629 lim(x\u21920) sin(x)\/x\", type:\"text\", ans:\"1\"},\n        {q:\"\u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0635\u0641\u0648\u0641\u0629 A = [[1,2],[3,4]] \u0641\u0645\u0627 \u0645\u062d\u062f\u062f\u0647\u0627\u061f\", type:\"mcq\", choices:[\"-2\",\"2\",\"-4\"], ans:\"-2\"},\n        {q:\"\u062d\u0644 \u0627\u0644\u0645\u0639\u0627\u062f\u0644\u0629 \u0627\u0644\u0644\u0648\u063a\u0627\u0631\u064a\u062a\u0645\u064a\u0629: log\u2081\u2080(x)=2\", type:\"text\", ans:\"100\"}\n      ],\n      \"\u0641\u064a\u0632\u064a\u0627\u0621\": [\n        {q:\"\u0627\u0644\u0637\u0627\u0642\u0629 \u0627\u0644\u062d\u0631\u0643\u064a\u0629 \u062a\u0633\u0627\u0648\u064a:\", type:\"mcq\", choices:[\"\u00bd\u00d7\u0627\u0644\u0643\u062a\u0644\u0629\u00d7\u0627\u0644\u0633\u0631\u0639\u0629\u00b2\",\"\u0627\u0644\u0643\u062a\u0644\u0629\u00d7\u0627\u0644\u062a\u0633\u0627\u0631\u0639\",\"\u0627\u0644\u0648\u0632\u0646\u00d7\u0627\u0644\u0627\u0631\u062a\u0641\u0627\u0639\"], ans:\"\u00bd\u00d7\u0627\u0644\u0643\u062a\u0644\u0629\u00d7\u0627\u0644\u0633\u0631\u0639\u0629\u00b2\"},\n        {q:\"\u0627\u0643\u062a\u0628 \u0642\u0627\u0646\u0648\u0646 \u062d\u0641\u0638 \u0627\u0644\u0637\u0627\u0642\u0629.\", type:\"text\", ans:\"\u0627\u0644\u0637\u0627\u0642\u0629 \u0644\u0627 \u062a\u0641\u0646\u0649 \u0648\u0644\u0627 \u062a\u064f\u0633\u062a\u062d\u062f\u062b \u0648\u0625\u0646\u0645\u0627 \u062a\u062a\u062d\u0648\u0644 \u0645\u0646 \u0634\u0643\u0644 \u0644\u0622\u062e\u0631\"},\n        {q:\"\u0623\u064a \u0645\u0645\u0627 \u064a\u0644\u064a \u0648\u062d\u062f\u0629 \u0644\u0642\u064a\u0627\u0633 \u0627\u0644\u0634\u062d\u0646\u0629 \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629\u061f\", type:\"mcq\", choices:[\"\u0643\u0648\u0644\u0648\u0645\",\"\u0623\u0648\u0645\",\"\u062a\u0633\u0644\u0627\"], ans:\"\u0643\u0648\u0644\u0648\u0645\"},\n        {q:\"\u0645\u0627 \u0627\u0633\u0645 \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0644\u0642\u064a\u0627\u0633 \u0641\u0631\u0642 \u0627\u0644\u062c\u0647\u062f \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u061f\", type:\"text\", ans:\"\u0627\u0644\u0641\u0648\u0644\u062a\u0645\u064a\u062a\u0631\"}\n      ],\n      \"\u0643\u064a\u0645\u064a\u0627\u0621\": [\n        {q:\"\u0645\u0627 \u0646\u0627\u062a\u062c \u062a\u0641\u0627\u0639\u0644 \u062d\u0645\u0636 \u0645\u0639 \u0642\u0627\u0639\u062f\u0629\u061f\", type:\"mcq\", choices:[\"\u0645\u0644\u062d \u0648\u0645\u0627\u0621\",\"\u063a\u0627\u0632 \u0641\u0642\u0637\",\"\u062d\u0645\u0636 \u0623\u0642\u0648\u0649\"], ans:\"\u0645\u0644\u062d \u0648\u0645\u0627\u0621\"},\n        {q:\"\u0645\u0627 \u0647\u0648 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0647\u064a\u062f\u0631\u0648\u062c\u064a\u0646\u064a \u0644\u0644\u0645\u0627\u0621 \u0627\u0644\u0646\u0642\u064a\u061f\", type:\"text\", ans:\"7\"},\n        {q:\"\u0645\u0627 \u0627\u0633\u0645 \u0627\u0644\u0639\u0645\u0644\u064a\u0629 \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0641\u064a\u0647\u0627 \u0641\u0635\u0644 \u0627\u0644\u0645\u0644\u062d \u0639\u0646 \u0627\u0644\u0645\u0627\u0621\u061f\", type:\"mcq\", choices:[\"\u0627\u0644\u062a\u0628\u062e\u064a\u0631\",\"\u0627\u0644\u062a\u0631\u0634\u064a\u062d\",\"\u0627\u0644\u062a\u0631\u0633\u064a\u0628\"], ans:\"\u0627\u0644\u062a\u0628\u062e\u064a\u0631\"},\n        {q:\"\u0627\u0643\u062a\u0628 \u0627\u0644\u0635\u064a\u063a\u0629 \u0627\u0644\u0643\u064a\u0645\u064a\u0627\u0626\u064a\u0629 \u0644\u063a\u0627\u0632 \u062b\u0627\u0646\u064a \u0623\u0643\u0633\u064a\u062f \u0627\u0644\u0643\u0631\u0628\u0648\u0646.\", type:\"text\", ans:\"CO2\"}\n      ]\n    };\n\n    \/\/ \u062a\u0646\u0638\u064a\u0645 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u062d\u0633\u0628 \u0627\u0644\u0635\u0641 \u0648\u0627\u0644\u0645\u0627\u062f\u0629 \u0644\u0633\u0647\u0648\u0644\u0629 \u0627\u0644\u062a\u0648\u0633\u0639\u0629\n    const questionBank = {\n      \"10\": questions_10,\n      \"11\": questions_11,\n      \"12\": questions_12\n    };\n\n    let selectedGrade = \"10\";\n    let selectedSubject = \"\u0631\u064a\u0627\u0636\u064a\u0627\u062a\";\n    let currentQuestions = [];\n\n    document.getElementById('gradeSelect').addEventListener('change', function() {\n      selectedGrade = this.value;\n    });\n    document.getElementById('subjectSelect').addEventListener('change', function() {\n      selectedSubject = this.value;\n    });\n\n    function startQuiz() {\n      currentQuestions = questionBank[selectedGrade][selectedSubject];\n      const area = document.getElementById(\"questionsArea\");\n      area.innerHTML = \"\";\n      \/\/ \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0642\u0633\u0645\n      area.innerHTML += `<div class=\"section-title\">\u0627\u0644\u0635\u0641: ${document.getElementById('gradeSelect').selectedOptions[0].text} | \u0627\u0644\u0645\u0627\u062f\u0629: ${selectedSubject}<\/div>`;\n      \/\/ \u0639\u0631\u0636 \u0627\u0644\u0623\u0633\u0626\u0644\u0629\n      currentQuestions.forEach((q, i) => {\n        let html = `<div class=\"question\"><div><strong>\u0633${i+1}:<\/strong> ${q.q}<\/div>`;\n        if(q.type===\"mcq\") {\n          html += q.choices.map(\n            c=>`<div><label><input type=\"radio\" name=\"q${i}\" value=\"${c}\" required> ${c}<\/label><\/div>`\n          ).join('');\n        } else {\n          html += `<input type=\"text\" name=\"q${i}\" style=\"margin-top:7px;width:60%;\" required>`;\n        }\n        html += `<div class=\"answer-status\" id=\"ansStatus${i}\"><\/div><\/div>`;\n        area.innerHTML += html;\n      });\n      document.getElementById(\"quizForm\").style.display=\"block\";\n      document.getElementById(\"scoreArea\").innerHTML = \"\";\n    }\n\n    function checkAnswers() {\n      let correct = 0;\n      currentQuestions.forEach((q, i) => {\n        let stat = \"\";\n        let userAns;\n        if(q.type===\"mcq\") {\n          const radios = document.getElementsByName(`q${i}`);\n          for(const radio of radios) {\n            if(radio.checked) userAns = radio.value;\n          }\n        } else {\n          userAns = document.getElementsByName(`q${i}`)[0].value.trim();\n        }\n        if(userAns && userAns.replace(\/ \/g,'').toLowerCase() == q.ans.replace(\/ \/g,'').toLowerCase()) {\n          stat = `<span class=\"correct\">\u2714 \u0625\u062c\u0627\u0628\u0629 \u0635\u062d\u064a\u062d\u0629<\/span>`;\n          correct++;\n        } else {\n          stat = `<span class=\"wrong\">\u2716 \u062e\u0637\u0623\u060c \u0627\u0644\u0625\u062c\u0627\u0628\u0629 \u0627\u0644\u0646\u0645\u0648\u0630\u062c\u064a\u0629: ${q.ans}<\/span>`;\n        }\n        document.getElementById(`ansStatus${i}`).innerHTML = stat;\n      });\n      document.getElementById(\"scoreArea\").innerHTML = `<div class=\"score\">\u062f\u0631\u062c\u062a\u0643: ${correct} \u0645\u0646 ${currentQuestions.length}<\/div>`;\n    }\n\n    function generatePDF() {\n      const { jsPDF } = window.jspdf;\n      const doc = new jsPDF();\n      doc.setFont(\"Arial\");\n      doc.setFontSize(13);\n      doc.text(\n        `\u0628\u0646\u0643 \u0623\u0633\u0626\u0644\u0629 - ${document.getElementById('gradeSelect').options[document.getElementById('gradeSelect').selectedIndex].text} - ${selectedSubject}`,\n        10, 15, {align: \"right\"});\n      let y = 30;\n      currentQuestions.forEach((q, i) => {\n        doc.text(`\u0633${i+1}: ${q.q}`, 10, y, {align: \"right\"});\n        y += 10;\n        if(q.type===\"mcq\") {\n          q.choices.forEach(c=>{\n            doc.text(`- ${c}`, 15, y, {align: \"right\"});\n            y += 8;\n          });\n        }\n        y += 6;\n        if(y > 270) { doc.addPage(); y=15; }\n      });\n      doc.save(\"bank-questions.pdf\");\n    }\n  <\/script>\n<\/body>\n<\/html>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0646\u0643 \u0623\u0633\u0626\u0644\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u062a\u0641\u0627\u0639\u0644\u064a &#8211; \u0633\u0644\u0637\u0646\u0629 \u0639\u064f\u0645\u0627\u0646 \u0628\u0646\u0643 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u064a \u0644\u0644\u0635\u0641\u0648\u0641 \u0627\u0644\u0639\u0644\u064a\u0627 (\u0639\u0627\u0634\u0631 &#8211; \u062d\u0627\u062f\u064a \u0639\u0634\u0631 &#8211; \u062b\u0627\u0646\u064a \u0639\u0634\u0631) \u0627\u062e\u062a\u0631 \u0627\u0644\u0635\u0641: \u0627\u0644\u0635\u0641 \u0627\u0644\u0639\u0627\u0634\u0631\u0627\u0644\u0635\u0641 \u0627\u0644\u062d\u0627\u062f\u064a \u0639\u0634\u0631\u0627\u0644\u0635\u0641 \u0627\u0644\u062b\u0627\u0646\u064a \u0639\u0634\u0631 \u0627\u062e\u062a\u0631 \u0627\u0644\u0645\u0627\u062f\u0629: \u0627\u0644\u0631\u064a\u0627\u0636\u064a\u0627\u062a\u0627\u0644\u0641\u064a\u0632\u064a\u0627\u0621\u0627\u0644\u0643\u064a\u0645\u064a\u0627\u0621 \u0628\u062f\u0621 \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631 \u062a\u0648\u0644\u064a\u062f \u0645\u0644\u0641 PDF \u062a\u0635\u062d\u064a\u062d \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631<\/p>\n","protected":false},"author":1,"featured_media":8929,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[843],"tags":[],"class_list":["post-8928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-843"],"_links":{"self":[{"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/posts\/8928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afedne.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8928"}],"version-history":[{"count":3,"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/posts\/8928\/revisions"}],"predecessor-version":[{"id":8936,"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/posts\/8928\/revisions\/8936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/afedne.info\/index.php?rest_route=\/wp\/v2\/media\/8929"}],"wp:attachment":[{"href":"https:\/\/afedne.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afedne.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afedne.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}