{"id":2682107,"date":"2026-04-11T19:22:54","date_gmt":"2026-04-11T19:22:54","guid":{"rendered":"https:\/\/hemdat-yamim.co.il\/?p=2682107"},"modified":"2026-04-12T14:57:00","modified_gmt":"2026-04-12T14:57:00","slug":"%d7%a1%d7%a4%d7%99%d7%a8%d7%aa-%d7%94%d7%a2%d7%95%d7%9e%d7%a8-%d7%9e%d7%a9%d7%97%d7%a7-%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%90%d7%a7%d7%98%d7%99%d7%91%d7%99-%d7%91%d7%a2%d7%a7%d7%91%d7%95%d7%aa-%d7%94","status":"publish","type":"post","link":"https:\/\/hemdat-yamim.co.il\/?p=2682107","title":{"rendered":"\u05e1\u05e4\u05d9\u05e8\u05ea \u05d4\u05e2\u05d5\u05de\u05e8 &#8211; \u05de\u05e9\u05d7\u05e7 \u05d0\u05d9\u05e0\u05d8\u05e8\u05d0\u05e7\u05d8\u05d9\u05d1\u05d9 \u05d1\u05e2\u05e7\u05d1\u05d5\u05ea \u05d4\u05de\u05e6\u05d2\u05ea"},"content":{"rendered":"<div id=\"omer-game\" style=\"direction:rtl; font-family:Assistant, sans-serif; background:#0a0e17; color:white; padding:20px; border-radius:12px;\"><\/div>\n<p><script>\n(function(){<\/p>\n<p>const QUESTIONS = [\n{ question: \"\u05de\u05ea\u05d9 \u05de\u05ea\u05d7\u05d9\u05dc\u05d4 \u05e1\u05e4\u05d9\u05e8\u05ea \u05d4\u05e2\u05d5\u05de\u05e8?\", options: [\"\u05dc\u05d9\u05dc \u05d4\u05e1\u05d3\u05e8\", \"\u05de\u05d5\u05e6\u05d0\u05d9 \u05d9\u05d5\u05dd \u05d8\u05d5\u05d1 \u05e8\u05d0\u05e9\u05d5\u05df \u05e9\u05dc \u05e4\u05e1\u05d7\", \"\u05e8\u05d0\u05e9 \u05d7\u05d5\u05d3\u05e9 \u05d0\u05d9\u05d9\u05e8\", \"\u05d1\u05d9\u05d5\u05dd \u05d4\u05e0\u05e4\u05ea \u05d4\u05e2\u05d5\u05de\u05e8\"], answer: 1 },\n{ question: \"\u05de\u05d4\u05d5 \u05d4\u05e7\u05d5\u05e8\u05d1\u05df \u05d1\u05ea\u05d7\u05d9\u05dc\u05ea \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4?\", options: [\"\u05e4\u05e1\u05d7\", \"\u05e9\u05ea\u05d9 \u05d4\u05dc\u05d7\u05dd\", \"\u05e2\u05d5\u05de\u05e8 \u05e9\u05e2\u05d5\u05e8\u05d9\u05dd\", \"\u05d1\u05d9\u05db\u05d5\u05e8\u05d9\u05dd\"], answer: 2 },\n{ question: \"\u05de\u05d4 \u05de\u05d1\u05d8\u05d0 \u05d4\u05de\u05e2\u05d1\u05e8 \u05de\u05e4\u05e1\u05d7 \u05dc\u05e9\u05d1\u05d5\u05e2\u05d5\u05ea?\", options: [\"\u05e2\u05d5\u05e0\u05d5\u05ea \u05d4\u05e9\u05e0\u05d4\", \"\u05de\u05e2\u05d1\u05e8 \u05de\u05e8\u05d5\u05d7\u05e0\u05d9 \u05dc\u05d2\u05e9\u05de\u05d9\", \"\u05de\u05e2\u05d1\u05e8 \u05dc\u05d0\u05d5\u05de\u05d9 \u05dc\u05e8\u05d5\u05d7\u05e0\u05d9\", \"\u05de\u05e2\u05d1\u05e8 \u05dc\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea\"], answer: 2 },\n{ question: \"\u05db\u05de\u05d4 \u05d9\u05de\u05d9\u05dd \u05e1\u05d5\u05e4\u05e8\u05d9\u05dd?\", options: [\"30\", \"40\", \"49\", \"50\"], answer: 2 },\n{ question: \"\u05de\u05d4 \u05e7\u05e8\u05d4 \u05dc\u05ea\u05dc\u05de\u05d9\u05d3\u05d9 \u05e8\u05d1\u05d9 \u05e2\u05e7\u05d9\u05d1\u05d0?\", options: [\"\u05e2\u05dc\u05d5 \u05dc\u05e1\u05d9\u05e0\u05d9\", \"\u05de\u05ea\u05d5 \u05d1\u05de\u05d2\u05e4\u05d4\", \"\u05e0\u05d9\u05e6\u05d7\u05d5 \u05de\u05dc\u05d7\u05de\u05d4\", \"\u05db\u05ea\u05d1\u05d5 \u05e1\u05e4\u05e8\"], answer: 1 }\n];<\/p>\n<p>let state = \"START\";\nlet idx = 0;\nlet score = 0;\nlet selected = null;\nlet timer = 20;\nlet interval;<\/p>\n<p>const root = document.getElementById(\"omer-game\");<\/p>\n<p>function render(){\n  root.innerHTML = \"\";<\/p>\n<p>  if(state === \"START\"){\n    root.innerHTML = `<\/p>\n<div style=\"text-align:center\">\n<h1 style=\"font-size:40px\">\u05e1\u05e4\u05d9\u05e8\u05ea \u05d4\u05e2\u05d5\u05de\u05e8<\/h1>\n<p>        <button id=\"startBtn\" style=\"padding:12px 24px; font-size:20px; background:#f59e0b; border:none; border-radius:10px;\">\u05d4\u05ea\u05d7\u05dc \u05de\u05e9\u05d7\u05e7<\/button>\n      <\/div>\n<p>    `;\n    document.getElementById(\"startBtn\").onclick = ()=>{\n      state=\"GAME\";\n      startTimer();\n      render();\n    };\n  }<\/p>\n<p>  else if(state === \"GAME\"){\n    const q = QUESTIONS[idx];<\/p>\n<p>    let optionsHTML = \"\";\n    q.options.forEach((opt,i)=>{\n      let style = \"background:#334155;\";\n      if(selected !== null){\n        if(i === q.answer) style = \"background:green;\";\n        else if(i === selected) style = \"background:red;\";\n        else style = \"opacity:0.3;\";\n      }<\/p>\n<p>      optionsHTML += `\n        <button data-i=\"${i}\" style=\"display:block; width:100%; margin:10px 0; padding:10px; border:none; border-radius:10px; ${style}\">\n          ${opt}\n        <\/button>\n      `;\n    });<\/p>\n<p>    root.innerHTML = `<\/p>\n<div>\n<div style=\"display:flex; justify-content:space-between\">\n<div>\u05e9\u05d0\u05dc\u05d4 ${idx+1}<\/div>\n<div>${timer}<\/div>\n<div>\u05e0\u05d9\u05e7\u05d5\u05d3: ${score}<\/div>\n<\/p><\/div>\n<h2 style=\"margin-top:20px\">${q.question}<\/h2>\n<p>        ${optionsHTML}\n        ${selected !== null ? `<button id=\"nextBtn\" style=\"margin-top:20px; padding:10px 20px;\">\u05d4\u05de\u05e9\u05da<\/button>` : \"\"}\n      <\/div>\n<p>    `;<\/p>\n<p>    document.querySelectorAll(\"button[data-i]\").forEach(btn=>{\n      btn.onclick = ()=>{\n        if(selected !== null) return;\n        selected = Number(btn.dataset.i);\n        if(selected === q.answer) score += 100;\n        stopTimer();\n        render();\n      };\n    });<\/p>\n<p>    if(selected !== null){\n      document.getElementById(\"nextBtn\").onclick = next;\n    }\n  }<\/p>\n<p>  else if(state === \"END\"){\n    root.innerHTML = `<\/p>\n<div style=\"text-align:center\">\n<h2 style=\"font-size:36px\">\u05db\u05dc \u05d4\u05db\u05d1\u05d5\u05d3!<\/h2>\n<div style=\"font-size:30px\">${score}<\/div>\n<p>        <button id=\"restartBtn\" style=\"margin-top:20px; padding:10px 20px;\">\u05de\u05e9\u05d7\u05e7 \u05d7\u05d3\u05e9<\/button>\n      <\/div>\n<p>    `;<\/p>\n<p>    document.getElementById(\"restartBtn\").onclick = ()=>{\n      state=\"START\";\n      idx=0;\n      score=0;\n      selected=null;\n      timer=20;\n      render();\n    };\n  }\n}<\/p>\n<p>function next(){\n  idx++;\n  if(idx >= QUESTIONS.length){\n    state=\"END\";\n  } else {\n    selected=null;\n    timer=20;\n    startTimer();\n  }\n  render();\n}<\/p>\n<p>function startTimer(){\n  stopTimer();\n  interval = setInterval(()=>{\n    timer--;\n    if(timer <= 0){\n      selected = null;\n      next();\n    }\n    render();\n  },1000);\n}\n\nfunction stopTimer(){\n  clearInterval(interval);\n}\n\nrender();\n\n})();\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2682107","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/posts\/2682107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2682107"}],"version-history":[{"count":7,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/posts\/2682107\/revisions"}],"predecessor-version":[{"id":2682130,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=\/wp\/v2\/posts\/2682107\/revisions\/2682130"}],"wp:attachment":[{"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2682107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2682107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hemdat-yamim.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2682107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}