{"id":23036,"date":"2021-05-05T10:10:08","date_gmt":"2021-05-05T10:10:08","guid":{"rendered":"https:\/\/www.thunderbolt-collective.com\/?post_type=cpt_layouts&#038;p=23036"},"modified":"2024-09-20T11:11:10","modified_gmt":"2024-09-20T11:11:10","slug":"3dtour-popup","status":"publish","type":"cpt_layouts","link":"https:\/\/www.thunderbolt-collective.com\/de\/layouts\/3dtour-popup\/","title":{"rendered":"3DTour popup DE"},"content":{"rendered":"\t\t<div data-elementor-type=\"cpt_layouts\" data-elementor-id=\"23036\" class=\"elementor elementor-23036 elementor-12962\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cf4e536 elementor-section-full_width elementor-section-height-default elementor-section-height-default sc_fly_static\" data-id=\"cf4e536\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e45dd90 sc_content_align_inherit sc_layouts_column_icons_position_left sc_fly_static\" data-id=\"e45dd90\" data-element_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-91efb08 sc_fly_static elementor-widget elementor-widget-trx_widget_banner\" data-id=\"91efb08\" data-element_type=\"widget\" data-widget_type=\"trx_widget_banner.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"widget_area sc_widget_banner\"><aside class=\"widget trx_addons_show_on_permanent widget_banner\"><div id=\"tour-placeholder\">\n  <div class=\"settings-msg\">\n   Diesen Inhalt d\u00fcrfen wir aufgrund Ihrer Cookie-Einstellungen nicht anzeigen. Bitte aktivieren Sie in Ihren <button class=\"cky-banner-element\">Einstellungen<\/button> \"Funktionale\".\n  <\/div>\n<\/div>\n\n<script>\n  function getCookie(key) {\n    const cookies = document.cookie.split(\"; \").reduce((ac, cv) => {\n      const [k, v] = cv.split(\"=\");\n      ac[k] = v ? decodeURIComponent(v) : \"\"; \/\/ Ensure the cookie value is decoded\n      return ac;\n    }, {});\n    const consent = cookies[\"cookieyes-consent\"];\n    if (consent) {\n      const consentValues = consent.split(\",\").reduce((obj, pair) => {\n        let [k, v] = pair.split(\":\");\n        obj[k.trim()] = v ? v.trim() : \"\";\n        return obj;\n      }, {});\n      return consentValues[key] || null; \n    }\n    return null;\n  }\n\n  function loadTour() {\n    const iframe = document.createElement(\"iframe\");\n    iframe.src = \n      \"https:\/\/3d-tour.linsenspektrum.de\/de\/tour\/thunderbolt-collective?autoplay=1&play=1&sr=-3.01,1&ss=74\";\n    iframe.width = \"100%\";\n    iframe.height = \"700\";\n    iframe.frameBorder = \"0\";\n    iframe.style.border = \"0\";\n    iframe.allowFullscreen = true;\n    iframe.setAttribute(\"aria-hidden\", \"false\");\n    iframe.setAttribute(\"tabindex\", \"0\");\n    \n    \/\/ Security best practices\n    iframe.sandbox = \"allow-scripts allow-same-origin\"; \/\/ Restrict iframe behavior\n    iframe.referrerPolicy = \"no-referrer\"; \/\/ Reduce information leakage\n\n    const placeholder = document.getElementById(\"tour-placeholder\");\n    \n\n    while (placeholder.firstChild) {\n      placeholder.removeChild(placeholder.firstChild); \/\/ Safely remove all child nodes\n    }\n    placeholder.appendChild(iframe); \/\/ Append iframe securely\n  }\n\n  if (getCookie(\"consent\") === \"yes\" && getCookie(\"functional\") === \"yes\") {\n    loadTour();\n  }\n\n  document.addEventListener(\"cookieyes_consent_update\", function (eventData) {\n    const data = eventData.detail;\n    if (data.accepted.includes(\"functional\")) {\n      loadTour(); \/\/ Load tour if functional cookies are accepted\n    }\n  });\n<\/script><\/aside><\/div>\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},"author":1,"featured_media":0,"template":"","cpt_layouts_group":[],"class_list":["post-23036","cpt_layouts","type-cpt_layouts","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/cpt_layouts\/23036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/cpt_layouts"}],"about":[{"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/types\/cpt_layouts"}],"author":[{"embeddable":true,"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":6,"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/cpt_layouts\/23036\/revisions"}],"predecessor-version":[{"id":23142,"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/cpt_layouts\/23036\/revisions\/23142"}],"wp:attachment":[{"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/media?parent=23036"}],"wp:term":[{"taxonomy":"cpt_layouts_group","embeddable":true,"href":"https:\/\/www.thunderbolt-collective.com\/de\/wp-json\/wp\/v2\/cpt_layouts_group?post=23036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}