{"id":1920,"date":"2024-08-26T11:34:33","date_gmt":"2024-08-26T09:34:33","guid":{"rendered":"https:\/\/the-smooth.space\/blog\/?page_id=1920"},"modified":"2024-10-28T10:54:17","modified_gmt":"2024-10-28T09:54:17","slug":"segmentation-test-exp15a","status":"publish","type":"page","link":"https:\/\/the-smooth.space\/blog\/segmentation-test-exp15a\/","title":{"rendered":"Segmentation test: Dance"},"content":{"rendered":"\n<style>\n  .iframe-container {\n    margin-bottom: 20px; \/* Adjusts space between the iframes *\/\n  }\n  .form-iframe {\n    height: 1300px; \/* Adjust this value specifically for the Google Form iframe *\/\n  }\n  .centered-content {\n      display: flex;\n      flex-direction: column;\n      justify-content: center;\n      align-items: center;\n      height: 10vh; \/* Adjusts to the full height of the viewport *\/\n      text-align: center;\n  }\n  iframe {\n    width: 100%;  \/* This makes the iframe responsive *\/\n    height: 690px; \/* Adjust the height as needed *\/\n  }\n<\/style>\n\n<div id=\"embedded-content\"><\/div> <!-- This will hold the embedded markdown content -->\n\n<script>\n(function () {\n  function createElement(tag, attrs) {\n    const el = document.createElement(tag);\n    for (let attr in attrs) {\n      if (attrs.hasOwnProperty(attr)) {\n        el.setAttribute(attr, attrs[attr]);\n      }\n    }\n    return el;\n  }\n\n  function parseMarkdown(text) {\n    const el = createElement('div', {});\n    el.innerHTML = text\n      .replace(\/^### (.*$)\/gim, '<h3>$1<\/h3>')\n      .replace(\/^## (.*$)\/gim, '<h2>$1<\/h2>')\n      .replace(\/^# (.*$)\/gim, '<h1>$1<\/h1>')\n      .replace(\/^\\> (.*$)\/gim, '<blockquote>$1<\/blockquote>')\n      .replace(\/\\*\\*(.*)\\*\\*\/gim, '<b>$1<\/b>')\n      .replace(\/\\*(.*)\\*\/gim, '<i>$1<\/i>')\n      .replace(\/!\\[(.*?)\\]\\((.*?)\\)\/gim, \"<img alt='$1' src='$2' \/>\")\n      .replace(\/\\[(.*?)\\]\\((.*?)\\)\/gim, \"<a href='$2'>$1<\/a>\")\n      .replace(\/---\/gim, '<hr>')  \/\/ Handles horizontal lines\n      .replace(\/\\n$\/gim, '<br \/>');\n    return el.innerHTML;\n  }\n\n  const fileUrl = 'https:\/\/bitbucket.org\/smoothspaces\/pub_interpret\/raw\/HEAD\/explanation_test0b.md';\n\n  fetch(fileUrl)\n    .then(response => response.text())\n    .then(data => {\n      const htmlContent = parseMarkdown(data);\n      document.getElementById('embedded-content').innerHTML = htmlContent;\n    })\n    .catch(error => console.error('Error fetching the file:', error));\n})();\n<\/script>\n\n<div class=\"iframe-container\">\n<iframe src=\"https:\/\/the-smooth.space\/blog\/wp-content\/uploads\/2024\/09\/exp15a_rnd.html\" frameborder=\"0\"><\/iframe>\n<\/div>\n<div class=\"iframe-container\">\n<p id=\"form-anchor\"><\/p>\n<iframe class=\"form-iframe\" src=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSdMOJLxvOGu3ZN_SkEeG3CWf4fDg2l_WWCdpD8BZcjWXux3XQ\/viewform?embedded=true\" width=\"640\" height=\"1300\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\">Loading\u2026<\/iframe>\n<\/div>\n<div class=\"centered-content\">\n  <p>Click on <a href=\"https:\/\/www.artacho.at\/exp16a\">THIS LINK to proceed with the Second Test.<\/a><\/p>\n  <p><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Loading\u2026 Click on THIS LINK to proceed with the Second Test.<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"disable_featured_image":false,"footnotes":""},"coauthors":[71],"class_list":["post-1920","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/pages\/1920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/comments?post=1920"}],"version-history":[{"count":50,"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/pages\/1920\/revisions"}],"predecessor-version":[{"id":2096,"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/pages\/1920\/revisions\/2096"}],"wp:attachment":[{"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/media?parent=1920"}],"wp:term":[{"taxonomy":"author","embeddable":true,"href":"https:\/\/the-smooth.space\/blog\/wp-json\/wp\/v2\/coauthors?post=1920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}