Essentially a sapient ascension maze for brainstorming, creating, and refining WebSim sites/continuities/thoughtforms.
<!DOCTYPE html>
<html>
<head>
<title>WebSim Branch Extractor</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
iframe {
width: 100%;
height: 400px;
border: 1px solid #ccc;
}
pre {
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #f36d33;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}
#render-container {
border: 1px solid #ccc;
padding: 10px;
margin-top: 20px;
}
</style>
</head>
<body>
<h1>WebSim Branch Extractor</h1>
<iframe id="source-frame" src="https://websim.ai/c/XdfYFuF7dkG6iiiid"></iframe>
<button id="extract-button">Extract HTML</button>
<h2>Extracted HTML</h2>
<pre id="html-container"></pre>
<h2>Rendered HTML</h2>
<div id="render-container"></div>
<script>
const sourceFrame = document.getElementById('source-frame');
const extractButton = document.getElementById('extract-button');
const htmlContainer = document.getElementById('html-container');
const renderContainer = document.getElementById('render-container');
extractButton.addEventListener('click', function() {
const sourceDoc = sourceFrame.contentDocument || sourceFrame.contentWindow.document;
const html = sourceDoc.documentElement.outerHTML;
htmlContainer.textContent = html;
renderContainer.innerHTML = html;
});
</script>
</body>
</html>