-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (144 loc) · 4.23 KB
/
index.html
File metadata and controls
144 lines (144 loc) · 4.23 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
CodeGlow — Beautifier
</title>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="logo">
<div class="logo-dot">
</div>
CodeGlow
</div>
<div class="tagline">
HTML · CSS · JS Beautifier
</div>
</header>
<div class="main">
<div class="controls-bar">
<div class="tabs">
<button class="tab active" data-lang="html">
HTML
</button>
<button class="tab" data-lang="css">
CSS
</button>
<button class="tab" data-lang="js">
JS
</button>
</div>
<button class="btn btn-primary" id="beautifyBtn">
✦ Beautify
</button>
<button class="btn btn-ghost" id="clearBtn">
Clear
</button>
<div style="margin-left: auto; display: flex; gap: 10px;">
<button class="btn btn-ghost" id="swapBtn">
⇅ Swap
</button>
</div>
</div>
<div class="options-row">
<div class="option-group">
<label>
Indent
</label>
<select id="indentSize">
<option value="2" selected>
2 Spaces
</option>
<option value="4">
4 Spaces
</option>
<option value="tab">
Tab
</option>
</select>
</div>
<label class="checkbox-group">
<input type="checkbox" id="wrapLines" checked>
Wrap Lines
</label>
<label class="checkbox-group">
<input type="checkbox" id="preserveNewlines" checked>
Preserve Newlines
</label>
<label class="checkbox-group">
<input type="checkbox" id="jsSemicolons" checked>
JS Semicolons
</label>
</div>
<div class="editor-grid">
<!-- Input -->
<div class="panel">
<div class="panel-header">
<span>
<span class="panel-label-dot dot-html" id="inputDot">
</span>
<span id="inputLabel">
HTML
</span>
· Input
</span>
<button class="btn btn-ghost" id="pasteBtn" style="padding:4px 12px;font-size:0.65rem;">
Paste
</button>
</div>
<textarea id="inputCode" placeholder="Paste your messy code here... <!-- HTML, CSS, or JavaScript -->
<!-- Select the language above and hit Beautify -->
">
</textarea>
<div class="status-bar">
<span class="status-badge badge-idle" id="inputBadge">
Idle
</span>
<span class="line-count" id="inputLines">
0 lines
</span>
<span class="line-count" id="inputChars">
0 chars
</span>
</div>
</div>
<!-- Output -->
<div class="panel output-panel" id="outputPanel">
<div class="panel-header">
<span>
<span class="panel-label-dot dot-html" id="outputDot">
</span>
<span id="outputLabel">
HTML
</span>
· Output
</span>
<button class="btn btn-copy" id="copyBtn">
Copy
</button>
</div>
<textarea id="outputCode" readonly placeholder="Beautified code will appear here...">
</textarea>
<div class="status-bar">
<span class="status-badge badge-idle" id="outputBadge">
Ready
</span>
<span class="line-count" id="outputLines">
0 lines
</span>
<span class="line-count" id="savedChars">
</span>
</div>
</div>
</div>
</div>
<script src="script.js">
</script>
</body>
</html>