Spaces:
Running
Running
fix: Simplify textarea content to remove duplicate HTML structure
Browse files- index.html +20 -27
index.html
CHANGED
|
@@ -9,33 +9,26 @@
|
|
| 9 |
<body class="m-0 p-0">
|
| 10 |
<div class="grid grid-cols-1 md:grid-cols-2 w-screen h-screen divide-x divide-amber-300">
|
| 11 |
<div class="bg-gray-100">
|
| 12 |
-
<textarea id="code-input" class="w-full h-full font-mono p-4 resize-none focus:outline-none"
|
| 13 |
-
<
|
| 14 |
-
<
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
<script>
|
| 33 |
-
function changeText() {
|
| 34 |
-
document.getElementById('message').innerText = 'Text changed!';
|
| 35 |
-
}
|
| 36 |
-
</script>
|
| 37 |
-
</body>
|
| 38 |
-
</html></textarea>
|
| 39 |
</div>
|
| 40 |
<div class="bg-white">
|
| 41 |
<iframe id="output" class="w-full h-full border-none"></iframe>
|
|
|
|
| 9 |
<body class="m-0 p-0">
|
| 10 |
<div class="grid grid-cols-1 md:grid-cols-2 w-screen h-screen divide-x divide-amber-300">
|
| 11 |
<div class="bg-gray-100">
|
| 12 |
+
<textarea id="code-input" class="w-full h-full font-mono p-4 resize-none focus:outline-none"><h1>Welcome to the HTML Playground</h1>
|
| 13 |
+
<p id="message">Click the button to change this text.</p>
|
| 14 |
+
<button onclick="changeText()">Change Text</button>
|
| 15 |
+
|
| 16 |
+
<style>
|
| 17 |
+
body {
|
| 18 |
+
font-family: Arial, sans-serif;
|
| 19 |
+
background-color: #f0f0f0;
|
| 20 |
+
padding: 20px;
|
| 21 |
+
}
|
| 22 |
+
h1 {
|
| 23 |
+
color: navy;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
|
| 27 |
+
<script>
|
| 28 |
+
function changeText() {
|
| 29 |
+
document.getElementById('message').innerText = 'Text changed!';
|
| 30 |
+
}
|
| 31 |
+
</script></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</div>
|
| 33 |
<div class="bg-white">
|
| 34 |
<iframe id="output" class="w-full h-full border-none"></iframe>
|