-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
341 lines (336 loc) · 39 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="./svg/favicon.svg">
<title>Minecraft Tellraw Generator</title>
<!-- style -->
<link rel="stylesheet/less" type="text/css" href="./style/main.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/font.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/button.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/tool-bar.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/text-area.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/header.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/section.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/details.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/text-input.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/render-output.less"/>
<link rel="stylesheet/less" type="text/css" href="./style/components/footer.less"/>
<script src="https://cdn.jsdelivr.net/npm/less" defer></script>
<!-- script -->
<script src="./js/main.js" type="module" defer></script>
<script src="./js/text-area.js" type="module" defer></script>
<script src="./js/select-background-image.js" type="module" defer></script>
</head>
<body>
<header class="header header--main-header">
<div class="header__item header__item__logo-name">
<a class="a" href="" title="Minecraft Tellraw Generator">
<svg class="a__logo" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path d="M17.242,0.333L17.242,0.331L28.95,7.091C29.717,7.535 30.191,8.354 30.191,9.241L30.191,22.758C30.192,23.644 29.717,24.466 28.95,24.909L17.242,31.667C16.474,32.111 15.526,32.111 14.758,31.667L3.05,24.908C2.283,24.465 1.809,23.644 1.809,22.758L1.809,9.241C1.809,8.354 2.283,7.535 3.05,7.091L14.758,0.333C15.526,-0.111 16.474,-0.111 17.242,0.333ZM15.823,2.175L5.002,8.422L16,14.771L26.998,8.422L16.177,2.175C16.068,2.111 15.932,2.111 15.823,2.175ZM17.064,29.313L27.885,23.066C27.995,23.003 28.062,22.886 28.063,22.759L28.063,10.265L17.064,16.614L17.064,29.313ZM3.937,10.267L3.937,22.759C3.937,22.887 4.005,23.003 4.115,23.066L14.936,29.313L14.936,16.616L3.937,10.267Z"/>
</svg>
<span class="a__name">Minecraft Tellraw Generator</span>
</a>
</div>
<div class="header__item header__item__profile">
<a class="a" href="https://github.com/Mqxx" target="_blank" rel="noreferrer noopener" title="Mqxx on GitHub">
<img class="avatar" src="https://github.com/Mqxx.png" alt="avatar">
</a>
</div>
</header>
<section class="section">
<!-- Text Input -->
<div class="section__item">
<details class="details" open>
<summary class="details__header">
<span class="details__header__name">Text Input</span>
<svg class="details__header__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12">
<path d="M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"/>
</svg>
</summary>
<div class="details__content">
<div class="text-input">
<div class="text-wrapper">
<header class="tool-bar" id="tool-bar">
<ul class="tools" data-tools="edit">
<li class="tools__group" data-group="text">
<ul class="tools__group__list">
<!-- Edit: Copy -->
<li class="tools__group__list__item" data-action="copy" title="Edit:
Copy">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"/>
</svg>
</li>
<!-- Edit: Paste -->
<li class="tools__group__list__item" data-action="paste" title="Edit:
Paste">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M3.626 3.533a.249.249 0 0 0-.126.217v9.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-9.5a.249.249 0 0 0-.126-.217.75.75 0 0 1 .752-1.298c.541.313.874.89.874 1.515v9.5A1.75 1.75 0 0 1 12.25 15h-8.5A1.75 1.75 0 0 1 2 13.25v-9.5c0-.625.333-1.202.874-1.515a.75.75 0 0 1 .752 1.298ZM5.75 1h4.5a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 4.75v-3A.75.75 0 0 1 5.75 1Zm.75 3h3V2.5h-3Z"/>
</svg>
</li>
</ul>
</li>
<li class="tools__divider"></li>
<li class="tools__group" data-group="history">
<ul class="tools__group__list">
<!-- History: Undo -->
<li class="tools__group__list__item" data-action="undo" title="History:
Undo">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M6.654,2.094C6.944,2.385 6.944,2.863 6.654,3.154L3.684,6.124L10.124,6.124C12.73,6.124 14.874,8.268 14.874,10.874L14.874,13.374C14.874,13.785 14.535,14.124 14.124,14.124C13.712,14.124 13.374,13.785 13.374,13.374L13.374,10.874C13.374,9.091 11.907,7.624 10.124,7.624L3.684,7.624L6.654,10.594C6.806,10.736 6.893,10.935 6.893,11.143C6.893,11.485 6.659,11.785 6.328,11.869C6.063,11.937 5.781,11.854 5.594,11.654L1.344,7.404C1.053,7.113 1.053,6.635 1.344,6.344L5.594,2.094C5.885,1.803 6.363,1.803 6.654,2.094Z"/>
</svg>
</li>
<!-- History: Redo -->
<li class="tools__group__list__item" data-action="redo" title="History:
Redo">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M9.346,2.094C9.056,2.385 9.056,2.863 9.346,3.154L12.316,6.124L5.876,6.124C3.27,6.124 1.126,8.268 1.126,10.874L1.126,13.374C1.126,13.785 1.465,14.124 1.876,14.124C2.288,14.124 2.626,13.785 2.626,13.374L2.626,10.874C2.626,9.091 4.093,7.624 5.876,7.624L12.316,7.624L9.346,10.594C9.194,10.736 9.107,10.935 9.107,11.143C9.107,11.485 9.341,11.785 9.672,11.869C9.937,11.937 10.219,11.854 10.406,11.654L14.656,7.404C14.947,7.113 14.947,6.635 14.656,6.344L10.406,2.094C10.115,1.803 9.637,1.803 9.346,2.094Z"/>
</svg>
</li>
</ul>
</li>
</ul>
<ul class="tools" data-tools="tellraw">
<li class="tools__group" data-group="format">
<ul class="tools__group__list">
<!-- Format: Bold Text -->
<li class="tools__group__list__item" data-action="bold-text" title="Format:
Bold Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M4 2h4.5a3.501 3.501 0 0 1 2.852 5.53A3.499 3.499 0 0 1 9.5 14H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 7v3h4.5a1.5 1.5 0 0 0 0-3Zm3.5-2a1.5 1.5 0 0 0 0-3H5v3Z"/>
</svg>
</li>
<!-- Format: Italic Text -->
<li class="tools__group__list__item" data-action="italic-text" title="Format:
Italic Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M6 2.75A.75.75 0 0 1 6.75 2h6.5a.75.75 0 0 1 0 1.5h-2.505l-3.858 9H9.25a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.505l3.858-9H6.75A.75.75 0 0 1 6 2.75Z"/>
</svg>
</li>
<!-- Format: Underlined Text -->
<li class="tools__group__list__item" data-action="underlined-text" title="Format:
Underlined Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" >
<path d="M12,13.25C12,12.836 11.664,12.5 11.25,12.5L4.75,12.5C4.336,12.5 4,12.836 4,13.25C4,13.664 4.336,14 4.75,14L11.25,14C11.664,14 12,13.664 12,13.25ZM5.5,2.74C5.5,2.619 5.5,1.535 5.5,7C5.5,8.38 6.62,9.5 8,9.5L8,9.5C9.38,9.5 10.5,8.38 10.5,7L10.5,2.75C10.5,2.336 10.836,2 11.25,2C11.664,2 12,2.336 12,2.75L12,7C12,9.209 10.209,11 8,11L8,11C5.791,11 4,9.209 4,7L4,2.75C4,2.336 4.336,2 4.75,2C5.161,2 5.495,2.331 5.5,2.74ZM5.5,2.74C5.5,2.743 5.5,2.747 5.5,2.75C5.5,2.75 5.5,2.746 5.5,2.74Z"/>
</svg>
</li>
<!-- Format: Strikethrough Text -->
<li class="tools__group__list__item" data-action="strikethrough-text" title="Format:
Strikethrough Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M11.055 8.5c.524.536.815 1.257.811 2.007a3.133 3.133 0 0 1-1.12 2.408C9.948 13.597 8.748 14 7.096 14c-1.706 0-3.104-.607-3.902-1.377a.751.751 0 0 1 1.042-1.079c.48.463 1.487.956 2.86.956 1.422 0 2.232-.346 2.676-.726.435-.372.594-.839.594-1.267 0-.472-.208-.857-.647-1.197-.448-.346-1.116-.623-1.951-.81H1.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5ZM7.581 3.25c-2.036 0-2.778 1.082-2.778 1.786 0 .055.002.107.006.157a.75.75 0 0 1-1.496.114 3.506 3.506 0 0 1-.01-.271c0-1.832 1.75-3.286 4.278-3.286 1.418 0 2.721.58 3.514 1.093a.75.75 0 1 1-.814 1.26c-.64-.414-1.662-.853-2.7-.853Z"/>
</svg>
</li>
<!-- Format: Obfuscated Text -->
<li class="tools__group__list__item" data-action="obfuscated-text" title="Format:
Obfuscated Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M7.5,13.25C7.5,12.836 7.164,12.5 6.75,12.5C6.336,12.5 6,12.836 6,13.25C6,13.664 6.336,14 6.75,14C7.164,14 7.5,13.664 7.5,13.25ZM4.25,2L2.75,2C2.336,2 2,2.336 2,2.75C2,3.164 2.336,3.5 2.75,3.5L3.5,3.5L3.5,11.5L2.75,11.5C2.336,11.5 2,11.836 2,12.25C2,12.664 2.336,13 2.75,13L4.25,13C4.664,13 5,12.664 5,12.25L5,2.75C5,2.336 4.664,2 4.25,2ZM7.5,4.75C7.5,4.336 7.164,4 6.75,4C6.336,4 6,4.336 6,4.75L6,10.75C6,11.164 6.336,11.5 6.75,11.5C7.164,11.5 7.5,11.164 7.5,10.75L7.5,4.75ZM11.5,8M11.5,2C9.843,2 8.5,3.343 8.5,5C8.5,5.896 8.893,6.7 9.516,7.25C8.893,7.8 8.5,8.604 8.5,9.5C8.5,11.157 9.843,12.5 11.5,12.5L13.25,12.5C13.664,12.5 14,12.164 14,11.75L14,9.75C14,9.336 13.664,9 13.25,9C12.836,9 12.5,9.336 12.5,9.75L12.5,11L11.5,11C10.672,11 10,10.328 10,9.5C10,8.672 10.672,8 11.5,8L13.25,8C13.664,8 14,7.664 14,7.25C14,6.836 13.664,6.5 13.25,6.5L11.5,6.5C10.672,6.5 10,5.828 10,5C10,4.172 10.672,3.5 11.5,3.5L12.25,3.5C12.664,3.5 13,3.164 13,2.75C13,2.336 12.664,2 12.25,2L11.5,2Z"/>
</svg>
</li>
<!-- Format: Custom Font -->
<li class="tools__group__list__item" data-action="custom-font" title="Format:
Custom Font">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M6.71 10H2.332l-.874 2.498a.75.75 0 0 1-1.415-.496l3.39-9.688a1.217 1.217 0 0 1 2.302.018l3.227 9.681a.75.75 0 0 1-1.423.474Zm3.13-4.358C10.53 4.374 11.87 4 13 4c1.5 0 3 .939 3 2.601v5.649a.75.75 0 0 1-1.448.275C13.995 12.82 13.3 13 12.5 13c-.77 0-1.514-.231-2.078-.709-.577-.488-.922-1.199-.922-2.041 0-.694.265-1.411.887-1.944C11 7.78 11.88 7.5 13 7.5h1.5v-.899c0-.54-.5-1.101-1.5-1.101-.869 0-1.528.282-1.84.858a.75.75 0 1 1-1.32-.716ZM6.21 8.5 4.574 3.594 2.857 8.5Zm8.29.5H13c-.881 0-1.375.22-1.637.444-.253.217-.363.5-.363.806 0 .408.155.697.39.896.249.21.63.354 1.11.354.732 0 1.26-.209 1.588-.449.35-.257.412-.495.412-.551Z"/>
</svg>
</li>
</ul>
</li>
<li class="tools__divider"></li>
<li class="tools__group" data-group="color">
<ul class="tools__group__list">
<!-- Color: Text Color -->
<li class="tools__group__list__item" data-action="text-color" title="Color:
Text Color">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M11.134 1.535c.7-.509 1.416-.942 2.076-1.155.649-.21 1.463-.267 2.069.34.603.601.568 1.411.368 2.07-.202.668-.624 1.39-1.125 2.096-1.011 1.424-2.496 2.987-3.775 4.249-1.098 1.084-2.132 1.839-3.04 2.3a3.744 3.744 0 0 1-1.055 3.217c-.431.431-1.065.691-1.657.861-.614.177-1.294.287-1.914.357A21.151 21.151 0 0 1 .797 16H.743l.007-.75H.749L.742 16a.75.75 0 0 1-.743-.742l.743-.008-.742.007v-.054a21.25 21.25 0 0 1 .13-2.284c.067-.647.187-1.287.358-1.914.17-.591.43-1.226.86-1.657a3.746 3.746 0 0 1 3.227-1.054c.466-.893 1.225-1.907 2.314-2.982 1.271-1.255 2.833-2.75 4.245-3.777ZM1.62 13.089c-.051.464-.086.929-.104 1.395.466-.018.932-.053 1.396-.104a10.511 10.511 0 0 0 1.668-.309c.526-.151.856-.325 1.011-.48a2.25 2.25 0 1 0-3.182-3.182c-.155.155-.329.485-.48 1.01a10.515 10.515 0 0 0-.309 1.67Zm10.396-10.34c-1.224.89-2.605 2.189-3.822 3.384l1.718 1.718c1.21-1.205 2.51-2.597 3.387-3.833.47-.662.78-1.227.912-1.662.134-.444.032-.551.009-.575h-.001V1.78c-.014-.014-.113-.113-.548.027-.432.14-.995.462-1.655.942Zm-4.832 7.266-.001.001a9.859 9.859 0 0 0 1.63-1.142L7.155 7.216a9.7 9.7 0 0 0-1.161 1.607c.482.302.889.71 1.19 1.192Z"/>
</svg>
</li>
</ul>
</li>
<li class="tools__divider"></li>
<li class="tools__group" data-group="click-event">
<ul class="tools__group__list">
<!-- Click Event: Run Command -->
<li class="tools__group__list__item" data-action="run-command" title="Click Event:
Run Command">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m6.354 8.04-4.773 4.773a.75.75 0 1 0 1.061 1.06L7.945 8.57a.75.75 0 0 0 0-1.06L2.642 2.206a.75.75 0 0 0-1.06 1.061L6.353 8.04ZM8.75 11.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Z"/>
</svg>
</li>
<!-- Click Event: Suggest Command -->
<li class="tools__group__list__item" data-action="suggest-command" title="Click Event:
Suggest Command">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"/>
</svg>
</li>
<!-- Click Event: Insert Text -->
<li class="tools__group__list__item" data-action="inline-text" title="Click Event:
Insert Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m10.78 8.53-3.75 3.75a.749.749 0 1 1-1.06-1.06l2.469-2.47H1.75a.75.75 0 0 1 0-1.5h6.689L5.97 4.78a.749.749 0 1 1 1.06-1.06l3.75 3.75a.749.749 0 0 1 0 1.06ZM13 12.25v-8.5a.75.75 0 0 1 1.5 0v8.5a.75.75 0 0 1-1.5 0Z">
</svg>
</li>
<!-- Click Event: Open URL -->
<li class="tools__group__list__item" data-action="open-url" title="Click Event:
Open URL">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"/>
</svg>
</li>
<!-- Click Event: Copy Text to Clipboard -->
<li class="tools__group__list__item" data-action="copy-text-to-clipboard" title="Click Event:
Copy Text to Clipboard">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"/>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"/>
</svg>
</li>
</ul>
</li>
<li class="tools__divider"></li>
<li class="tools__group" data-group="hover-event">
<ul class="tools__group__list">
<!-- Hover Event: Show Text -->
<li class="tools__group__list__item" data-action="show-text" title="Hover Event:
Show Text">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"/>
</svg>
</li>
<!-- Hover Event: Show Item or Block -->
<li class="tools__group__list__item" data-action="show-item-or-block" title="Hover Event:
Show Item or Block">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z"/>
</svg>
</li>
<!-- Hover Event: Show Entity (Player, Mob, etc.) -->
<li class="tools__group__list__item" data-action="show-entity" title="Hover Event:
Show Entity (Player, Mob, etc.)">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
</svg>
</li>
</ul>
</li>
<li class="tools__divider"></li>
<li class="tools__group" data-group="inline">
<ul class="tools__group__list">
<li class="tools__group__list__item" data-action="inline-selector" title="Inline:
Insert Selector">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M4.75 2.37a6.501 6.501 0 0 0 6.5 11.26.75.75 0 0 1 .75 1.298A7.999 7.999 0 0 1 .989 4.148 8 8 0 0 1 16 7.75v1.5a2.75 2.75 0 0 1-5.072 1.475 3.999 3.999 0 0 1-6.65-4.19A4 4 0 0 1 12 8v1.25a1.25 1.25 0 0 0 2.5 0V7.867a6.5 6.5 0 0 0-9.75-5.496ZM10.5 8a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
</svg>
</li>
<li class="tools__group__list__item" data-action="inline-nbt" title="Inline:
Insert NBT Storage">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M1 3.5c0-.626.292-1.165.7-1.59.406-.422.956-.767 1.579-1.041C4.525.32 6.195 0 8 0c1.805 0 3.475.32 4.722.869.622.274 1.172.62 1.578 1.04.408.426.7.965.7 1.591v9c0 .626-.292 1.165-.7 1.59-.406.422-.956.767-1.579 1.041C11.476 15.68 9.806 16 8 16c-1.805 0-3.475-.32-4.721-.869-.623-.274-1.173-.62-1.579-1.04-.408-.426-.7-.965-.7-1.591Zm1.5 0c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 5.205 6.353 5.5 8 5.5c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55 0-.133-.058-.318-.282-.551-.227-.237-.591-.483-1.101-.707C11.102 1.795 9.647 1.5 8 1.5c-1.646 0-3.101.295-4.118.742-.508.224-.873.471-1.1.708-.224.232-.282.417-.282.55Zm0 4.5c0 .133.058.318.282.551.227.237.591.483 1.101.707C4.898 9.705 6.353 10 8 10c1.646 0 3.101-.295 4.118-.742.508-.224.873-.471 1.1-.708.224-.232.282-.417.282-.55V5.724c-.241.15-.503.286-.778.407C11.475 6.68 9.805 7 8 7c-1.805 0-3.475-.32-4.721-.869a6.15 6.15 0 0 1-.779-.407Zm0 2.225V12.5c0 .133.058.318.282.55.227.237.592.484 1.1.708 1.016.447 2.471.742 4.118.742 1.647 0 3.102-.295 4.117-.742.51-.224.874-.47 1.101-.707.224-.233.282-.418.282-.551v-2.275c-.241.15-.503.285-.778.406-1.247.549-2.917.869-4.722.869-1.805 0-3.475-.32-4.721-.869a6.327 6.327 0 0 1-.779-.406Z"/>
</svg>
</li>
<li class="tools__group__list__item" data-action="inline-score" title="Inline:
Insert Score">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M9 4.75A.75.75 0 0 1 9.75 4h4a.75.75 0 0 1 .53 1.28l-1.89 1.892c.312.076.604.18.867.319.742.391 1.244 1.063 1.244 2.005 0 .653-.231 1.208-.629 1.627-.386.408-.894.653-1.408.777-1.01.243-2.225.063-3.124-.527a.751.751 0 0 1 .822-1.254c.534.35 1.32.474 1.951.322.306-.073.53-.201.67-.349.129-.136.218-.32.218-.596 0-.308-.123-.509-.444-.678-.373-.197-.98-.318-1.806-.318a.75.75 0 0 1-.53-1.28l1.72-1.72H9.75A.75.75 0 0 1 9 4.75Zm-3.587 5.763c-.35-.05-.77.113-.983.572a.75.75 0 1 1-1.36-.632c.508-1.094 1.589-1.565 2.558-1.425 1 .145 1.872.945 1.872 2.222 0 1.433-1.088 2.192-1.79 2.681-.308.216-.571.397-.772.573H7a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75c0-.69.3-1.211.67-1.61.348-.372.8-.676 1.15-.92.8-.56 1.18-.904 1.18-1.474 0-.473-.267-.69-.587-.737ZM5.604.089A.75.75 0 0 1 6 .75v4.77h.711a.75.75 0 0 1 0 1.5H3.759a.75.75 0 0 1 0-1.5H4.5V2.15l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037Z"/>
</svg>
</li>
<li class="tools__group__list__item" data-action="inline-translation" title="Inline:
Insert Translation">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"/>
</svg>
</li>
<li class="tools__group__list__item" data-action="inline-keybind" title="Inline:
Insert Keybind">
<svg class="tools__group__list__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M0 2.75A2.75 2.75 0 0 1 2.75 0h10.5A2.75 2.75 0 0 1 16 2.75v10.5A2.75 2.75 0 0 1 13.25 16H2.75A2.75 2.75 0 0 1 0 13.25ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25Z"/>
<path d="M8 4a.75.75 0 0 1 .75.75V6.7l1.69-.975a.75.75 0 0 1 .75 1.3L9.5 8l1.69.976a.75.75 0 0 1-.75 1.298L8.75 9.3v1.951a.75.75 0 0 1-1.5 0V9.299l-1.69.976a.75.75 0 0 1-.75-1.3L6.5 8l-1.69-.975a.75.75 0 0 1 .75-1.3l1.69.976V4.75A.75.75 0 0 1 8 4Z"/>
</svg>
</li>
</ul>
</li>
</ul>
</header>
<div class="text-area" id="text-area" contenteditable="true" placeholder="Enter text..." spellcheck="false">
<!-- <span class="text-area__line" data-format="bold-text">Bold</span><br>
<span class="text-area__line" data-format="italic-text">Italic</span><br>
<span class="text-area__line" data-format="underlined-text">Underlined</span><br>
<span class="text-area__line" data-format="strikethrough-text">Strikethrough</span><br>
<span class="text-area__line" data-format="obfuscated-text">Obfuscated</span><br>
<span class="text-area__line" data-click-event="obfuscated-text">Click-Event</span><span class="text-area__line" data-hover-event="obfuscated-text">Hover-Event</span><span class="text-area__line" data-inline="obfuscated-text">Inline</span> -->
</div>
<div class="text-options">
<span class="title">Color</span>
</div>
</div>
<div class="button-wrapper">
<input class="button button--submit" type="button" value="Generate">
</div>
</div>
</div>
</details>
</div>
<!-- Options -->
<div class="section__item">
<details class="details">
<summary class="details__header">
<span class="details__header__name">Options</span>
<svg class="details__header__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12">
<path d="M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"/>
</svg>
</summary>
<div class="details__content">Hello World!</div>
</details>
</div>
<!-- Render Output -->
<div class="section__item">
<details class="details" open>
<summary class="details__header">
<span class="details__header__name">Render Output</span>
<svg class="details__header__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12">
<path d="M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"/>
</svg>
</summary>
<div class="details__content">
<div class="render-output">
<div class="background">
<img class="background__image" id="background__image" src="./images/background/0.png" alt="background">
<div class="background__chat-box" id="background__chat-box">
<div class="text">
<div class="content">
<span class="content__line">This is a sample text for the tellraw generator I am working on.</span>
<br>
<span class="content__line">The generator supports everything that a normal tellraw command in Minecraft supports.</span>
<br>
<span class="content__line"></span>
<br>
<span class="content__line">Line breaks, colors, hover tooltips, just everything.</span>
<br>
<span class="content__line">A lot is still in progress and will be added soon. I'm trying to make this project as close to Minecraft as possible.</span>
</div>
</div>
<div class="hover">
<div class="content">
<span class="content__line">Hello,</span>
<br>
<span class="content__line">World</span>
</div>
</div>
</div>
</div>
<div class="select-background-image" id="select-background-image">
<input class="select-background-image__radio" data-id="0" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="1" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="2" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="3" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="4" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="5" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="6" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="7" type="radio" name="select-background-image">
<input class="select-background-image__radio" data-id="debug" type="radio" name="select-background-image">
</div>
</div>
</div>
</details>
</div>
<!-- Footer -->
<div class="section__item">
<footer class="footer">
<div class="footer__copyright">
<a class="a" href="">
<svg class="a__logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<path d="M12.876.64V.639l8.25 4.763c.541.313.875.89.875 1.515v9.525a1.75 1.75 0 0 1-.875 1.516l-8.25 4.762a1.748 1.748 0 0 1-1.75 0l-8.25-4.763a1.75 1.75 0 0 1-.875-1.515V6.917c0-.625.334-1.202.875-1.515L11.126.64a1.748 1.748 0 0 1 1.75 0Zm-1 1.298L4.251 6.34l7.75 4.474 7.75-4.474-7.625-4.402a.248.248 0 0 0-.25 0Zm.875 19.123 7.625-4.402a.25.25 0 0 0 .125-.216V7.639l-7.75 4.474ZM3.501 7.64v8.803c0 .09.048.172.125.216l7.625 4.402v-8.947Z"/>
</svg>
</a>
<span class="name">© 2023 Minecraft Tellraw Generator</span>
</div>
<ul class="footer__links">
<a class="a" href="https://discord.com/users/526157233684348949" target="_blank" rel="noreferrer noopener" title="Contact me on Discord">Discord</a>
<a class="a" href="https://github.com/tellraw/tellraw.github.io" target="_blank" rel="noreferrer noopener" title="GitHub Repository">Repository</a>
<a class="a" href="https://github.com/tellraw/tellraw.github.io/blob/main/LICENSE" target="_blank" rel="noreferrer noopener" title="Repository Licence">Licence</a>
</ul>
</footer>
</div>
</section>
</body>
</html>