{"id":4555,"date":"2026-05-04T11:13:39","date_gmt":"2026-05-04T09:13:39","guid":{"rendered":"https:\/\/myflowin.com\/readiness\/"},"modified":"2026-06-10T16:48:25","modified_gmt":"2026-06-10T14:48:25","slug":"score-de-preparation","status":"publish","type":"page","link":"https:\/\/myflowin.com\/fr\/score-de-preparation\/","title":{"rendered":"Readiness"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\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\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4555","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/pages\/4555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/comments?post=4555"}],"version-history":[{"count":1,"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/pages\/4555\/revisions"}],"predecessor-version":[{"id":4556,"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/pages\/4555\/revisions\/4556"}],"wp:attachment":[{"href":"https:\/\/myflowin.com\/fr\/wp-json\/wp\/v2\/media?parent=4555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}