{"id":5447,"date":"2024-01-05T10:46:25","date_gmt":"2024-01-05T09:46:25","guid":{"rendered":"https:\/\/www.buehnen-graz.com\/?page_id=5447"},"modified":"2024-05-28T08:17:36","modified_gmt":"2024-05-28T06:17:36","slug":"test_skript","status":"publish","type":"page","link":"https:\/\/www.buehnen-graz.com\/test_skript\/","title":{"rendered":"B\u00fchnen Graz test-anmeldung"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">TEST<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-white-color has-alpha-channel-opacity has-white-background-color has-background\"\/>\n\n\n\n<p><\/p>\n\n\n\n<div data-form-block-id=\"467eb2db-2e1c-ef11-840a-002248824948\"><\/div> <script src=\"https:\/\/mktdplp102cdn.azureedge.net\/public\/latest\/js\/form-loader.js?v=1.84.2007\"><\/script> <div id=\"d9useAsG3TaLBZ4BGUDqXyxm0pXgHstbjCNGniAKn8mQ\"><\/div><script src=\"https:\/\/mktdplp102cdn.azureedge.net\/public\/latest\/js\/ws-tracking.js?v=1.84.2007\"><\/script><div class=\"d365-mkt-config\" style=\"display:none\" data-website-id=\"9useAsG3TaLBZ4BGUDqXyxm0pXgHstbjCNGniAKn8mQ\" data-hostname=\"331b98325956491e81f04ad67f585398.svc.dynamics.com\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\n    MsCrmMkt.MsCrmFormLoader.on(\"formSubmit\", function(event) {\n        console.log(\"form loaded\");\n        const checkboxes = document.querySelectorAll(\"div.marketing-subscription-list &gt; input&#91;type='checkbox']\");\n        const isChecked = Array.from(checkboxes).some(x =&gt; x.checked);\n        \n        console.log(isChecked);\n\n        if (!isChecked) {\n            event.preventDefault();\n            console.log(\"subLists not checked\");\n            const divs = document.querySelectorAll(\"div.marketing-subscription-list\");\n            let p = document.createElement(\"p\");\n            p.textContent = \"Bitte w\u00c3\u00a4hlen Sie einen Newsletter aus.\";\n            p.style.color = \"red\";\n            divs.forEach(element =&gt; {\n                element.appendChild(p);\n            });\n        }\n    })\n&lt;\/script&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TEST<\/p>\n","protected":false},"author":19,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5447","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz<\/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:\/\/www.buehnen-graz.com\/test_skript\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz\" \/>\n<meta property=\"og:description\" content=\"TEST\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.buehnen-graz.com\/test_skript\/\" \/>\n<meta property=\"og:site_name\" content=\"B\u00fchnen Graz\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-28T06:17:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\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:\/\/www.buehnen-graz.com\/test_skript\/\",\"url\":\"https:\/\/www.buehnen-graz.com\/test_skript\/\",\"name\":\"B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz\",\"isPartOf\":{\"@id\":\"https:\/\/www.buehnen-graz.com\/#website\"},\"datePublished\":\"2024-01-05T09:46:25+00:00\",\"dateModified\":\"2024-05-28T06:17:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.buehnen-graz.com\/test_skript\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.buehnen-graz.com\/test_skript\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.buehnen-graz.com\/test_skript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/www.buehnen-graz.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"B\u00fchnen Graz test-anmeldung\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.buehnen-graz.com\/#website\",\"url\":\"https:\/\/www.buehnen-graz.com\/\",\"name\":\"B\u00fchnen Graz\",\"description\":\"Theaterholding Graz\/Steiermark GmbH\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.buehnen-graz.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz","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:\/\/www.buehnen-graz.com\/test_skript\/","og_locale":"de_DE","og_type":"article","og_title":"B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz","og_description":"TEST","og_url":"https:\/\/www.buehnen-graz.com\/test_skript\/","og_site_name":"B\u00fchnen Graz","article_modified_time":"2024-05-28T06:17:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"1 Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.buehnen-graz.com\/test_skript\/","url":"https:\/\/www.buehnen-graz.com\/test_skript\/","name":"B\u00fchnen Graz test-anmeldung - B\u00fchnen Graz","isPartOf":{"@id":"https:\/\/www.buehnen-graz.com\/#website"},"datePublished":"2024-01-05T09:46:25+00:00","dateModified":"2024-05-28T06:17:36+00:00","breadcrumb":{"@id":"https:\/\/www.buehnen-graz.com\/test_skript\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.buehnen-graz.com\/test_skript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.buehnen-graz.com\/test_skript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.buehnen-graz.com\/"},{"@type":"ListItem","position":2,"name":"B\u00fchnen Graz test-anmeldung"}]},{"@type":"WebSite","@id":"https:\/\/www.buehnen-graz.com\/#website","url":"https:\/\/www.buehnen-graz.com\/","name":"B\u00fchnen Graz","description":"Theaterholding Graz\/Steiermark GmbH","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.buehnen-graz.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"}]}},"_links":{"self":[{"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/pages\/5447"}],"collection":[{"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/comments?post=5447"}],"version-history":[{"count":11,"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/pages\/5447\/revisions"}],"predecessor-version":[{"id":5897,"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/pages\/5447\/revisions\/5897"}],"wp:attachment":[{"href":"https:\/\/www.buehnen-graz.com\/wp-json\/wp\/v2\/media?parent=5447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}