📜
Test.js
Back
📝 Javascript ⚡ Executable Ctrl+S: Save • Ctrl+R: Run • Ctrl+F: Find
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Unique Scopes + Containers Test</title> <style> /* layout-css-1: container< */ /* header-css-1< */ header { padding: 1rem; background: #111; color: #fff; } /* header-css-1> */ /* sidebar-css-2< */ .sidebar { width: 200px; background: #222; color: #ccc; padding: 1rem; } /* sidebar-css-2> */ /* layout-css-1: container> */ /* theme-css-2: container< */ /* colors-css-1< */ .primary { color: #4ade80; } /* colors-css-1> */ /* fonts-css-2< */ body { font-family: ui-sans-serif, system-ui; } /* fonts-css-2> */ /* overlay-css-4< @editedBy:ai@ @editedAt:1763229795473@ */ /* overlay-css-4< */ #settings-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; } .overlay-content { background: white; padding: 20px; border-radius: 8px; max-width: 400px; width: 90%; } /* overlay-css-4> */ /* theme-css-2: container> */ </style> </head> <body> <!-- layout-html-3: container< --> <!-- header-html-1< --> <header> <h1>Unique Scopes Demo</h1> </header> <!-- header-html-1> --> <!-- layout-html-3: container> --> <!-- buttons-html-4: container< --> < @editedBy:ai@ @editedAt:1763229512712@ !-- hello-button-html-1< --> <!-- hello-button-html-1< --> <div> <button onclick="alert('Hi')">Hi</button> <button class="btn settings-btn" onclick="openSettingsOverlay()">Settings</button> </div> <!-- hello-button-html-1> --> <!-- buttons-html-4: container> --> <script> // logic-js-5: container< // header-js-1< console.log("Header JS initialized"); // header-js-1> // logic-js-5: container> </script> </body> </html>