forked from midudev/codi.link
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
168 lines (153 loc) · 8.04 KB
/
index.html
File metadata and controls
168 lines (153 loc) · 8.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<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. It allows you to edit your code in real-time, and see the result instantly">
<meta charset="UTF-8" />
<link rel="icon" type=image/x-icon href="/assets/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://waterboa.midu.dev/script.js" data-site="LPFWYLUB" defer></script>
<link as="font" rel="preload" crossorigin="anonymous" href="/assets/fonts/CascadiaCodePL.woff2">
<link as="font" rel="preload" crossorigin="anonymous" href="/assets/fonts/CascadiaCodePLItalic.woff2">
</head>
<body>
<div id="app">
<aside>
<div class='aside-sections'>
<header>
<button class="is-active" 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 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>
</header>
<footer>
<button 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">
<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 type="search" placeholder="Search npm and add a package..." autocomplete="off">
</div>
<div class="search-results">
<p class="search-results-message"></p>
<ul></ul>
</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" tabindex="-1" value="16">
</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>
</div>
</div>
</aside>
<div id="editor" class="grid">
<div class='editor' id='html'></div>
<div class='editor' id='js'></div>
<div class='editor' id='css'></div>
<div>
<iframe srcdoc=""></iframe>
</div>
<div class="vertical-gutter"></div>
<div class="horizontal-gutter"></div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>