victor HF staff commited on
Commit
3620c5a
·
1 Parent(s): ad91862

fix: Simplify textarea content to remove duplicate HTML structure

Browse files
Files changed (1) hide show
  1. 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"><!DOCTYPE html>
13
- <html lang="en">
14
- <head>
15
- <meta charset="UTF-8">
16
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
17
- <title>Document</title>
18
- <style>
19
- body {
20
- font-family: Arial, sans-serif;
21
- background-color: #f0f0f0;
22
- }
23
- h1 {
24
- color: navy;
25
- }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Welcome to the HTML Playground</h1>
30
- <p id="message">Click the button to change this text.</p>
31
- <button onclick="changeText()">Change Text</button>
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>