{"id":3963,"date":"2026-03-06T12:26:09","date_gmt":"2026-03-06T12:26:09","guid":{"rendered":"https:\/\/mundakasurfshopschool.com\/?page_id=3963"},"modified":"2026-03-06T12:26:42","modified_gmt":"2026-03-06T12:26:42","slug":"elementor-3963","status":"publish","type":"page","link":"https:\/\/mundakasurfshopschool.com\/en\/elementor-3963\/","title":{"rendered":"Elementor #3963"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3963\" class=\"elementor elementor-3963\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4f5baa3 e-flex e-con-boxed e-con e-parent\" data-id=\"4f5baa3\" 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-eb36ce5 elementor-widget elementor-widget-html\" data-id=\"eb36ce5\" 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=\"teste-popup\" style=\"position: relative; margin: 50px;\"><\/div>\r\n\r\n<script>\r\nconst container = document.getElementById(\"teste-popup\");\r\nconst borderRadius = 6; \/\/ igual ao seu calend\u00e1rio\r\n\r\n\/\/ Cria bot\u00e3o para abrir o popup\r\nconst abrirBtn = document.createElement(\"button\");\r\nabrirBtn.innerText = \"Abrir Popup\";\r\ncontainer.appendChild(abrirBtn);\r\n\r\nabrirBtn.addEventListener(\"click\", () => {\r\n  \/\/ Remove popup anterior\r\n  document.querySelectorAll(\".booking-time-popup\").forEach(el => el.remove());\r\n\r\n  const popup = document.createElement(\"div\");\r\n  popup.className = \"booking-time-popup\";\r\n  popup.style.position = \"absolute\";\r\n  popup.style.zIndex = 9999;\r\n  popup.style.width = \"220px\";\r\n  popup.style.background = \"#fff\";\r\n  popup.style.border = \"1px solid #ccc\";\r\n  popup.style.padding = \"6px\";\r\n  popup.style.borderRadius = borderRadius + \"px\";\r\n  popup.style.boxShadow = \"0 2px 6px rgba(0,0,0,0.2)\";\r\n  popup.style.top = \"40px\"; \/\/ abaixo do bot\u00e3o\r\n  popup.style.left = \"0px\";\r\n\r\n  container.appendChild(popup);\r\n\r\n  \/\/ Fun\u00e7\u00e3o para criar linha de turno\r\n  function adicionarLinhaTurno(horario = \"\") {\r\n    const linha = document.createElement(\"div\");\r\n    linha.style.display = \"flex\";\r\n    linha.style.alignItems = \"center\";\r\n    linha.style.justifyContent = \"space-between\";\r\n    linha.style.marginBottom = \"4px\";\r\n    linha.style.gap = \"4px\";\r\n\r\n    \/\/ SELECT\r\n    const select = document.createElement(\"select\");\r\n    [\"08:00\",\"09:00\",\"10:00\"].forEach(h => {\r\n      const o = document.createElement(\"option\");\r\n      o.value = h;\r\n      o.innerText = h;\r\n      select.appendChild(o);\r\n    });\r\n    select.value = horario || \"08:00\";\r\n    linha.appendChild(select);\r\n\r\n    \/\/ Container de bot\u00f5es\r\n    const btnContainer = document.createElement(\"div\");\r\n    btnContainer.style.display = \"flex\";\r\n    btnContainer.style.gap = \"2px\";\r\n\r\n    \/\/ BOT\u00c3O +\r\n    const btnAdd = document.createElement(\"button\");\r\n    btnAdd.innerText = \"+\";\r\n    btnAdd.style.cursor = \"pointer\";\r\n    btnContainer.appendChild(btnAdd);\r\n\r\n    \/\/ BOT\u00c3O x\r\n    const btnDel = document.createElement(\"button\");\r\n    btnDel.innerText = \"x\";\r\n    btnDel.style.cursor = \"pointer\";\r\n    btnDel.style.display = popup.children.length === 0 ? \"none\" : \"inline-block\"; \/\/ primeira linha sem x\r\n    btnContainer.appendChild(btnDel);\r\n\r\n    linha.appendChild(btnContainer);\r\n    popup.appendChild(linha);\r\n\r\n    \/\/ Click + adiciona nova linha\r\n    btnAdd.addEventListener(\"click\", (ev) => {\r\n      ev.stopPropagation();\r\n      adicionarLinhaTurno();\r\n    });\r\n\r\n    \/\/ Click x remove linha\r\n    btnDel.addEventListener(\"click\", (ev) => {\r\n      ev.stopPropagation();\r\n      linha.remove();\r\n    });\r\n  }\r\n\r\n  \/\/ Cria primeira linha\r\n  adicionarLinhaTurno();\r\n\r\n  \/\/ BOT\u00c3O OK para testar salvar\r\n  const okBtn = document.createElement(\"button\");\r\n  okBtn.innerText = \"\u2705 Salvar\";\r\n  okBtn.style.marginTop = \"6px\";\r\n  okBtn.style.width = \"100%\";\r\n  popup.appendChild(okBtn);\r\n\r\n  okBtn.addEventListener(\"click\", () => {\r\n    const horarios = Array.from(popup.querySelectorAll(\"select\")).map(s => s.value);\r\n    alert(\"Hor\u00e1rios selecionados: \" + horarios.join(\", \"));\r\n  });\r\n});\r\n<\/script>\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":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3963","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Elementor #3963 - Mundaka Surf Shop S.L<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mundakasurfshopschool.com\/en\/elementor-3963\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elementor #3963 - Mundaka Surf Shop S.L\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mundakasurfshopschool.com\/en\/elementor-3963\/\" \/>\n<meta property=\"og:site_name\" content=\"Mundaka Surf Shop S.L\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-06T12:26:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/elementor-3963\\\/\",\"url\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/elementor-3963\\\/\",\"name\":\"Elementor #3963 - Mundaka Surf Shop S.L\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#website\"},\"datePublished\":\"2026-03-06T12:26:09+00:00\",\"dateModified\":\"2026-03-06T12:26:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/elementor-3963\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mundakasurfshopschool.com\\\/elementor-3963\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/elementor-3963\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elementor #3963\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#website\",\"url\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/\",\"name\":\"Mundaka Surf Shop S.L\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#organization\",\"name\":\"Mundaka Surf Shop S.L\",\"url\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-Captura_desde_2024-11-19_11-26-37-removebg-preview-1.png\",\"contentUrl\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-Captura_desde_2024-11-19_11-26-37-removebg-preview-1.png\",\"width\":317,\"height\":318,\"caption\":\"Mundaka Surf Shop S.L\"},\"image\":{\"@id\":\"https:\\\/\\\/mundakasurfshopschool.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elementor #3963 - Mundaka Surf Shop S.L","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mundakasurfshopschool.com\/en\/elementor-3963\/","og_locale":"en_GB","og_type":"article","og_title":"Elementor #3963 - Mundaka Surf Shop S.L","og_url":"https:\/\/mundakasurfshopschool.com\/en\/elementor-3963\/","og_site_name":"Mundaka Surf Shop S.L","article_modified_time":"2026-03-06T12:26:42+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mundakasurfshopschool.com\/elementor-3963\/","url":"https:\/\/mundakasurfshopschool.com\/elementor-3963\/","name":"Elementor #3963 - Mundaka Surf Shop S.L","isPartOf":{"@id":"https:\/\/mundakasurfshopschool.com\/#website"},"datePublished":"2026-03-06T12:26:09+00:00","dateModified":"2026-03-06T12:26:42+00:00","breadcrumb":{"@id":"https:\/\/mundakasurfshopschool.com\/elementor-3963\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mundakasurfshopschool.com\/elementor-3963\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mundakasurfshopschool.com\/elementor-3963\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/mundakasurfshopschool.com\/"},{"@type":"ListItem","position":2,"name":"Elementor #3963"}]},{"@type":"WebSite","@id":"https:\/\/mundakasurfshopschool.com\/#website","url":"https:\/\/mundakasurfshopschool.com\/","name":"Mundaka Surf Shop S.L","description":"","publisher":{"@id":"https:\/\/mundakasurfshopschool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mundakasurfshopschool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/mundakasurfshopschool.com\/#organization","name":"Mundaka Surf Shop S.L","url":"https:\/\/mundakasurfshopschool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/mundakasurfshopschool.com\/#\/schema\/logo\/image\/","url":"https:\/\/mundakasurfshopschool.com\/wp-content\/uploads\/2024\/11\/cropped-Captura_desde_2024-11-19_11-26-37-removebg-preview-1.png","contentUrl":"https:\/\/mundakasurfshopschool.com\/wp-content\/uploads\/2024\/11\/cropped-Captura_desde_2024-11-19_11-26-37-removebg-preview-1.png","width":317,"height":318,"caption":"Mundaka Surf Shop S.L"},"image":{"@id":"https:\/\/mundakasurfshopschool.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/pages\/3963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/comments?post=3963"}],"version-history":[{"count":5,"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/pages\/3963\/revisions"}],"predecessor-version":[{"id":3969,"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/pages\/3963\/revisions\/3969"}],"wp:attachment":[{"href":"https:\/\/mundakasurfshopschool.com\/en\/wp-json\/wp\/v2\/media?parent=3963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}