{"id":2906,"date":"2023-03-24T00:17:58","date_gmt":"2023-03-23T22:17:58","guid":{"rendered":"https:\/\/2023.oliver-albrecht.com\/?page_id=2906"},"modified":"2023-09-25T05:07:22","modified_gmt":"2023-09-25T03:07:22","slug":"consultation-appointment","status":"publish","type":"page","link":"https:\/\/oliver-albrecht.com\/en\/beratungstermin\/","title":{"rendered":"1:1 consultation appointment"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2906\" class=\"elementor elementor-2906\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1d6c273 elementor-section-full_width elementor-section-content-middle elementor-section-height-min-height elementor-section-items-top elementor-section-height-default\" data-id=\"1d6c273\" 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-58179a7\" data-id=\"58179a7\" 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-74d8fa7 elementor-widget elementor-widget-html\" data-id=\"74d8fa7\" 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<iframe id=\"etifr\" src=\"https:\/\/www.etermin.net\/mehr-sichtbarkeit\/serviceid\/422839?noinitscroll=1\" height=\"100%\" width=\"100%\" scrolling=\"no\" frameborder=\"0\"><\/iframe><script src='https:\/\/www.eTermin.net\/js\/resizecustomersitescroll.min.js' type='text\/javascript'><\/script>\n\n<script>\n\/\/ Funktion zum Hinzuf\u00fcgen von Parametern zur URL\nfunction addParamsToIframeUrl(baseUrl, params) {\n    let url = new URL(baseUrl);\n    for (const [key, value] of Object.entries(params)) {\n        if (value !== null && value !== undefined && value !== '') {\n            url.searchParams.append(key, value);\n        }\n    }\n    return url.toString();\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    \/\/ Abrufen der URL-Parameter\n    const urlParams = new URLSearchParams(window.location.search);\n    const firstname = urlParams.get(\"firstname\");\n    const lastname = urlParams.get(\"lastname\");\n    const salutation = urlParams.get(\"salutation\");\n    const email = urlParams.get(\"email\");\n    const city = urlParams.get(\"city\");\n    const zip = urlParams.get(\"zip\");\n    const street = urlParams.get(\"street\");\n    const phone = urlParams.get(\"phone\");\n    const additional3 = urlParams.get(\"additional3\");\n    const additional4 = urlParams.get(\"additional4\");\n    const additional5 = urlParams.get(\"additional6\");\n\n    \/\/ Abrufen des iframe-Elements\n    const iframe = document.getElementById(\"etifr\");\n    \n    if (iframe) {\n        \/\/ Hinzuf\u00fcgen der Parameter zur `iframe`-URL\n        const newUrl = addParamsToIframeUrl(\"https:\/\/www.etermin.net\/mehr-sichtbarkeit\/serviceid\/422839?noinitscroll=1\", {\n            firstname: firstname,\n            lastname: lastname,\n            salutation: salutation,\n            email: email,\n            city: city,\n            zip: zip,\n            street: street,\n            phone: phone,\n            additional3: additional3,\n            additional4: additional4,\n            additional5: additional5\n        });\n        \n        \/\/ Aktualisierung der `iframe`-URL\n        iframe.src = newUrl;\n    }\n});\n<\/script>\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":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":100,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2906","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/pages\/2906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/comments?post=2906"}],"version-history":[{"count":0,"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/pages\/2906\/revisions"}],"wp:attachment":[{"href":"https:\/\/oliver-albrecht.com\/en\/wp-json\/wp\/v2\/media?parent=2906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}