-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (52 loc) · 2.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Code Editor</title>
<link rel="shortcut icon" href="mylogov2.webp" type="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body class="dark-mode">
<nav class="navbar">
<div><a href="https://github.com/rajtilak-2020" class="logo">Web Compiler</a></div>
<div class="controls">
<button id="runBtn" class="run-btn">Run Code</button>
<button id="themeToggle" class="theme-toggle">☀️</button>
</div>
</nav>
<main class="editor-container">
<div class="panels">
<div class="editor-panel">
<div class="panel-header">
<h2>HTML</h2>
</div>
<textarea id="htmlEditor" class="code-editor" spellcheck="false" placeholder="Enter HTML code here..."></textarea>
</div>
<div class="editor-panel">
<div class="panel-header">
<h2>CSS</h2>
</div>
<textarea id="cssEditor" class="code-editor" spellcheck="false" placeholder="Enter CSS code here..."></textarea>
</div>
<div class="editor-panel">
<div class="panel-header">
<h2>JavaScript</h2>
</div>
<textarea id="jsEditor" class="code-editor" spellcheck="false" placeholder="Enter JavaScript code here..."></textarea>
</div>
</div>
<div class="preview-container">
<div class="panel-header">
<h2>Output</h2>
<div class="preview-controls">
<button id="fullscreenBtn" class="fullscreen-btn">⛶</button>
<button id="refreshBtn" class="refresh-btn">↻</button>
</div>
</div>
<iframe id="preview" class="preview-frame"></iframe>
</div>
</main>
<script src="script.js"></script>
</body>
</html>