{"id":274,"date":"2023-09-08T12:12:36","date_gmt":"2023-09-08T12:12:36","guid":{"rendered":"https:\/\/vip-leipzig.de\/?page_id=274"},"modified":"2023-09-11T09:47:31","modified_gmt":"2023-09-11T09:47:31","slug":"parkplatz-buchen","status":"publish","type":"page","link":"https:\/\/vip-leipzig.de\/index.php\/parkplatz-buchen\/","title":{"rendered":"Parkplatz Buchen"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"274\" class=\"elementor elementor-274\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0cbc1fc e-flex e-con-boxed e-con e-parent\" data-id=\"0cbc1fc\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9a5f1a5 elementor-widget elementor-widget-shortcode\" data-id=\"9a5f1a5\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\"><script> \n\n\t\t\tdocument.addEventListener(\"scroll\", function () {\n\t\t\t\tvar iframe = document.getElementById(\"parkingpro_booking_widgets_iframe\");\n\t\t\t\tvar rect = iframe.getBoundingClientRect();\n\t\t\t\tvar top_value = rect.top;\n\n\t\t\n\t\t\t\tiframe.contentWindow.postMessage({\n\t\t\t\t\tevent: \"parkingPro.widget.scroll\",\n\t\t\t\t\ttop: top_value\n\t\t\t\t}, \"*\");\n\t\t\t});\n\n\t\t\twindow.addEventListener(\"message\", function (e) { \n\t\t\t\tif(e.data.event === \"parkingPro.domain.reservationAdded\") {  \n\t    \t\tjQuery(\"html, body\").animate({\n\t        \t\tscrollTop: jQuery(\"#parkingpro_booking_widgets_iframe\").offset().top\n\t        \t}, 600); \n\t        }\n\n\t    \tif( e.data.event === \"parkingPro.ui.pageHeightChanged\" ) \n            {\n                var iframe = document.getElementById(\"parkingpro_booking_widgets_iframe\");\n                var minimumIframeHeight = parseInt(iframe.getAttribute(\"height\"), 10) || 0;\n                var requestedHeight = parseInt(e.data.newHeight, 10) || 0;\n                var targetHeight = Math.max(requestedHeight, minimumIframeHeight);\n                var currentHeight = Math.round(jQuery(iframe).height() || 0);\n\n                if (targetHeight > 0 && Math.abs(currentHeight - targetHeight) > 2) {\n                    jQuery(iframe).height(targetHeight);\n                }\n            }\n\n\t\t\tif ( e.data.event === \"parkingPro.ui.scroll\" )\n\t\t\t{\n\t\t\t\tvar scrollAppendElements = jQuery(\"\");\n\n\t\t\t\tvar headerHeight = scrollAppendElements\n\t\t\t\t\t.map(function (x) { \n\t\t\t\t\t\treturn jQuery(this).outerHeight();\n\t\t\t\t\t})\n\t\t\t\t\t.get()\n\t\t\t\t\t.reduce(function (prev, curr) {\n\t\t\t\t\t\treturn prev + curr;\n\t\t\t\t\t}, 0);\n\n\t\t\t\tjQuery(\"html, body\").animate({\n\t        \t\tscrollTop: jQuery(\"#parkingpro_booking_widgets_iframe\").offset().top + e.data.scrollTop - headerHeight\n\t        \t}, 600); \n\t\t\t}\n            \n\t        }, false);<\/script><iframe id=\"parkingpro_booking_widgets_iframe\" style=\"width: 100%; padding: 0; border: 0;\" src=\"about:blank\" width=\"100%\" height=\"2200\" frameborder=\"0\" scrolling=\"no\"><\/iframe>\n\t\t\t<script>\n\t\t\t\t(function () {\n\t\t\t\t\tlet iframe = document.querySelector(\"#parkingpro_booking_widgets_iframe\");\n\t\t\t\t\tlet iframeUrl = new URL(\"https:\\\/\\\/viparking-lej.myparking.pro\\\/reservations\\\/add?&culture=de-DE\");\n\t\t\t\t\tlet trackingId = 'G-K2T2YHXF31';\n\t\t\t\t\tlet iframeLoaded = false;\n\n\t\t\t\t\t\/\/ Try to get the adwords click id\n\t\t\t\t\tconst gclid = new URLSearchParams(window.location.search).get('gclid')\n\t\t\t\t\t\t|| (document.cookie.match(\/_gcl_aw=GCL\\.\\d+\\.([^;]+)\/)?.[1])\n\t\t\t\t\t\t|| null;\n\n\t\t\t\t\tif (gclid) {\n\t\t\t\t\t\tiframeUrl.searchParams.append('gclid', gclid);\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ Only load GA if needed\n\t\t\t\t\tif (!window.gtag) {\n\t\t\t\t\t\twindow.dataLayer = window.dataLayer || [];\n\t\t\t\t\t\twindow.gtag = function () { window.dataLayer.push(arguments); };\n\n\t\t\t\t\t\tgtag('js', new Date());\n\n\t\t\t\t\t\tconst s = document.createElement('script');\n\t\t\t\t\t\ts.type = 'text\/javascript';\n\t\t\t\t\t\ts.async = true;\n\t\t\t\t\t\ts.src = 'https:\/\/www.googletagmanager.com\/gtag\/js?id=' + trackingId;\n\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script')[0];\n\t\t\t\t\t\tscripts.parentNode.insertBefore(s, scripts);\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ Even if GA was already loaded, it could have been configured for a different trackingId\n\t\t\t\t\t\/\/ So check if the trackingId was already configured. If so, don't send a page view event again.\n\t\t\t\t\tconst gtagConfigured = window.dataLayer.some(entry => entry[0] === 'config' && entry[1] === trackingId);\n\t\t\t\t\tgtag('config', trackingId, {\n\t\t\t\t\t\tsend_page_view: !gtagConfigured,\n\t\t\t\t\t\tcookie_flags: 'SameSite=None;Secure',\n\t\t\t\t\t\tlinker: {\n\t\t\t\t\t\t\tdomains: [location.host, iframeUrl.host],\n\t\t\t\t\t\t\taccept_incoming: true\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tgtag('get', trackingId, 'client_id', function (clientId) {\n\t\t\t\t\t\tiframeUrl.searchParams.append('_ga_client_id', clientId);\n\t\t\t\t\t\tiframe.src = iframeUrl.toString();\n\n\t\t\t\t\t\tiframeLoaded = true;\n\t\t\t\t\t});\n\n\t\t\t\t\t\/\/ Fallback in case gtag didn't load because of adblocker or other reasons.\n\t\t\t\t\t\/\/ We still want to load the iframe. Set to 2 seconds.\n\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\tif (iframeLoaded === false) {\n\t\t\t\t\t\t\tiframe.src = iframeUrl.toString();\n\t\t\t\t\t\t\tiframeLoaded = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 2000);\n\n\t\t\t\t\twindow.addEventListener('message', function (e) {\n\t\t\t\t\t\tif(new URL(e.origin).host === iframeUrl.host && e.data) {\n\t\t\t\t\t\t\tswitch (e.data.event) {\n\t\t\t\t\t\t\t\tcase 'parkingPro.googleAnalytics.gtag':\n\t\t\t\t\t\t\t\t\tgtag.apply(null, e.data.gtagArguments);\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'parkingPro.googleTagManager.dataLayer':\n\t\t\t\t\t\t\t\t\tdataLayer.push(e.data.dataLayerArguments);\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})();\n\t\t\t<\/script>\n\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\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-274","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/pages\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":8,"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/pages\/274\/revisions"}],"predecessor-version":[{"id":639,"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/pages\/274\/revisions\/639"}],"wp:attachment":[{"href":"https:\/\/vip-leipzig.de\/index.php\/wp-json\/wp\/v2\/media?parent=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}