-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
286 lines (255 loc) · 14.9 KB
/
index.html
File metadata and controls
286 lines (255 loc) · 14.9 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
<!DOCTYPE html>
<html lang="es">
<head>
<title>Code | Iker Sastre</title>
<meta name="description" content="Editor en linea de HTML, CSS y JS">
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/assets/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link as="font" rel="preload" crossorigin="anonymous" href="/assets/fonts/CascadiaCodePL.woff2">
<link as="font" rel="preload" crossorigin="anonymous" href="/assets/fonts/CascadiaCodePLItalic.woff2">
<link rel="stylesheet" href="./src/style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3542DHYNH8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3542DHYNH8');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4600451504354425"
crossorigin="anonymous"></script>
</head>
<body>
<div class="overlay-drag hidden">
<div id="drag-file" class="open-file-dragging">
<div class="zone-drag-drop">
<strong>Drag & Drop File to Open</strong>
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="#c5c5c5" d="M8 12h4V6h3l-5-5-5 5h3v6zm11.338 1.532c-.21-.224-1.611-1.723-2.011-2.114A1.503 1.503 0 0 0 16.285 11h-1.757l3.064 2.994h-3.544a.274.274 0 0 0-.24.133L12.992 16H7.008l-.816-1.873a.276.276 0 0 0-.24-.133H2.408L5.471 11H3.715c-.397 0-.776.159-1.042.418-.4.392-1.801 1.891-2.011 2.114-.489.521-.758.936-.63 1.449l.561 3.074c.128.514.691.936 1.252.936h16.312c.561 0 1.124-.422 1.252-.936l.561-3.074c.126-.513-.142-.928-.632-1.449z"/></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">Editor</span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><defs/><path fill="#C5C5C5" d="M17.5 0h-9L7 1.5V6H2.5L1 7.5v15L2.5 24h12l1.5-1.4V18h4.7l1.3-1.4V4.5L17.5 0zm0 2.1l2.4 2.4h-2.4V2.1zm-3 20.4h-12v-15H7v9L8.5 18h6v4.5zm6-6h-12v-15H16V6h4.5v10.5z"/></svg>
</button>
<button class="bar-button" aria-label="Show skypack bar" data-action="show-skypack-bar">
<span role="tooltip" class="button-title">Skypack</span>
<svg fill="#C5C5C5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 26"><path d="M17.387 12.213L10.95 9l6.438-3.212c.3-.15.487-.45.487-.788a.875.875 0 00-.488-.788l-8-4a.874.874 0 00-.787 0l-8 4c-.3.15-.487.45-.487.788v8c0 .3.162.588.412.75l.075.037L7.038 17 .6 20.212c-.3.15-.487.45-.487.788 0 .337.187.637.487.788l8 4a.874.874 0 00.388.087.874.874 0 00.387-.087l8-4c.3-.15.488-.45.488-.788v-8a.842.842 0 00-.476-.787zM9 1.975L15.037 5 9 8.025 2.963 5 9 1.975zM1.875 6.413L7.038 9l-5.163 2.588V6.413zM2.963 13L9 9.975 15.037 13 9 16.025 2.963 13zm5.162 5.413v5.162l-5.162-2.587 5.162-2.575zm8 2.05l-6.25 3.124V17.55l6.25-3.125v6.037z"></path></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">Download</span>
<svg width="24" height="24" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 1h11v6l-1 1v7H2V2l1-1Zm3 1H5v2h1V2Zm0 12h4V8L9 7V2H7v3H6v1H5V5H4V2H3v12h2v-1h1v1Zm0-2v1h1v-1H6Zm0-1v1H5v-1h1Zm0-1h1v1H6v-1Zm0-1v1H5V9h1Zm0-1h1v1H6V8Zm0-1v1H5V7h1Zm0 0h1V6H6v1Zm6 0 1-1V2h-3v4l1 1v7h1V7Z" fill="#C5C5C5"/></svg>
</button>
</header>
<footer>
<button aria-label="Open iframe tab" data-action="open-iframe-tab" data-is-simple-click-action="true">
<span role="tooltip" class="button-title">Preview</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" ><path fill="#C5C5C5" d="M41.47 4.986A1.5 1.5 0 0 0 41.31 5H27.5a1.5 1.5 0 1 0 0 3h10.379l-15.44 15.44a1.5 1.5 0 1 0 2.122 2.12L40 10.122V20.5a1.5 1.5 0 1 0 3 0V6.69a1.5 1.5 0 0 0-1.53-1.704zM12.5 8C8.375 8 5 11.375 5 15.5v20c0 4.125 3.375 7.5 7.5 7.5h20c4.125 0 7.5-3.375 7.5-7.5v-10a1.5 1.5 0 1 0-3 0v10c0 2.503-1.997 4.5-4.5 4.5h-20A4.477 4.477 0 0 1 8 35.5v-20c0-2.503 1.997-4.5 4.5-4.5h10a1.5 1.5 0 1 0 0-3h-10z"/></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">Copy to clipboard</span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><g fill="none" stroke="#C5C5C5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98"/></g></svg>
</button>
<button class="bar-button" aria-label="Show settings bar" data-action="show-settings-bar">
<span role="tooltip" class="button-title">Settings</span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><defs/><path fill="#C5C5C5" fill-rule="evenodd" d="M19.85 8.75l4.15.83v4.84l-4.15.83 2.35 3.52-3.43 3.43-3.52-2.35-.83 4.15H9.58l-.83-4.15-3.52 2.35-3.43-3.43 2.35-3.52L0 14.42V9.58l4.15-.83L1.8 5.23 5.23 1.8l3.52 2.35L9.58 0h4.84l.83 4.15 3.52-2.35 3.43 3.43-2.35 3.52zm-1.57 5.07l4-.81v-2l-4-.81-.54-1.3 2.29-3.43-1.43-1.43-3.43 2.29-1.3-.54-.81-4h-2l-.81 4-1.3.54-3.43-2.29-1.43 1.43L6.38 8.9l-.54 1.3-4 .81v2l4 .81.54 1.3-2.29 3.43 1.43 1.43 3.43-2.29 1.3.54.81 4h2l.81-4 1.3-.54 3.43 2.29 1.43-1.43-2.29-3.43.54-1.3zm-8.19-4.67a3.43 3.43 0 113.82 5.7 3.43 3.43 0 01-3.82-5.7zm.96 4.27a1.71 1.71 0 101.9-2.84 1.71 1.71 0 00-1.9 2.84z" clip-rule="evenodd"/></svg>
</button>
</footer>
</div>
<div class="aside-bar" hidden>
<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>
Add dependency
</strong>
An import statement will be added to the top of the JavaScript editor for the package.
<div class="input">
<svg viewBox="0 0 56.7 56.7" class="input-icon" width="18" height="18"><path d="M42.8,7.3C33-2.4,17.1-2.4,7.3,7.3c-9.8,9.8-9.8,25.7,0,35.5c8.7,8.7,22.2,9.7,32,2.9l9.6,9.6c1.8,1.8,4.7,1.8,6.4,0 c1.8-1.8,1.8-4.7,0-6.4l-9.6-9.6C52.5,29.5,51.5,16,42.8,7.3z M36.6,36.6c-6.4,6.4-16.7,6.4-23.1,0s-6.4-16.7,0-23.1 c6.4-6.4,16.7-6.4,23.1,0C43,19.9,43,30.3,36.6,36.6z"></path></svg>
<input 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="settings" hidden class="bar-content settings">
<div class="settings-content">
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Line Numbers
</strong>
Controls the display of line numbers.
<div class="select">
<select data-for="lineNumbers">
<option value="on">on</option>
<option value="off">off</option>
<option value="relative">relative</option>
<option value="interval">interval</option>
</select>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Word Wrap
</strong>
Controls how lines should wrap.
<div class="select">
<select data-for="wordWrap">
<option value="on">on</option>
<option value="off">off</option>
<option value="wordWrapColumn">wordWrapColumn</option>
<option value="bounded">bounded</option>
</select>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Workbench:</span>
Color theme
</strong>
Specifies the color theme used in the workbench.
<div class="select">
<select data-for="theme">
<option value="vs-dark">Dark</option>
<option value="vs">Light</option>
<option value="hc-black">High Contrast Dark</option>
</select>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Font Size
</strong>
Controls the font size in pixels.
<input data-for="fontSize" class="input" autocorrect="off" autocapitalize="off" spellcheck="false" type="number" wrap="off" value="16" min="1" max="100" step="1">
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Tab Size
</strong>
Controls the tab size.
<input data-for="tabSize" class="input" autocorrect="off" autocapitalize="off" spellcheck="false" type="number" wrap="off" value="2" min="1" max="100" step="1">
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor › Minimap:</span>
Enabled
</strong>
<div>
<label class="checkbox">
<input data-for="minimap" type="checkbox" />
<span>Controls whether the minimap is shown.</span>
</label>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Font Ligatures
</strong>
<div>
<label class="checkbox">
<input data-for="fontLigatures" type="checkbox" />
<span>Controls whether the ligatures is enabled.</span>
</label>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Editor:</span>
Layout
</strong>
<div>
<span>Change view layout</span>
<div class="layout-preview-container">
<layout-preview layout="default"></layout-preview>
<layout-preview layout="layout-2"></layout-preview>
<layout-preview layout="vertical"></layout-preview>
<layout-preview layout="horizontal"></layout-preview>
<layout-preview layout="bottom"></layout-preview>
</div>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Workbench:</span>
Preserve Grid
</strong>
<div>
<label class='checkbox'>
<input data-for="preserveGrid" type='checkbox' />
<span>Controls whether the grid template is preserved.</span>
</label>
</div>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Features › Download:</span>
File name
</strong>
Set the zip file name.
<input data-for="zipFileName" class="input" autocorrect="off" autocapitalize="off" spellcheck="false" type="text" wrap="off" value="codi.link" required>
</div>
<div class="settings-item">
<strong>
<span class="settings-type">Features › Download:</span>
Content
</strong>
<div>
<label class='checkbox'>
<input data-for="zipInSingleFile" type='checkbox' />
<span>Controls whether export one single zipped HTML file.</span>
</label>
</div>
</div>
</div>
</div>
</div>
</aside>
<div id="editor" class="grid">
<codi-editor id="markup" language="html"></codi-editor>
<codi-editor id="script" language="javascript"></codi-editor>
<codi-editor id="style" language="css"></codi-editor>
<div id="editor-preview" class='iframe-container'>
<iframe srcdoc="" title="CodiLink Preview"></iframe>
</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">
<svg width="52" height="29" viewBox="0 0 52 29" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.9946 5.57505L4.579 26.9906L1.53809 23.9497L24.4741 1.01367L27.515 1.01367L50.4511 23.9497L47.4102 26.9906L25.9946 5.57505Z" fill="#FFF" stroke="#FFF" stroke-width="1.5"/>
</svg>
</button>
<button class="scroll-button button-down">
<svg width="52" height="29" viewBox="0 0 52 29" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.9946 23.0004L4.579 1.58484L1.53809 4.62576L24.4741 27.5618L27.515 27.5618L50.4511 4.62576L47.4102 1.58484L25.9946 23.0004Z" fill="#FFF" stroke="#FFF" stroke-width="1.5"/>
</svg>
</button>
</div>
</div>
<div id="notifications"></div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>