{"id":339,"date":"2025-02-14T15:09:13","date_gmt":"2025-02-14T15:09:13","guid":{"rendered":"https:\/\/ojoaosanti.com\/interactivequiz\/?page_id=339"},"modified":"2025-03-09T13:56:33","modified_gmt":"2025-03-09T13:56:33","slug":"fourth-question-interactive-quiz","status":"publish","type":"page","link":"https:\/\/ojoaosanti.com\/interactivequiz\/fourth-question-interactive-quiz\/","title":{"rendered":"[ #4 ] Fourth Question \u2013 Interactive Quiz\u00a0\u00a0"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"339\" class=\"elementor elementor-339\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fd6e458 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-parent\" data-id=\"fd6e458\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-6999b08 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"6999b08\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-291c157 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"291c157\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/ojoaosanti.com\/interactivequiz\/3-third-question-interactive-quiz\/\">\n\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-far-arrow-alt-circle-left\" viewBox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z\"><\/path><\/svg>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1b29d4b e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"1b29d4b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-887c6d7 elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"887c6d7\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeIn&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">4\/27<\/h2>\t\t\t\t<\/div>\n\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<div class=\"elementor-element elementor-element-2571953 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-parent\" data-id=\"2571953\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-0814418 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"0814418\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6b15fa8 elementor-invisible elementor-widget elementor-widget-progress\" data-id=\"6b15fa8\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeIn&quot;}\" data-widget_type=\"progress.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"elementor-progress-wrapper\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"12\">\n\t\t\t<div class=\"elementor-progress-bar\" data-max=\"12\">\n\t\t\t\t<span class=\"elementor-progress-text\"><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-774f702 elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"774f702\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeIn&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How many pets do you have?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d0e40d9 elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"d0e40d9\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeIn&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Knowing your pet count helps us tailor a design that\u2019s both stylish and practical for your home and pets<\/h2>\t\t\t\t<\/div>\n\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<div class=\"elementor-element elementor-element-aa639fc e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-parent\" data-id=\"aa639fc\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-9e27d18 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"9e27d18\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a7bc632 e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"a7bc632\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;No pets\" 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\t<a href=\"https:\/\/ojoaosanti.com\/interactivequiz\/fifth-question-interactive-quiz\/\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/buttons-q6.png\" class=\"attachment-full size-full wp-image-1005\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/buttons-q6.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/buttons-q6-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t<div class=\"elementor-element elementor-element-a5c20f3 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"a5c20f3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5d7ef8b e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"5d7ef8b\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;Cats (Popup)\" 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\t<a href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjEwNDkiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/2.png\" class=\"attachment-full size-full wp-image-1000\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/2.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/2-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t<div class=\"elementor-element elementor-element-06ec53f e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"06ec53f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a86b63e e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"a86b63e\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;Small Dogs (Popup)\" 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\t<a href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjEwNDkiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/3.png\" class=\"attachment-full size-full wp-image-1001\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/3.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/3-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t<div class=\"elementor-element elementor-element-d9b7eae e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"d9b7eae\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7b89901 e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"7b89901\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;Medium Dogs (Popup)\" 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\t<a href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjEwNDkiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/4.png\" class=\"attachment-full size-full wp-image-1002\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/4.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/4-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t<div class=\"elementor-element elementor-element-0fa7683 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"0fa7683\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f32df40 e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"f32df40\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;Large Dogs (Popup)\" 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\t<a href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjEwNDkiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/5.png\" class=\"attachment-full size-full wp-image-1003\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/5.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/5-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t<div class=\"elementor-element elementor-element-ad266eb e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-child\" data-id=\"ad266eb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-272bf8e e-transform quiz-button elementor-invisible elementor-widget elementor-widget-image\" data-id=\"272bf8e\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;,&quot;_transform_scale_effect_hover&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1.1,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;_transform_scale_effect_hover_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-question=\"quiz4\" data-answer=\"&lt;b&gt;How many pets do you have?&lt;\/b&gt; &lt;br&gt;Other (Popup)\" 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\t<a href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjEwNDkiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"371\" src=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/6.png\" class=\"attachment-full size-full wp-image-1004\" alt=\"\" srcset=\"https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/6.png 378w, https:\/\/ojoaosanti.com\/interactivequiz\/wp-content\/uploads\/2025\/03\/6-300x294.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3ad4688 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-equal-height-no e-con e-parent\" data-id=\"3ad4688\" 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-62b8072 elementor-widget elementor-widget-html\" data-id=\"62b8072\" 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<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n    console.log(\"Quiz tracking script loaded!\");\r\n\r\n    \/\/ Captura cliques nos bot\u00f5es do quiz\r\n    document.querySelectorAll(\".quiz-button\").forEach(function (button) {\r\n        button.addEventListener(\"click\", function () {\r\n            let question = this.getAttribute(\"data-question\");\r\n            let answer = this.getAttribute(\"data-answer\");\r\n\r\n            if (!question) {\r\n                console.error(\"Atributo 'data-question' ausente no bot\u00e3o!\");\r\n                return;\r\n            }\r\n\r\n            if (answer) {\r\n                localStorage.setItem(question, answer);\r\n                console.log(`Resposta salva: ${question} = ${answer}`);\r\n            }\r\n\r\n            \/\/ Aguarda o popup ser aberto e detectar o formul\u00e1rio dentro dele\r\n            let checkPopup = setInterval(() => {\r\n                let popup = document.querySelector(\".dialog-widget-content\"); \/\/ Verifica se o popup abriu\r\n                if (popup) {\r\n                    clearInterval(checkPopup);\r\n                    console.log(\"Popup detectado, aguardando formul\u00e1rio...\");\r\n\r\n                    let checkForm = setInterval(() => {\r\n                        let form = popup.querySelector(\"form\");\r\n                        if (form) {\r\n                            clearInterval(checkForm);\r\n                            console.log(\"Formul\u00e1rio encontrado dentro do popup!\");\r\n\r\n                            let formInputs = form.querySelectorAll(\"input, textarea, select\");\r\n                            if (formInputs.length > 0) {\r\n                                console.log(\"Campos de entrada detectados!\");\r\n\r\n                                \/\/ Captura os valores ao enviar\r\n                                form.addEventListener(\"submit\", function (event) {\r\n                                    event.preventDefault();\r\n\r\n                                    let formAnswer = \"<b>How many pets do you have?<\/b> <br>\";\r\n                                    formInputs.forEach(function (input) {\r\n                                        if ((input.type === \"checkbox\" || input.type === \"radio\") && input.checked) {\r\n                                            formAnswer += `${input.name}: ${input.value}, `;\r\n                                        } else if (input.value.trim() !== \"\") {\r\n                                            formAnswer += `${input.name}: ${input.value}, `;\r\n                                        }\r\n                                    });\r\n\r\n                                    localStorage.setItem(question, formAnswer.trim());\r\n                                    console.log(`Resposta salva do popup: ${question} = ${formAnswer.trim()}`);\r\n\r\n                                    \/\/ Fecha o popup automaticamente ap\u00f3s salvar os dados\r\n                                    setTimeout(() => {\r\n                                        let closeButton = document.querySelector(\".dialog-close-button\");\r\n                                        if (closeButton) closeButton.click();\r\n                                    }, 500);\r\n                                });\r\n                            } else {\r\n                                console.warn(\"Nenhum input encontrado no formul\u00e1rio.\");\r\n                            }\r\n                        }\r\n                    }, 500);\r\n                }\r\n            }, 500);\r\n        });\r\n    });\r\n});\r\n<\/script>\r\n\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>4\/27 How many pets do you have? Knowing your pet count helps us tailor a design that\u2019s both stylish and practical for your home and pets<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-339","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/pages\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":0,"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/pages\/339\/revisions"}],"wp:attachment":[{"href":"https:\/\/ojoaosanti.com\/interactivequiz\/wp-json\/wp\/v2\/media?parent=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}