-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
207 lines (207 loc) · 7.86 KB
/
index.html
File metadata and controls
207 lines (207 loc) · 7.86 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<title>Web Pad</title>
<meta charset="UTF-8" />
<meta name="Version" content="21.12.06" />
<meta name="Author" content="CyberMajeed" />
<link rel="shortcut icon" href="WebPad.png" />
<!---->
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css"
/>
<link
rel="stylesheet"
id="themeLink"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/default.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/xml/xml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/edit/closebrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/addon/edit/closetag.min.js"></script>
<!---->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="onLoader">
<span data-text="Loading...">Loading...</span>
</div>
<!--loader ends-->
<span class="backgroundBox"></span>
<div class="helpBox">
<span class="close">
<img src="WebPad.png" style="margin-right: 5px; height: 30px" />
<b>Web Pad</b>
<em>×</em>
</span>
<div class="aboutWebPad">
<p>
<b>Web Pad</b> is a suitable html compiler created for students who
are willing to practice HTML by writing html codes in notepad >>
saving it as '.html' >> going to the saved location >> opening in
browsers to preview the output. But this application let you write
HTML codes and run it on-time, without saving or opening the file in
browser.
</p>
</div>
<div class="keyShortcuts">
<header>Keyboard Shortcuts</header>
<span>
Click [ <code>Ctrl</code> + <code>Enter</code> ] to run the code</span
>
<span>
Click [ <code>Ctrl</code> + <code>Shift</code> + <code>S</code> ] to
save the codes
</span>
<span>
DoubleClick the run code button to toggle <b>Auto Code-Runner</b>
</span>
</div>
<!--input check-->
<div>
<input type="checkbox" name="userVisit" id="userVisit" hidden />
<span>Don't Show Again</span>
<label for="userVisit" class="userVisit">
<u class="slider"></u>
</label>
</div>
</div>
<div class="tools">
<div class="saveFile toolPin">
<!--SVG-->
<svg
xmlns="http://www.w3.org/2000/svg"
height="25px"
viewBox="0 0 24 24"
width="25px"
fill="#000000"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M17.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7.83c0-.53-.21-1.04-.59-1.41l-2.82-2.83zM12 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm1-10H7c-1.1 0-2-.9-2-2s.9-2 2-2h6c1.1 0 2 .9 2 2s-.9 2-2 2z"
/>
</svg>
<!--SVG ENDS-->
</div>
<div class="copyCodes toolPin">
<!--SVG-->
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
height="25px"
viewBox="0 0 24 24"
width="25px"
fill="#000000"
>
<g>
<rect fill="none" height="25" width="25" />
</g>
<g>
<path
d="M15,20H5V7c0-0.55-0.45-1-1-1h0C3.45,6,3,6.45,3,7v13c0,1.1,0.9,2,2,2h10c0.55,0,1-0.45,1-1v0C16,20.45,15.55,20,15,20z M20,16V4c0-1.1-0.9-2-2-2H9C7.9,2,7,2.9,7,4v12c0,1.1,0.9,2,2,2h9C19.1,18,20,17.1,20,16z M18,16H9V4h9V16z"
/>
</g>
</svg>
<!--SVG ENDS-->
</div>
<div class="runCode toolPin">
<!--SVG-->
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
height="25px"
viewBox="0 0 24 24"
width="25px"
fill="#000000"
>
<g>
<rect fill="none" height="25" width="25" />
</g>
<g>
<path
d="M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M9.5,14.67V9.33c0-0.79,0.88-1.27,1.54-0.84 l4.15,2.67c0.61,0.39,0.61,1.29,0,1.68l-4.15,2.67C10.38,15.94,9.5,15.46,9.5,14.67z"
/>
</g>
</svg>
<!--SVG ENDS-->
</div>
<div class="swapView toolPin">
<!--SVG-->
<svg
xmlns="http://www.w3.org/2000/svg"
height="25px"
viewBox="0 0 24 24"
width="25px"
fill="#000000"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M10.23 1.75c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59.59-.59 1.54 0 2.12l12.02 12.02c.59.59 1.54.59 2.12 0l6.36-6.36c.59-.59.59-1.54 0-2.12L10.23 1.75zm3.89 18.73L3.52 9.88c-.39-.39-.39-1.02 0-1.41l4.95-4.95c.39-.39 1.02-.39 1.41 0l10.61 10.61c.39.39.39 1.02 0 1.41l-4.95 4.95c-.39.38-1.03.38-1.42-.01zM17.61 1.4C16.04.57 14.06-.03 11.81.02c-.18 0-.26.22-.14.35l3.48 3.48 1.33-1.33c3.09 1.46 5.34 4.37 5.89 7.86.06.41.44.69.86.62.41-.06.69-.45.62-.86-.6-3.8-2.96-7-6.24-8.74zM8.85 20.16l-1.33 1.33c-3.09-1.46-5.34-4.37-5.89-7.86-.06-.41-.44-.69-.86-.62-.41.06-.69.45-.62.86.6 3.81 2.96 7.01 6.24 8.75 1.57.83 3.55 1.43 5.8 1.38.18 0 .26-.22.14-.35l-3.48-3.49z"
/>
</svg>
<!--SVG ENDS-->
</div>
<div class="theme toolPin">
<!--SVG-->
<svg
xmlns="http://www.w3.org/2000/svg"
height="25px"
viewBox="0 0 24 24"
width="25px"
fill="#000000"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M20 15.31l1.9-1.9c.78-.78.78-2.05 0-2.83L20 8.69V6c0-1.1-.9-2-2-2h-2.69l-1.9-1.9c-.78-.78-2.05-.78-2.83 0L8.69 4H6c-1.1 0-2 .9-2 2v2.69l-1.9 1.9c-.78.78-.78 2.05 0 2.83l1.9 1.9V18c0 1.1.9 2 2 2h2.69l1.9 1.9c.78.78 2.05.78 2.83 0l1.9-1.9H18c1.1 0 2-.9 2-2v-2.69zm-8 1.59V7.1c0-.61.55-1.11 1.15-.99C15.91 6.65 18 9.08 18 12s-2.09 5.35-4.85 5.89c-.6.12-1.15-.38-1.15-.99z"
/>
</svg>
<!--SVG ENDS-->
</div>
<div class="toolTipDiv">
<span class="tipsaveFile toolTip">save Codes</span>
<span class="tipCopyCodes toolTip">Copy codes</span>
<span class="tipRunCode toolTip">Run code</span>
<span class="tipSwapView toolTip">Swap view</span>
<span class="tipTheme toolTip">Switch theme</span>
</div>
</div>
<div class="workArea">
<div class="editor">
<textarea
name="editor"
class="lined"
id="editorArea"
spellcheck="false"
placeholder="Code Here"
></textarea>
</div>
<div class="preview">
<iframe class="previewFrame" frameborder="0"></iframe>
</div>
</div>
<div class="themeSelectionArea"></div>
<!--save popup-->
<div class="confirmBox">
<span class="fileLabel">Your File Name:</span>
<input
type="text"
name="fileName"
class="inFileName"
value="Html-Program.html"
/>
<span class="errorFileName">*File name is invalid</span>
<div class="fileNameButtons">
<span class="saveButton">Save</span>
<span class="cancelButton">Cancel</span>
</div>
</div>
<!--save popup ends-->
<!--alert box-->
<div class="alertBox"></div>
<!--alert box ends-->
<!--script.js-->
<script src="script.js"></script>
</body>
</html>