{"id":296,"date":"2026-03-25T14:59:16","date_gmt":"2026-03-25T14:59:16","guid":{"rendered":"https:\/\/www.ppcninja.co.il\/?page_id=296"},"modified":"2026-03-25T16:55:45","modified_gmt":"2026-03-25T16:55:45","slug":"boby_click","status":"publish","type":"page","link":"https:\/\/www.ppcninja.co.il\/index.php\/boby_click\/","title":{"rendered":"\u05d1\u05d5\u05d1\u05d9 \u05e7\u05dc\u05d9\u05e7\u05d9\u05dd"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"296\" class=\"elementor elementor-296\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0f40e0b e-flex e-con-boxed e-con e-parent\" data-id=\"0f40e0b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4106831 elementor-widget elementor-widget-html\" data-id=\"4106831\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"game-container-unique\">\r\n    <style>\r\n      #game-container-unique {\r\n        font-family: Arial, sans-serif;\r\n        text-align: center;\r\n        background: #f2f2f2;\r\n        padding: 20px;\r\n        direction: rtl;\r\n      }\r\n\r\n      #game-container-unique button {\r\n        font-size: 18px;\r\n        padding: 10px 18px;\r\n        margin: 6px;\r\n        border: none;\r\n        border-radius: 10px;\r\n        cursor: pointer;\r\n        transition: transform 0.1s;\r\n      }\r\n      \r\n      #game-container-unique button:active { transform: scale(0.95); }\r\n\r\n      #clickBtn { background: #4CAF50; color: white; }\r\n      #upgradeBtn { background: #2196F3; color: white; }\r\n      #timeBtn { background: #9c27b0; color: white; }\r\n      #restartBtn { background: #ff9800; color: white; display: none; }\r\n\r\n      .box {\r\n        background: white;\r\n        display: inline-block;\r\n        padding: 15px;\r\n        border-radius: 12px;\r\n        box-shadow: 0 0 10px #ccc;\r\n        margin-top: 10px;\r\n      }\r\n\r\n      #scores { margin-top: 20px; min-width: 150px; }\r\n      ol { text-align: right; display: inline-block; }\r\n    <\/style>\r\n\r\n    <h1>\u05e0\u05e7\u05d5\u05d3\u05d5\u05ea: <span id=\"score\">0<\/span><\/h1>\r\n    <h2>\u05d6\u05de\u05df: <span id=\"time\">30<\/span><\/h2>\r\n\r\n    <button id=\"clickBtn\" onclick=\"addPoint()\">\r\n      \u05dc\u05d7\u05e5 \u05e2\u05dc\u05d9\u05d9! (+<span id=\"powerText\">1<\/span> \u05dc\u05db\u05dc \u05e7\u05dc\u05d9\u05e7)\r\n    <\/button>\r\n    <br>\r\n\r\n    <button id=\"upgradeBtn\" onclick=\"upgrade()\">\r\n      \u05e9\u05d3\u05e8\u05d5\u05d2 \u05db\u05d5\u05d7 (<span id=\"upCost\">10<\/span>)\r\n    <\/button>\r\n\r\n    <button id=\"timeBtn\" onclick=\"buyTime()\">\r\n      +5 \u05d6\u05de\u05df (<span id=\"timeCost\">15<\/span>)\r\n    <\/button>\r\n\r\n    <br>\r\n    <button id=\"restartBtn\" onclick=\"startGame()\">\u05d4\u05ea\u05d7\u05dc \u05de\u05d7\u05d3\u05e9 \ud83d\udd04<\/button>\r\n    <h3 id=\"msg\"><\/h3>\r\n    <div id=\"scores\" class=\"box\"><\/div>\r\n\r\n    <script>\r\n    (function() {\r\n        let score, time, power, gameOver, timer;\r\n        let upgradeCost = 10;\r\n        let timeCost = 15;\r\n        let clicks = 0;\r\n        let highScores = JSON.parse(localStorage.getItem(\"highScores\")) || [];\r\n\r\n        window.startGame = function() {\r\n            score = 0;\r\n            time = 30;\r\n            power = 1;\r\n            gameOver = false;\r\n            clicks = 0;\r\n            upgradeCost = 10;\r\n            timeCost = 15;\r\n\r\n            document.getElementById(\"restartBtn\").style.display = \"none\";\r\n            document.getElementById(\"msg\").innerText = \"\";\r\n            clearInterval(timer);\r\n\r\n            timer = setInterval(() => {\r\n                time--;\r\n                updateUI();\r\n                if (time <= 0) endGame();\r\n            }, 1000);\r\n\r\n            updateUI();\r\n            renderScores();\r\n        };\r\n\r\n        window.addPoint = function() {\r\n            if (gameOver) return;\r\n            score += power;\r\n            clicks++;\r\n            updateUI();\r\n        };\r\n\r\n        window.upgrade = function() {\r\n            if (gameOver) return;\r\n            if (score >= upgradeCost) {\r\n                score -= upgradeCost;\r\n                power++;\r\n                upgradeCost += 5;\r\n                document.getElementById(\"msg\").innerText = \"\u05e9\u05d5\u05d3\u05e8\u05d2 \u05db\u05d5\u05d7 \ud83d\udcaa\";\r\n                updateUI();\r\n            } else {\r\n                document.getElementById(\"msg\").innerText = \"\u05d0\u05d9\u05df \u05de\u05e1\u05e4\u05d9\u05e7 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea!\";\r\n            }\r\n        };\r\n\r\n        window.buyTime = function() {\r\n            if (gameOver) return;\r\n            if (score >= timeCost) {\r\n                score -= timeCost;\r\n                time += 5;\r\n                timeCost += 7;\r\n                document.getElementById(\"msg\").innerText = \"+5 \u05e9\u05e0\u05d9\u05d5\u05ea \u23f1\ufe0f\";\r\n                updateUI();\r\n            } else {\r\n                document.getElementById(\"msg\").innerText = \"\u05d0\u05d9\u05df \u05de\u05e1\u05e4\u05d9\u05e7 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05dc\u05d6\u05de\u05df!\";\r\n            }\r\n        };\r\n\r\n        function endGame() {\r\n            gameOver = true;\r\n            clearInterval(timer);\r\n            let cps = clicks \/ 30;\r\n            document.getElementById(\"msg\").innerText = \"\u05e0\u05d2\u05de\u05e8 \u05d4\u05de\u05e9\u05d7\u05e7! \ud83c\udf89 CPS: \" + cps.toFixed(2);\r\n            document.getElementById(\"restartBtn\").style.display = \"inline-block\";\r\n            saveScore();\r\n        }\r\n\r\n        function saveScore() {\r\n            highScores.push(score);\r\n            highScores.sort((a, b) => b - a);\r\n            highScores = highScores.slice(0, 10);\r\n            localStorage.setItem(\"highScores\", JSON.stringify(highScores));\r\n            renderScores();\r\n        }\r\n\r\n        function renderScores() {\r\n            let html = \"<h3>\ud83c\udfc6 \u05dc\u05d5\u05d7 \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea<\/h3><ol>\";\r\n            highScores.forEach(s => {\r\n                html += \"<li>\" + s + \"<\/li>\";\r\n            });\r\n            html += \"<\/ol>\";\r\n            document.getElementById(\"scores\").innerHTML = html;\r\n        }\r\n\r\n        function updateUI() {\r\n            document.getElementById(\"score\").innerText = score;\r\n            document.getElementById(\"time\").innerText = time;\r\n            document.getElementById(\"upCost\").innerText = upgradeCost;\r\n            document.getElementById(\"timeCost\").innerText = timeCost;\r\n            document.getElementById(\"powerText\").innerText = power;\r\n        }\r\n\r\n        \/\/ \u05d4\u05e4\u05e2\u05dc\u05d4 \u05e8\u05e7 \u05db\u05e9\u05d4\u05d3\u05e3 \u05de\u05d5\u05db\u05df\r\n        document.addEventListener(\"DOMContentLoaded\", startGame);\r\n        \/\/ \u05dc\u05de\u05e7\u05e8\u05d4 \u05e9\u05d0\u05dc\u05de\u05e0\u05d8\u05d5\u05e8 \u05db\u05d1\u05e8 \u05d8\u05e2\u05e0\u05d4 \u05d0\u05ea \u05d4\u05d3\u05e3\r\n        if (document.readyState === \"complete\" || document.readyState === \"interactive\") {\r\n            startGame();\r\n        }\r\n    })();\r\n    <\/script>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u05e0\u05e7\u05d5\u05d3\u05d5\u05ea: 0 \u05d6\u05de\u05df: 30 \u05dc\u05d7\u05e5 \u05e2\u05dc\u05d9\u05d9! (+1 \u05dc\u05db\u05dc \u05e7\u05dc\u05d9\u05e7) \u05e9\u05d3\u05e8\u05d5\u05d2 \u05db\u05d5\u05d7 (10) +5 \u05d6\u05de\u05df (15) \u05d4\u05ea\u05d7\u05dc \u05de\u05d7\u05d3\u05e9 \ud83d\udd04<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-296","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/pages\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":11,"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/pages\/296\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/pages\/296\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/www.ppcninja.co.il\/index.php\/wp-json\/wp\/v2\/media?parent=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}