{"id":2155,"date":"2024-10-21T14:48:44","date_gmt":"2024-10-21T14:48:44","guid":{"rendered":"https:\/\/livingplace.pt\/?page_id=2155"},"modified":"2026-04-02T18:03:28","modified_gmt":"2026-04-02T18:03:28","slug":"cadeado-en","status":"publish","type":"page","link":"https:\/\/livingplace.pt\/en_gb\/cadeado-en\/","title":{"rendered":"Cadeado EN"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2155\" class=\"elementor elementor-2155\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2c3cc33 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2c3cc33\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-19d20e0\" data-id=\"19d20e0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8079b1c elementor-widget elementor-widget-image\" data-id=\"8079b1c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"754\" src=\"https:\/\/livingplace.pt\/wp-content\/uploads\/2024\/10\/NOVO_Cadeado_042-EN.png\" class=\"attachment-large size-large wp-image-2154\" alt=\"Cadeado EN\" srcset=\"https:\/\/livingplace.pt\/wp-content\/uploads\/2024\/10\/NOVO_Cadeado_042-EN.png 940w, https:\/\/livingplace.pt\/wp-content\/uploads\/2024\/10\/NOVO_Cadeado_042-EN-600x503.png 600w, https:\/\/livingplace.pt\/wp-content\/uploads\/2024\/10\/NOVO_Cadeado_042-EN-768x644.png 768w, https:\/\/livingplace.pt\/wp-content\/uploads\/2024\/10\/NOVO_Cadeado_042-EN-14x12.png 14w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-60810fe elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"60810fe\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a783c7\" data-id=\"5a783c7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fa47438 elementor-widget elementor-widget-html\" data-id=\"fa47438\" 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<!DOCTYPE html>\n<html>\n<head>\n    <title>Cadeado EN<\/title>\n    <style>\n        \/* Seus estilos CSS aqui *\/\n        #pontuacao {\n            background-color: white;\n            color: black;\n            padding: 10px;\n        }\n    <\/style>\n<\/head>\n<body>\n    <input type=\"text\" id=\"numero\" placeholder=\"Enter a number\">\n    <button onclick=\"verificar()\">Check<\/button>\n    <p id=\"resultado\"><\/p>\n    <p id=\"dica\"><\/p>\n    <p id=\"pontuacao\">Score: 600<\/p>\n\n    <script>\n        const numeroCorreto = 42; \/\/ N\u00famero secreto\n        let pontuacao = 600;\n        let intervalo;\n\n        const dicas = [\n            \"The number is even.\",\n            \"The number is greater than 30.\",\n            \"The number is less than 80.\",\n            \"The number is divisible by 2.\",\n            \"The sum of the digits is equal to 6.\",\n            \"All numbers are different.\",\n            \"The number is between 0 and 999.\",\n            \"The number is between 30 and 50.\",\n            \"The number is between 40 and 45.\"\n        ];\n\n        function iniciarContagem() {\n            intervalo = setInterval(() => {\n                pontuacao--;\n                document.getElementById(\"pontuacao\").textContent = `Score: ${pontuacao}`;\n            }, 1000);\n        }\n\n        function verificar() {\n            const numeroDigitado = parseInt(document.getElementById('numero').value);\n            const resultado = document.getElementById('resultado');\n            const dica = document.getElementById('dica');\n\n            if (isNaN(numeroDigitado)) {\n                resultado.textContent = \"Please enter a valid number.\";\n                dica.textContent = \"\";\n                return;\n            }\n\n            if (numeroDigitado === numeroCorreto) {\n                resultado.textContent = \"Congratulations! Hit 042!!\";\n                resultado.style.color = \"green\";\n                clearInterval(intervalo);\n                setTimeout(() => {\n                    resultado.textContent = \"\";\n                    dica.textContent = \"\";\n                    alert(`Good! You got 042 correct. Final score =  ${pontuacao}`);\n                }, 5000);\n            } else {\n                resultado.textContent = \"Wrong. Try again.\";\n                resultado.style.color = \"red\";\n                setTimeout(() => {\n                    resultado.textContent = \"\";\n                    dica.textContent = \"\";\n                    darDica();\n                }, 5000);\n            }\n        }\n\n        function darDica() {\n            const dicaElement = document.getElementById('dica');\n            let dicaAleatoria = dicas[Math.floor(Math.random() * dicas.length)];\n            dicaElement.textContent = dicaAleatoria;\n        }\n\n        window.onload = iniciarContagem;\n    <\/script>\n<\/body>\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Cadeado EN Check Score: 600<\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-2155","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/pages\/2155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/comments?post=2155"}],"version-history":[{"count":1,"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/pages\/2155\/revisions"}],"predecessor-version":[{"id":4436,"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/pages\/2155\/revisions\/4436"}],"wp:attachment":[{"href":"https:\/\/livingplace.pt\/en_gb\/wp-json\/wp\/v2\/media?parent=2155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}