{"id":4547,"date":"2026-05-04T11:13:39","date_gmt":"2026-05-04T09:13:39","guid":{"rendered":"https:\/\/myflowin.com\/?page_id=4547"},"modified":"2026-06-09T09:39:02","modified_gmt":"2026-06-09T07:39:02","slug":"readiness-score","status":"publish","type":"page","link":"https:\/\/myflowin.com\/nl\/readiness-score\/","title":{"rendered":"Readiness Score"},"content":{"rendered":"\n<div id=\"flowin-embed\" style=\"width:100%;\"><\/div>\n\n<script>\n(function () {\n  var APP = \"https:\/\/peppol-readiness-path.lovable.app\";\n  var MOUNT = document.getElementById(\"flowin-embed\");\n  if (!MOUNT) return;\n\n  \/\/ 1. Detect language from the current WordPress URL path: \/de\/..., \/fr\/..., \/nl\/..., default en\n  function detectLang() {\n    var seg = (location.pathname.split(\"\/\")[1] || \"\").toLowerCase();\n    if (seg === \"de\" || seg.indexOf(\"de-\") === 0) return \"de\";\n    if (seg === \"fr\" || seg.indexOf(\"fr-\") === 0) return \"fr\";\n    if (seg === \"nl\" || seg.indexOf(\"nl-\") === 0) return \"nl\";\n    return \"en\";\n  }\n  var lang = detectLang();\n\n  \/\/ 2. Build the iframe with a starting height so it's visible immediately\n  var iframe = document.createElement(\"iframe\");\n  iframe.src = APP + \"\/?lang=\" + lang + \"&hideLang=1\";\n  iframe.title = \"Peppol Readiness Assessment\";\n  iframe.loading = \"lazy\";\n  iframe.setAttribute(\"allow\", \"clipboard-write\");\n  iframe.style.cssText = \"width:100%;border:0;display:block;min-height:900px;\";\n  MOUNT.appendChild(iframe);\n\n  \/\/ 3. Auto-resize via postMessage from the app\n  window.addEventListener(\"message\", function (e) {\n    if (!e.data || e.data.type !== \"flowin:height\") return;\n    if (e.source !== iframe.contentWindow) return;\n    var h = parseInt(e.data.height, 10);\n    if (h && h > 0) iframe.style.height = h + \"px\";\n  });\n\n  \/\/ 4. Push the language to the iframe once it's ready and whenever the URL changes\n  function pushLang() {\n    try { iframe.contentWindow.postMessage({ type: \"flowin:setLang\", lang: detectLang() }, \"*\"); } catch (_) {}\n  }\n  window.addEventListener(\"message\", function (e) {\n    if (e.data && e.data.type === \"flowin:ready\" && e.source === iframe.contentWindow) pushLang();\n  });\n  iframe.addEventListener(\"load\", pushLang);\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4547","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/pages\/4547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/comments?post=4547"}],"version-history":[{"count":2,"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/pages\/4547\/revisions"}],"predecessor-version":[{"id":4554,"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/pages\/4547\/revisions\/4554"}],"wp:attachment":[{"href":"https:\/\/myflowin.com\/nl\/wp-json\/wp\/v2\/media?parent=4547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}