-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
304 lines (284 loc) · 10.3 KB
/
index.htm
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="A code editor is a software tool that enables developers to write, edit, and manage their source code efficiently.">
<meta name="keywords" content="ahkamboh||CodeEditor">
<meta property="og:image"
content="https://raw.githubusercontent.com/ahkamboh/Code-Editor/main/Code%20Editor/ah-code-editor.png">
<meta property="og:url" content="https://ahCodeEditor.com" />
<meta property="og:title" content="ahkamboh||CodeEditor" />
<meta property="og:description"
content="A code editor is a software tool that enables developers to write, edit, and manage their source code efficiently." />
<title>Code Editor</title>
<!-- Tab icon -->
<link rel="icon" href="Code Editor/ah-icon.png">
<!-- fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600&display=swap" rel="stylesheet">
<!-- Code Editor -->
<script src="Code Editor/lib/codemirror.js"></script>
<link rel="stylesheet" href="Code Editor/lib/codemirror.css">
<script src="Code Editor/mode/css/css.js"></script>
<script src="Code Editor/mode/javascript/javascript.js"></script>
<script src="Code Editor/mode/xml/xml.js"></script>
<link rel="stylesheet" href="Code Editor/theme/yonce.css">
<script src="Code Editor/addon/edit/closebrackets.js"></script>
<script src="Code Editor/addon/edit/closetag.js"></script>
<script src="Code Editor/addon/selection/active-line.js"></script>
<!-- style sheet -->
<link rel="stylesheet" href="Code Editor/style.css">
</head>
<body>
<div class="loaderbg">
<div class="loaderBar"></div>
</div>
<div class="popbg">
<div class="popup-box">
<span onclick="poPup()">×</span>
👋 Hi! Welcome to ahkamboh
</div>
</div>
<header>
<div class="logo">
<img src="Code Editor/ahkamboh.png" alt="logo-ahkamboh">
<h3>Code Editor</h3>
</div>
<div class="run-btn">
<button onclick="run();" class="ui-btn"><span>
Run
</span></button>
</div>
</header>
<main>
<div class="Editors">
<div class="html">
<div class="html-head head">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"
class="text-[#e74d4d]">
<path fill="none" d="M0 0h24v24H0z"></path>
<path fill="red"
d="M12 18.178l4.62-1.256.623-6.778H9.026L8.822 7.89h8.626l.227-2.211H6.325l.636 6.678h7.82l-.261 2.866-2.52.667-2.52-.667-.158-1.844h-2.27l.329 3.544L12 18.178zM3 2h18l-1.623 18L12 22l-7.377-2L3 2z">
</path>
</svg>
<h2>Html</h2>
</div>
<textarea id="html" name="display" class="artboard">
<!-- No need to add Body and head tag just Write Your code -->
<h1>Welcome to ahkamboh!<span class="change">😊</span></h1>
<br>
<button class="button" onclick=" myFunction() ">
Click to Change text Color</button>
</textarea>
<div class="bottom-btn ">
<button class="cpyhtml" onclick="copyContent('html')"> Copy </button>
<button onclick="downloadFile('html')" class="ui-btn btnhtml"><span>
Download
</span></button>
</div>
</div>
<div class="css">
<div class="css-head head">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path fill="none" d="M0 0h24v24H0z"></path>
<path fill="#0071e2"
d="M5 3l-.65 3.34h13.59L17.5 8.5H3.92l-.66 3.33h13.59l-.76 3.81-5.48 1.81-4.75-1.81.33-1.64H2.85l-.79 4 7.85 3 9.05-3 1.2-6.03.24-1.21L21.94 3z">
</path>
</svg>
<h2>Css</h2>
</div>
<textarea id="css">
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body{
font-family: 'Poppins', sans-serif;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h1{
color:#075cb1;
}
.button {
position: relative;
padding: 10px 22px;
border-radius: 6px;
border: none;
color: #fff;
cursor: pointer;
background-color: #fc4384;
transition: all 0.2s ease;
}
.button:active {
transform: scale(0.96);
}
.button:before,
.button:after {
position: absolute;
content: "";
width: 150%;
left: 50%;
height: 100%;
transform: translateX(-50%);
z-index: -1000;
background-repeat: no-repeat;
}
.button:focus:before ,.button:hover::before{
top: -70%;
background-image: radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, transparent 20%, #fc4384 20%, transparent 30%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, transparent 10%, #fc4384 15%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%);
background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
10% 10%, 18% 18%;
background-position: 50% 120%;
animation: greentopBubbles 0.6s ease;
}
@keyframes greentopBubbles {
0% {
background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
40% 90%, 55% 90%, 70% 90%;
}
50% {
background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
50% 50%, 65% 20%, 90% 30%;
}
100% {
background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
50% 40%, 65% 10%, 90% 20%;
background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
}
}
.button:focus::after, .button:hover::after {
bottom: -70%;
background-image: radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, transparent 10%, #fc4384 15%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%),
radial-gradient(circle, #fc4384 20%, transparent 20%);
background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
background-position: 50% 0%;
animation: greenbottomBubbles 0.6s ease;
}
@keyframes greenbottomBubbles {
0% {
background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
70% -10%, 70% 0%;
}
50% {
background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
105% 0%;
}
100% {
background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
110% 10%;
background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
}
}
</textarea>
<div class="bottom-btn"><button class="cpycss" onclick="copyContent('css')"> Copy </button>
<button onclick="downloadFile('css')" class="ui-btn btncss"><span>
Download
</span></button>
</div>
</div>
<div class="js">
<div class="js-head head">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path fill="none" d="M0 0h24v24H0z"></path>
<path fill="#ffe523"
d="M5 3l-.65 3.34h13.59L17.5 8.5H3.92l-.66 3.33h13.59l-.76 3.81-5.48 1.81-4.75-1.81.33-1.64H2.85l-.79 4 7.85 3 9.05-3 1.2-6.03.24-1.21L21.94 3z">
</path>
</svg>
<h2>Javascript</h2>
</div>
<textarea id="js">// Click on submit button to check its output
function myFunction() {
document.querySelector('h1').style.color='White';
document.querySelector('.change').innerText='😂';
}
</textarea>
<div class="bottom-btn bottom-btn-js "><button class="cpyjs" onclick="copyContent('js')"> Copy </button>
<button onclick="downloadFile('js')" class="ui-btn btnjs"><span>
Download
</span></button>
</div>
</div>
</div>
<div class="result">
<div class="Outputbar">
<div class="Output">
<svg fill="#ffffff" height="24px" width="24px" version="1.1" id="Layer_1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 460.114 460.114" xml:space="preserve" stroke="#ffffff">
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC"
stroke-width="6.441596"></g>
<g id="SVGRepo_iconCarrier">
<g>
<g>
<path
d="M393.538,203.629L102.557,5.543c-9.793-6.666-22.468-7.372-32.94-1.832c-10.472,5.538-17.022,16.413-17.022,28.26v396.173 c0,11.846,6.55,22.721,17.022,28.26c10.471,5.539,23.147,4.834,32.94-1.832l290.981-198.087 c8.746-5.954,13.98-15.848,13.98-26.428C407.519,219.477,402.285,209.582,393.538,203.629z">
</path>
</g>
</g>
</g>
</svg>
<h2>Output</h2>
</div>
<div class="container">
<div class="cross" onclick="run();">
<div class="bar1"></div>
<div class="bar2"></div>
</div>
</div>
</div>
<iframe></iframe>
</div>
</div>
</div>
<footer>
<ul>
<li class="name">Developed by <a href="https://ahkamboh.github.io/Portfolio/"
target="_blank">ahkamboh</a></li>
<li><a href="https://github.com/ahkamboh" class="social-link">
<ion-icon name="logo-github"></ion-icon>
</a></li>
<li> <a href="https://www.linkedin.com/in/ali-hamza-kamboh-940282257/" class="social-link">
<ion-icon name="logo-linkedin"></ion-icon>
</a></li>
<li> <a href="https://www.instagram.com/ah_kamboh/" class="social-link">
<ion-icon name="logo-instagram"></ion-icon></a></li>
</ul>
</footer>
</main>
<!-- js -->
<script src="Code Editor/script.js"></script>
<!--
- ionicon link
-->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>
</html>