Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
694 lines (637 loc) · 35.6 KB
/
Copy pathindex.html
File metadata and controls
694 lines (637 loc) · 35.6 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
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
<!DOCTYPE html>
<html lang="en" data-layout="tabs">
<head>
<meta charset="UTF-8" />
<title>codi.link | HTML, CSS, JavaScript Live Editor Playground</title>
<meta name="description"
content="codi.link is a live editor for HTML, CSS and JS. Edit your code in real-time, and see the result instantly" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0099ff" />
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
<link rel="icon" type="image/svg+xml" href="/assets/midu.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<link as="font" rel="preload" crossorigin="anonymous" href="/assets/fonts/CascadiaCodePL.woff2" />
<link rel="stylesheet" href="./src/style.css" />
<link rel="canonical" href="https://codi.link/" />
<meta name="robots" content="index, follow" />
<meta name="author" content="Miguel Ángel Durán (midudev)" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://codi.link/" />
<meta property="og:site_name" content="codi.link" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content="codi.link | HTML, CSS, JavaScript Live Editor Playground" />
<meta property="og:description"
content="codi.link is a live editor for HTML, CSS and JS. Edit your code in real-time, and see the result instantly" />
<meta property="og:image" content="https://codi.link/og-image.png" />
<meta property="og:image:width" content="1512" />
<meta property="og:image:height" content="950" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@midudev" />
<meta name="twitter:title" content="codi.link | HTML, CSS, JavaScript Live Editor Playground" />
<meta name="twitter:description"
content="codi.link is a live editor for HTML, CSS and JS. Edit your code in real-time, and see the result instantly" />
<meta name="twitter:image" content="https://codi.link/og-image.png" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "codi.link",
"url": "https://codi.link/",
"description": "codi.link is a live editor for HTML, CSS and JS. Edit your code in real-time, and see the result instantly",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Any",
"author": {
"@type": "Person",
"name": "Miguel Ángel Durán",
"url": "https://twitter.com/midudev"
}
}
</script>
<script>
; (function () {
try {
const rootElement = document.documentElement
const isMobile = window.matchMedia('(max-width: 650px)').matches
rootElement.setAttribute('data-layout', 'tabs')
if (isMobile) rootElement.setAttribute('data-mobile-layout', '')
if (typeof window.localStorage === 'undefined') return
const storedData = window.localStorage.getItem('appInitialState')
if (!storedData) return
const { state } = JSON.parse(storedData) ?? {}
if (!state) return
const { theme, layout, preserveGrid } = state
if (theme) rootElement.setAttribute('data-theme', theme)
if (isMobile) return
const layoutType = typeof layout === 'string' ? layout : layout?.type
if (layoutType) rootElement.setAttribute('data-layout', layoutType)
const nested = layoutType === 'default' || layoutType === 'layout-2'
if (nested) rootElement.setAttribute('data-mosaic', '')
if (preserveGrid === false) return
const savedGrid = JSON.parse(window.localStorage.getItem('gridTemplate') || 'null')
if (!savedGrid || savedGrid.type !== layoutType) return
const toFr = (value) => {
if (!value || !value.includes('px')) return value
const tracks = value.trim().split(/\s+/)
const sizes = tracks.map((track) => {
if (!track.endsWith('px')) return null
const px = parseFloat(track)
return px > 8 ? px : null
})
const sum = sizes.reduce((total, px) => total + (px || 0), 0)
const large = sizes.filter(Boolean)
if (large.length < 2 || !sum) return value
return tracks.map((track, i) => sizes[i] == null ? track : (sizes[i] / sum) + 'fr').join(' ')
}
if (nested) {
const mosaic = savedGrid.mosaic
if (!mosaic) return
if (mosaic.top != null) rootElement.style.setProperty('--mosaic-top', mosaic.top)
if (mosaic.bottom != null) rootElement.style.setProperty('--mosaic-bottom', mosaic.bottom)
if (mosaic.left != null) rootElement.style.setProperty('--mosaic-left', mosaic.left)
if (mosaic.right != null) rootElement.style.setProperty('--mosaic-right', mosaic.right)
return
}
const columns = toFr(savedGrid.editor?.['grid-template-columns'])
const rows = toFr(savedGrid.editor?.['grid-template-rows'])
if (columns) rootElement.style.setProperty('--editor-columns', columns)
if (rows) rootElement.style.setProperty('--editor-rows', rows)
} catch (error) {
console.error('Error al configurar el estado inicial:', error);
}
})();
</script>
</head>
<body>
<h1 class="sr-only">codi.link — HTML, CSS, JavaScript Live Editor Playground</h1>
<div class="overlay-drag hidden">
<div id="drag-file" class="open-file-dragging">
<div class="zone-drag-drop">
<strong>Drop File to Open</strong>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2" />
<path d="M12 11v6" />
<path d="M9.5 13.5l2.5 -2.5l2.5 2.5" />
</svg>
<input multiple type="file" id="input-file-drop" accept="text/css, text/javascript, text/html" />
</div>
</div>
</div>
<div id="app">
<aside>
<div class="aside-sections">
<header>
<button id="editor-aside-button" class="is-active bar-button" aria-label="Close aside bar"
data-action="close-aside-bar">
<span role="tooltip" class="button-title" data-translate="editor">Editor</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2" />
<path d="M10 13l-1 2l1 2" />
<path d="M14 13l1 2l-1 2" />
</svg>
</button>
<button class="bar-button" aria-label="Show dependencies bar" data-action="show-skypack-bar">
<span role="tooltip" class="button-title" data-translate="dependencies">Dependencies</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5" />
<path d="M12 12l8 -4.5" />
<path d="M12 12l0 9" />
<path d="M12 12l-8 -4.5" />
<path d="M16 5.25l-8 4.5" />
</svg>
</button>
<button class="bar-button" aria-label="Show console" data-action="show-console-bar">
<span role="tooltip" class="button-title" data-translate="console">Console</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M8 9l3 3l-3 3" />
<path d="M13 15l3 0" />
<path d="M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12" />
</svg>
<span class="console-badges">
<span class="console-badge-count" hidden>0</span>
<span class="console-badge-error" hidden data-translate-aria="consoleError" aria-label="Error">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" aria-hidden="true">
<path d="M18 6 6 18" />
<path d="m6 6 12 12" />
</svg>
</span>
</span>
</button>
<button class="bar-button" aria-label="Show history" data-action="show-history-bar">
<span role="tooltip" class="button-title" data-translate="history">History</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 8l0 4l2 2" />
<path d="M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5" />
</svg>
</button>
<button class="bar-button" aria-label="Show demos" data-action="show-demos-bar">
<span role="tooltip" class="button-title" data-translate="demos">Demos</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" />
<path d="M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" />
<path d="M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" />
<path d="M14 7l6 0" />
<path d="M17 4l0 6" />
</svg>
</button>
<button class="bar-button" aria-label="Show AI chat" data-action="show-ai-chat-bar">
<span role="tooltip" class="button-title" data-translate="aiChat">AI</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z" />
<path d="M5 3v4" />
<path d="M3 5h4" />
<path d="M19 17v4" />
<path d="M17 19h4" />
</svg>
</button>
</header>
<footer>
<button class="bar-button" aria-label="Open iframe tab" data-action="open-iframe-tab"
data-is-simple-click-action="true">
<span role="tooltip" class="button-title" data-translate="preview">Preview</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" />
<path d="M11 13l9 -9" />
<path d="M15 4h5v5" />
</svg>
</button>
<button class="bar-button" aria-label="Copy to clipboard" data-action="copy-to-clipboard"
data-is-simple-click-action="true">
<span role="tooltip" class="button-title" data-translate="copyClipboard">Copy to clipboard</span>
<svg class="icon icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666" />
<path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" />
</svg>
<svg class="icon icon-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12l5 5l10 -10" />
</svg>
</button>
<button class="bar-button" aria-label="Download user code" data-action="download-user-code"
data-is-simple-click-action="true">
<span role="tooltip" class="button-title" data-translate="download">Download</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" />
<path d="M7 11l5 5l5 -5" />
<path d="M12 4l0 12" />
</svg>
</button>
<button class="bar-button" aria-label="Change layout" data-action="toggle-layout-switcher"
data-is-simple-click-action="true" aria-expanded="false" aria-controls="layout-switcher">
<span role="tooltip" class="button-title" data-translate="layout">Layout</span>
<div class="layout-preview layout-preview-icon" data-layout="tabs" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button class="bar-button" aria-label="Show settings bar" data-action="show-settings-bar">
<span role="tooltip" class="button-title" data-translate="settings">Settings</span>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065" />
<path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" />
</svg>
</button>
</footer>
</div>
<div class="aside-bar" hidden>
<div class="aside-bar-close-slot">
<button type="button" class="aside-bar-close" data-action="close-aside-bar" data-is-simple-click-action="true" data-translate-aria="closePanel" aria-label="Close">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M18 6l-12 12" />
<path d="M6 6l12 12" />
</svg>
</button>
</div>
<div id="skypack" hidden class="bar-content skypack">
<div class="skypack-content">
<div class="skypack-item">
<header class="skypack-header">
<strong>
<span class="skypack-type">JavaScript:</span>
<span data-translate="addDependency">Add dependency</span>
</strong>
<span data-translate="addDependencyDescription">An import statement will be added to the top of the
JavaScript editor for the package.</span>
<div class="input">
<svg class="icon input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
<path d="M21 21l-6 -6" />
</svg>
<input data-translate-placeholder="searchDependency" id="skypack-search-input" type="search"
placeholder="Search npm and add a package..." autocomplete="off" />
</div>
<p class="search-results-message"></p>
</header>
<div class="search-results">
<div class="extensions">
<ul></ul>
<div class="spinner" hidden></div>
</div>
</div>
</div>
</div>
</div>
<div id="console" hidden class="bar-content console">
<div class="console-content">
<div class="console-item">
<header class="console-header">
<strong>
<span class="console-type">JavaScript:</span>
<span data-translate="console">Console</span>
</strong>
<div class="console-actions">
<button data-action="clear-console" data-is-simple-click-action="true">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" />
<path d="M18 13.3l-6.3 -6.3" />
</svg>
<span data-translate="clear">Clear</span>
</button>
</div>
</header>
<ul class="console-list"></ul>
</div>
</div>
</div>
<div id="history" hidden class="bar-content history">
<div class="history-content">
<div class="history-item">
<header class="history-header">
<strong>
<span class="history-type" data-translate="history">History</span>
</strong>
<span data-translate="historyDescription">Manages the sandboxes history.</span>
<div class="history-actions">
<button data-action="clear-history" data-is-simple-click-action="true">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" />
<path d="M18 13.3l-6.3 -6.3" />
</svg>
<span data-translate="clear">Clear</span>
</button>
<button data-action="open-new-instance" data-is-simple-click-action="true">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 5l0 14" />
<path d="M5 12l14 0" />
</svg>
<span data-translate="new">New</span>
</button>
</div>
</header>
<ul class="history-list"></ul>
</div>
</div>
</div>
<div id="demos" hidden class="bar-content demos">
<div class="demos-content">
<div class="demos-item">
<header class="demos-header">
<strong>
<span class="demos-type" data-translate="demos">Demos</span>
</strong>
</header>
<ul class="demos-list"></ul>
</div>
</div>
</div>
<div id="ai-chat" hidden class="bar-content ai-chat">
<div class="ai-chat-content">
<div class="ai-chat-item">
<header class="ai-chat-header">
<strong>
<span class="ai-chat-type" data-translate="aiChat">AI</span>
</strong>
<span data-translate="aiChatDescription">Ask about your HTML, CSS and JavaScript. Free AI with a daily limit.</span>
</header>
<ul class="ai-chat-messages" aria-live="polite"></ul>
<form class="ai-chat-form">
<div class="ai-input-frame">
<div class="input">
<input id="ai-chat-input" type="text" data-translate-placeholder="aiChatPlaceholder" placeholder="Ask about your code..." autocomplete="off" />
</div>
<button type="button" class="ai-chat-clear" data-translate-aria="clear" aria-label="Clear" hidden>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" />
<path d="M18 13.3l-6.3 -6.3" />
</svg>
</button>
<button type="submit" class="ai-chat-send" aria-label="Send">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 19V5" />
<path d="M6 11l6-6 6 6" />
</svg>
</button>
</div>
</form>
</div>
</div>
</div>
<form id="settings" hidden class="bar-content settings">
<header class="settings-header">
<strong data-translate="settings">Settings</strong>
</header>
<div class="settings-content">
<section class="settings-section">
<h3 data-translate="settingsGeneral">General</h3>
<div class="settings-group">
<label class="settings-field">
<span data-translate="language">Language</span>
<select name="language">
<option value="en" data-translate="english">English</option>
<option value="es" data-translate="spanish">Spanish</option>
<option value="pt" data-translate="portuguese">Portuguese</option>
</select>
</label>
<label class="settings-field">
<span data-translate="colorTheme">Theme</span>
<select name="theme">
<option data-translate="dark" value="vs-dark">Dark</option>
<option data-translate="light" value="vs">Light</option>
<option data-translate="highContrastDark" value="hc-black">High Contrast Dark</option>
<option data-translate="highContrastLight" value="hc-light">High Contrast Light</option>
<option value="one-dark-pro">One Dark Pro</option>
<option value="dracula">Dracula</option>
<option value="mosqueta-dark">Mosqueta Dark</option>
</select>
</label>
</div>
</section>
<section class="settings-section">
<h3 data-translate="settingsEditor">Editor</h3>
<div class="settings-group">
<div class="settings-pair">
<label class="settings-field">
<span data-translate="fontSize">Font size</span>
<input name="fontSize" class="input" type="number" value="16" min="1" max="100" step="1" />
</label>
<label class="settings-field">
<span data-translate="tabSize">Tab size</span>
<input name="tabSize" class="input" type="number" value="2" min="1" max="100" step="1" />
</label>
</div>
<label class="settings-field">
<span data-translate="wordWrap">Word wrap</span>
<select name="wordWrap">
<option data-translate="on" value="on">On</option>
<option data-translate="off" value="off">Off</option>
<option data-translate="wordWrapAtColumn" value="wordWrapColumn">At column</option>
<option data-translate="bounded" value="bounded">Bounded</option>
</select>
</label>
<label class="settings-toggle">
<span class="settings-toggle-label" data-translate="lineNumbers">Line numbers</span>
<input name="lineNumbers" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-toggle">
<span class="settings-toggle-label" data-translate="minimap">Minimap</span>
<input name="minimap" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-toggle">
<span class="settings-toggle-label" data-translate="fontLigatures">Font ligatures</span>
<input name="fontLigatures" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-field">
<span data-translate="cursorBlinking">Cursor blink</span>
<select name="cursorBlinking">
<option data-translate="blink" value="blink">Blink</option>
<option data-translate="smooth" value="smooth">Smooth</option>
<option data-translate="phase" value="phase">Phase</option>
<option data-translate="expand" value="expand">Expand</option>
<option data-translate="solid" value="solid">Solid</option>
</select>
</label>
<label class="settings-field">
<span data-translate="cursorSmoothCaretAnimation">Cursor motion</span>
<select name="cursorSmoothCaretAnimation">
<option data-translate="off" value="off">Off</option>
<option data-translate="cursorOnMove" value="explicit">On move</option>
<option data-translate="cursorAlways" value="on">Always</option>
</select>
</label>
</div>
</section>
<section class="settings-section">
<h3>JavaScript</h3>
<div class="settings-group">
<label class="settings-toggle">
<span class="settings-toggle-text">
<span class="settings-toggle-label" data-translate="runJavascriptOnChange">Run while typing</span>
<span class="settings-toggle-hint" data-translate="runJavascriptOnChangeDesc">Updates the preview as you type</span>
</span>
<input name="runJavascriptOnChange" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-field">
<span data-translate="maxExecutionTime">Max run time (ms)</span>
<input name="maxExecutionTime" class="input" type="number" value="200" min="100" max="5000" step="100" />
<span class="settings-hint" data-translate="maxExecutionTimeDesc">Stops infinite loops from freezing the editor</span>
</label>
</div>
</section>
<section class="settings-section">
<h3 data-translate="settingsProject">Project</h3>
<div class="settings-group">
<label class="settings-toggle">
<span class="settings-toggle-label" data-translate="preserveGrid">Remember split sizes</span>
<input name="preserveGrid" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-toggle">
<span class="settings-toggle-text">
<span class="settings-toggle-label" data-translate="saveLocally">Save locally</span>
<span class="settings-toggle-hint" data-translate="saveLocallyHint">Restores your code when you come back</span>
</span>
<input name="saveLocalstorage" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
<label class="settings-toggle">
<span class="settings-toggle-text">
<span class="settings-toggle-label" data-translate="syncUrl">Sync URL</span>
<span class="settings-toggle-hint" data-translate="syncUrlHint">Share the playground with the link</span>
</span>
<input name="urlSync" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
</div>
</section>
<section class="settings-section">
<h3 data-translate="settingsDownload">Download</h3>
<div class="settings-group">
<label class="settings-field">
<span data-translate="fileName">File name</span>
<input name="zipFileName" class="input" type="text" value="codi.link" required spellcheck="false" />
</label>
<label class="settings-toggle">
<span class="settings-toggle-label" data-translate="exportOneZip">Single ZIP file</span>
<input name="zipInSingleFile" type="checkbox" />
<span class="settings-switch" aria-hidden="true"></span>
</label>
</div>
</section>
</div>
</form>
</div>
<div id="layout-switcher" class="layout-switcher" hidden>
<div class="layout-switcher-grid">
<button type="button" class="layout-option" data-layout="default" aria-pressed="false">
<div class="layout-preview" data-layout="default" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button type="button" class="layout-option" data-layout="layout-2" aria-pressed="false">
<div class="layout-preview" data-layout="layout-2" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button type="button" class="layout-option" data-layout="vertical" aria-pressed="false">
<div class="layout-preview" data-layout="vertical" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button type="button" class="layout-option" data-layout="horizontal" aria-pressed="false">
<div class="layout-preview" data-layout="horizontal" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button type="button" class="layout-option" data-layout="bottom" aria-pressed="false">
<div class="layout-preview" data-layout="bottom" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
<button type="button" class="layout-option" data-layout="tabs" aria-pressed="false">
<div class="layout-preview" data-layout="tabs" aria-hidden="true">
<div class="html"></div>
<div class="css"></div>
<div class="js"></div>
<div class="result"></div>
</div>
</button>
</div>
</div>
</aside>
<div id="editor" class="grid">
<div id="tabs">
<label for="markup" class="active">HTML</label>
<label for="script">JavaScript</label>
<label for="style">CSS</label>
<label for="editor-preview" hidden>Preview</label>
</div>
<div class="editor" data-grid-area="editor-html" data-language="html" id="markup">
<span class="pane-icon" aria-hidden="true"></span>
<button type="button" class="pane-expand" data-translate-aria="expandHtml" aria-label="Expand HTML" tabindex="-1"></button>
</div>
<div class="editor" data-grid-area="editor-js" data-language="javascript" id="script">
<span class="pane-icon" aria-hidden="true"></span>
<button type="button" class="pane-expand" data-translate-aria="expandJs" aria-label="Expand JavaScript" tabindex="-1"></button>
</div>
<div class="editor" data-grid-area="editor-css" data-language="css" id="style">
<span class="pane-icon" aria-hidden="true"></span>
<button type="button" class="pane-expand" data-translate-aria="expandCss" aria-label="Expand CSS" tabindex="-1"></button>
</div>
<div id="editor-preview" class="iframe-container">
<button type="button" class="pane-expand" data-translate-aria="expandPreview" aria-label="Expand preview" tabindex="-1"></button>
<div id="preview-error" class="preview-error" hidden role="alert">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
<p data-translate="demoLoadError">Could not load this demo. Please try again.</p>
<button type="button" class="preview-error-close" aria-label="Close">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M18 6l-12 12" />
<path d="M6 6l12 12" />
</svg>
</button>
</div>
<iframe title="CodiLink Preview"
allow="language-model; clipboard-read; clipboard-write"
sandbox="allow-scripts allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-pointer-lock"></iframe>
</div>
<div class="gutter-col gutter-col-a"></div>
<div class="gutter-col gutter-col-b"></div>
<div class="gutter-row gutter-row-a"></div>
<div class="gutter-row gutter-row-b"></div>
<div class="gutter-center" hidden></div>
<div class="first-gutter"></div>
<div class="second-gutter"></div>
<div class="last-gutter"></div>
<div class="scroll-buttons-container">
<button class="scroll-button button-up" disabled>
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M6 15l6 -6l6 6" />
</svg>
</button>
<button class="scroll-button button-down">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M6 9l6 6l6 -6" />
</svg>
</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>