-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
665 lines (640 loc) · 37.5 KB
/
index.html
File metadata and controls
665 lines (640 loc) · 37.5 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
<!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="Build and preview Discord embeds outside Discord.">
<meta property="og:site_name" content="TomatenKuchen">
<meta property="og:title" content="Embed & Component builder">
<meta property="og:description" content="Build and preview Discord embeds outside Discord.">
<meta property="og:url" content="https://tk-embed.chaoshosting.eu">
<meta property="og:image" content="https://tk-embed.chaoshosting.eu/assets/images/screen1.webp">
<meta name="twitter:card" content="https://tk-embed.chaoshosting.eu/assets/images/screen1.webp">
<title>TomatenKuchen Embed & Component builder</title>
<link href="./assets/images/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="./assets/images/apple-icon-120.png" rel="apple-touch-icon" sizes="120x120">
<link href="./assets/images/apple-icon-152.png" rel="apple-touch-icon" sizes="152x152">
<link rel="manifest" href="./assets/manifest.json">
<link rel="stylesheet" href="./assets/style.css">
<link rel="stylesheet" href="./assets/CodeMirror-material-darker.css">
<script src="./assets/script.js" defer></script>
<script src="./assets/sockette.js" defer></script>
<script src="./assets/twemoji.js" defer></script>
<script src="./assets/emojis.js" defer async></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" integrity="sha512-D9gUyxqja7hBtkWpPWGt9wfbfaMGVt9gnyCvYa+jojwwPHLCzUm5i8rpk7vD7wNee9bA35eYIjobYPaQuKS1MQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.js" integrity="sha512-8RnEqURPUc5aqFEN04aQEiPlSAdE0jlFS/9iGgUyNtwFnSKCXhmB6ZTNl7LnDtDWKabJIASzXrzD0K+LYexU9g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.css" integrity="sha512-uf06llspW44/LZpHzHT6qBOIVODjWtv4MxCricRxkzvopAlSWnTf6hpZTFxuuZcuNE9CBQhqE0Seu1CoRk84nQ==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/javascript/javascript.min.js" integrity="sha512-I6CdJdruzGtvDyvdO4YsiAq+pkWf2efgd1ZUSK2FnM/u2VuRASPC7GowWQrWyjxCZn6CT89s3ddGI+be0Ak9Fg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/scroll/simplescrollbars.min.js" integrity="sha512-1Vc3i/yplqkVbJBGgEpx9odVj3SLHMx2EOsQOMJsHbM5LRPL2iaPH2sEE+8sZOCqvuXGignKEwmTqO6/b11RqQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/scroll/simplescrollbars.min.css" integrity="sha512-2y3NTsei81d5emn5nwrdflyI5EGULwKXRZ0BCbO55cjgQ8x62X4ydH/jbnzrKnxArstf79F9n6z1j2MtVmJ8YA==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/edit/matchbrackets.min.js" integrity="sha512-GSYCbN/le5gNmfAWVEjg1tKnOH7ilK6xCLgA7c48IReoIR2g2vldxTM6kZlN6o3VtWIe6fHu/qhwxIt11J8EBA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/fold/brace-fold.min.js" integrity="sha512-5MuaB1PVXvhsYVG0Ozb0bwauN7/D1VU4P8dwo5E/xiB9SXY+VSEhIyxt1ggYk2xaB/RKqKL7rPXpm1o1IlTQDA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/fold/foldgutter.min.css" integrity="sha512-YwkMTlTHn8dBnwa47IF+cKsS00HPiiVhQ4DpwT1KF2gUftfFR7aefepabSPLAs6zrMyD89M3w0Ow6mQ5XJEUCw==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/fold/foldgutter.min.js" integrity="sha512-kEVEkqJPlijyiRihpbPuhIW6wkb5wcEaVsfYm/utqn8ToMspk7E2fK5UyZ2HdnJnA4/0HyQwqeKzHNuPm+zyCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/fold/foldcode.min.js" integrity="sha512-Q2qfEJEU257Qlqc4/5g6iKuJNnn5L0xu2D48p8WHe9YC/kLj2UfkdGD01qfxWk+XIcHsZngcA8WuKcizF8MAHA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/lint/json-lint.min.js" integrity="sha512-40xVcCik6TlUiZadnRc6ZM0BN65s7F+C3K7eBqGRf8dmjKApjzoiT/GB1GJmdICOZbXjJCiTBbVlsIvFs8A/+Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsonlint/1.6.0/jsonlint.min.js" integrity="sha512-6qbnCNQe7wVcBDvhNJT6lZsbDKHCQQBk7yOBQg4s/9GG812CknK0EEIqG2IS10XuNxIQNWjMJd6VLwwezICz6w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/lint/lint.min.css" integrity="sha512-jP1+o6s94WQS9boYeDP3Azh8ihI5BxGgBZNjkABhx05MqH5WuDzfzSnoPxGxVzWi/gxxVHZHvWkdRM6SMy5B0Q==" crossorigin="anonymous" referrerpolicy="no-referrer">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/lint/lint.min.js" integrity="sha512-fzIkwQa9H8rjoDzpZ9sMOYhgaYwh9nKALWbE1m+7wpiry9PN5OyNcZ9LySotjEysolveRyv2C9pVJ+DbEuKtmQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body class="gui emptyEmbed">
<main>
<section class="side1">
<div class="chooser needed">
<div class="back"></div>
<div class="gui opt">
<p>GUI</p>
</div>
<div class="json opt">
<p>JSON</p>
</div>
<div id="clear-button" class="top-btn" title="Clear everything">
<svg version="1.1" x="0px" y="0px" viewBox="0 0 1000 1000">
<g>
<path d="M740.4,401.4c-46-25.4-92.5-49.9-139.1-74.2c-36.3-18.9-73.3-19.2-110-0.9c-22,11-38.8,27.5-50.4,49.9c116.5,62,232.2,123.6,348.7,185.6c2.2-5.1,4.4-9.3,6-13.7C816.7,491.3,794.5,431.2,740.4,401.4z"></path>
<path d="M875.6,35.1c-9.2-12.8-21.9-20.4-37.2-23.8c-16.7-3.7-26.1,0.2-35,14.3c-53,84.6-106,169.2-159,253.8c-1.7,2.7-3.2,5.4-4.8,8.1c1,1.1,1.5,2,2.3,2.4c36.2,19.3,72.4,38.6,109.1,58.2c1.3-2.1,2-3.1,2.6-4.2c41.6-93.9,83.1-187.8,124.8-281.6C882.7,52.3,881.7,43.5,875.6,35.1z"></path>
<path d="M754.3,597.7c7.1-18.1-1.8-38.5-19.9-45.6c-18-7.2-38.5,1.7-45.6,19.8c-3.7,9.4-80.7,208.2-18.2,347.6c-29.6-0.3-76.3-7.1-141.9-31.8c-12.2-38-20.9-97.3,5.7-166.9c0,0-63.7,
72.8-74.3,137.5c-13.7-6.6-28-13.8-43-21.8c-15-8.1-28.9-16-42-23.8c48.1-44.6,73.5-137.9,73.5-137.9c-43.3,60.6-97.5,86.2-135.9,97c-57.1-41.1-88.6-76.3-105.1-100.6c150.8-25,
273.9-199.1,279.7-207.4c11.1-15.9,7.2-37.9-8.7-48.9c-15.9-11.2-37.8-7.2-49,8.7c-1.4,1.9-137.8,193.7-271.7,179.5c-10.4-1.1-21,2.5-28.6,10c-7.5,7.5-11.3,17.9-10.2,28.5c1.3,
12.4,19.5,125.3,264.8,256.9C522.1,972.6,615.5,990,672.6,990c44.3,0,66.9-10.4,71.7-13c9.4-4.9,16-13.8,18.1-24.3c2.1-10.4-0.7-21.2-7.5-29.4C668.7,819.5,753.5,599.9,754.3,597.7z"></path>
</g>
</svg>
</div>
<div id="copy-button" class="top-btn" title="Copy as JSON">
<svg version="1.1" width="16" height="16" x="0px" y="0px" viewBox="0 0 512 512">
<g>
<path fill="currentColor"
d="M437.781,36.885C415.688,13.395,384.888,0.052,352.64,0H288c-60.623,0.095-111.219,46.301-116.8,106.667H160 C95.228,106.737,42.737,159.228,42.667,224v170.667C42.737,
459.439,95.228,511.929,160,512h85.333 c64.772-0.071,117.263-52.561,117.333-117.333v-11.2c60.37-5.572,106.582-56.173,106.667-116.8V116.693 C469.376,87.041,458.089,58.492,
437.781,36.885z M298.667,394.667c0,29.455-23.878,53.333-53.333,53.333H160 c-29.455,0-53.333-23.878-53.333-53.333V224c0-29.455,23.878-53.333,53.333-53.333h10.667v96
C170.737,331.439,223.228,383.929,288,384h10.667V394.667z M405.333,266.667C405.333,296.122,381.455,320,352,320h-64 c-29.455,0-53.333-23.878-53.333-53.333V117.333C234.667,
87.878,258.545,64,288,64h53.333v21.333 C341.333,108.897,360.436,128,384,128h21.333V266.667z"
></path>
</g>
</svg>
</div>
<div id="import-button" class="top-btn" title="Import message using TomatenKuchen">
<svg width="800px" height="800px" viewBox="0 0 1920 1920" xmlns="http://www.w3.org/2000/svg">
<path d="m807.186 686.592 272.864 272.864H0v112.94h1080.05l-272.864 272.978 79.736 79.849 409.296-409.183-409.296-409.184-79.736 79.736ZM1870.419 434.69l-329.221-329.11C1509.688 74.07 1465.979 56 1421.48 56H451.773v730.612h112.94V168.941h790.584v451.762h451.762v1129.405H564.714v-508.233h-112.94v621.173H1920V554.52c0-45.176-17.619-87.754-49.58-119.83Zm-402.181-242.37 315.443 315.442h-315.443V192.319Z" fill-rule="evenodd"></path>
</svg>
</div>
<div id="sendbot-button" class="top-btn" title="Send message using TomatenKuchen">
<svg width="800px" height="800px" viewBox="0 0 1920 1920" xmlns="http://www.w3.org/2000/svg">
<path d="m0 1016.081 409.186 409.073 79.85-79.736-272.867-272.979h1136.415V959.611H216.169l272.866-272.866-79.85-79.85L0 1016.082ZM1465.592 305.32l315.445 315.445h-315.445V305.32Zm402.184 242.372-329.224-329.11C1507.042 187.07 1463.334 169 1418.835 169h-743.83v677.647h112.94V281.941h564.706v451.765h451.765v903.53H787.946V1185.47H675.003v564.705h1242.353V667.522c0-44.498-18.07-88.207-49.581-119.83Z" fill-rule="evenodd"></path>
</svg>
</div>
<div class="top-btn menu">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"></path>
</svg>
<div class="box">
<div class="item normal dataLink">
<div class="icon">
<svg version="1.1" x="0" y="0" viewBox="0 0 24 24" height="16" width="16">
<g>
<path d="m17.47 11.293a1 1 0 1 0 1.414 1.414l1.544-1.544a5.368 5.368 0 0 0 -7.591-7.591l-1.544 1.544a1 1 0 1 0 1.414 1.414l1.544-1.544a3.368 3.368 0 1 1 4.763 4.763z"></path>
<path d="m6.53 12.707a1 1 0 1 0 -1.414-1.414l-1.544 1.544a5.368 5.368 0 0 0 7.591 7.591l1.544-1.544a1 1 0 0 0 -1.414-1.414l-1.544 1.544a3.368 3.368 0 0 1 -4.763-4.763z"></path>
<path d="m8.205 15.8a1 1 0 0 0 1.414 0l6.181-6.181a1 1 0 1 0 -1.414-1.414l-6.181 6.176a1 1 0 0 0 0 1.419z"></path>
</g>
</svg>
</div>
<p>Share message as URL</p>
</div>
<div id="send-webhook" class="item normal">
<p>Send message using Webhook</p>
</div>
<div class="vs"></div>
<div class="item normal auto">
<input type="checkbox" id="auto">
<p>Auto-update data link in URL</p>
</div>
<div class="item normal download">
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"
d="M160 368L32 256l128-112M352 368l128-112-128-112M192 288.1l64 63.9 64-63.9M256 160v176.03"></path>
</svg>
<p>Download as JSON file</p>
</div>
<div class="vs"></div>
<div class="item normal theme">
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32"
d="M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"></path>
<circle cx="256" cy="256" r="80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32"></circle>
</svg>
<p>Toggle theme</p>
</div>
<div class="item normal reverse">
<div class="icon">
<svg version="1.1" width="16" height="16" x="0" y="0" viewBox="0 0 20 20">
<path d="m14.6 8.6 1.4 1.4 4-4-4-4-1.4 1.4 1.6 1.6h-16.2v2h16.2z"></path>
<path d="m5.4 11.4-1.4-1.4-4 4 4 4 1.4-1.4-1.6-1.6h16.2v-2h-16.2z"></path>
</svg>
</div>
<div>Reverse editor and preview</div>
</div>
<div class="vs"></div>
<div class="item" id="more-container">
<div>
<p class="title">About</p>
<p>
<a href="https://github.com/Glitchii/embedbuilder" target="_blank" rel="noopener">Original source code</a>
</p>
<br>
<p>
Modified by <a href="https://discord.gg/ZqzFUC8qe9" target="_blank" rel="noopener">TomatoCake</a>
<br>
for <a href="https://tomatenkuchen.com" target="_blank" rel="noopener">TomatenKuchen Discord bot</a>.
</p>
<br>
<p>
Uses the "gg sans" font copyrighted<br>
by <a href="https://discord.com" target="_blank" rel="noopener">Discord</a>, and
<a href="https://ionic.io/ionicons" target="_blank" rel="noopener">Ionicons</a> for icons.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="top item">
<div class="gui">
<div class="item content">
<p class="ttle">Message content</p>
</div>
<div class="edit">
<textarea class="editContent" placeholder="Message content" maxlength="2000" autocomplete="off"></textarea>
</div>
<div class="item guiEmbedName" hidden>
<span class="text">Embed 1</span>
<span class="icon">
<svg version="1.1" x="0" y="0" viewBox="0 0 24 24" width="16" height="16">
<g>
<path d="m7 7v12c0 .5522847.44771525 1 1 1h8c.5522847 0 1-.4477153 1-1v-12zm-1-2h12c.5522847 0 1 .44771525 1 1v13c0 1.6568542-1.3431458 3-3 3h-8c-1.65685425 0-3-1.3431458-3-3v-13c0-.55228475.44771525-1 1-1z"></path>
<path d="m4 7c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1h16c.5522847 0 1 .44771525 1 1s-.4477153 1-1 1z"></path>
<path d="m10 4c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1h4c.5522847 0 1 .44771525 1 1s-.4477153 1-1 1z"></path>
<path d="m9 10c0-.55228475.44771525-1 1-1 .5522847 0 1 .44771525 1 1v6c0 .5522847-.4477153 1-1 1-.55228475 0-1-.4477153-1-1z"></path>
<path d="m13 10c0-.55228475.4477153-1 1-1s1 .44771525 1 1v6c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z"></path>
</g>
</svg>
</span>
</div>
<div class="guiEmbed">
<div class="item author rows2 active">
<p class="ttle">Author</p>
</div>
<div class="edit">
<div class="linkName">
<div class="editIcon">
<span class="imgParent"></span>
<input class="editAuthorIcon" type="text" maxlength="2048" placeholder="Icon URL" autocomplete="off">
</div>
<div class="editName">
<input class="editAuthorName" type="text" maxlength="256" placeholder="Author name" autocomplete="off">
</div>
<div class="editUrl">
<input class="editAuthorUrl" type="text" maxlength="2048" placeholder="Author URL" autocomplete="off">
</div>
</div>
<div class="browse">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 64 64">
<g>
<path d="m23.414 21.414 6.586-6.586v29.172c0 1.104.896 2 2 2s2-.896 2-2v-29.172l6.586 6.586c.39.391.902.586 1.414.586s1.024-.195 1.414-.586c.781-.781.781-2.047 0-2.828l-10-10c-.78-.781-2.048-.781-2.828 0l-10 10c-.781.781-.781 2.047 0 2.828.78.781 2.048.781 2.828 0z"></path>
<path d="m50 40c-1.104 0-2 .896-2 2v8c0 1.103-.897 2-2 2h-28c-1.103 0-2-.897-2-2v-8c0-1.104-.896-2-2-2s-2 .896-2 2v8c0 3.309 2.691 6 6 6h28c3.309 0 6-2.691 6-6v-8c0-1.104-.896-2-2-2z"></path>
</g>
</svg>
<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0">
<circle stroke="none" cx="6" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 15 ; 0 -15; 0 15" repeatCount="indefinite" begin="0.1"></animateTransform>
</circle>
<circle stroke="none" cx="30" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 10 ; 0 -10; 0 10" repeatCount="indefinite" begin="0.2"></animateTransform>
</circle>
<circle stroke="none" cx="54" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 5 ; 0 -5; 0 5" repeatCount="indefinite" begin="0.3"></animateTransform>
</circle>
</svg>
<p></p>
</div>
</div>
<div class="item title inlineField">
<p class="ttle">Title</p>
<input class="editTitle" type="text" maxlength="256" placeholder="Title" autocomplete="off">
</div>
<div class="item url inlineField">
<p class="ttle">URL</p>
<input class="editUrl" type="text" maxlength="2048" placeholder="URL" autocomplete="off">
</div>
<div class="item color inlineField">
<p class="ttle">Color</p>
<input class="editColor" type="color" placeholder="Color">
</div>
<div class="item description active">
<p class="ttle">Description</p>
</div>
<div class="edit">
<textarea class="editDescription" placeholder="Embed description" maxlength="4096" autocomplete="off"></textarea>
</div>
<div class="item fields">
<p class="ttle">Fields</p>
</div>
<div class="edit">
<div class="fields">
<div class="field">
<div class="fieldNumber"></div>
<div class="fieldInner">
<div class="designerFieldName">
<input type="text" placeholder="Field name" maxlength="256" value="Field name" autocomplete="off">
</div>
<div class="designerFieldValue">
<textarea maxlength="1024" placeholder="Field value" autocomplete="off">Field value</textarea>
</div>
</div>
<div class="inlineCheck">
<label>
<input type="checkbox">
<span>Inline</span>
</label>
</div>
<div class="removeBtn">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 329.26933 329">
<g>
<path d="m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0"></path>
</g>
</svg>
<span>Remove</span>
</div>
</div>
</div>
<div class="addField">
<p>New Field</p>
<svg version="1.1" x="0" y="0" viewBox="0 0 477.867 477.867">
<g>
<g>
<g>
<path d="M392.533,0h-307.2C38.228,0.056,0.056,38.228,0,85.333v307.2c0.056,47.105,38.228,85.277,85.333,85.333h307.2 c47.105-0.056,85.277-38.228,85.333-85.333v-307.2C477.81,38.228,439.638,0.056,392.533,0z M443.733,392.533 c0,28.277-22.923,51.2-51.2,51.2h-307.2c-28.277,0-51.2-22.923-51.2-51.2v-307.2c0-28.277,22.923-51.2,51.2-51.2h307.2 c28.277,0,51.2,22.923,51.2,51.2V392.533z"></path>
</g>
</g>
<g>
<g>
<path d="M324.267,221.867H256V153.6c0-9.426-7.641-17.067-17.067-17.067s-17.067,7.641-17.067,17.067v68.267H153.6 c-9.426,0-17.067,7.641-17.067,17.067S144.174,256,153.6,256h68.267v68.267c0,9.426,7.641,17.067,17.067,17.067 S256,333.692,256,324.267V256h68.267c9.426,0,17.067-7.641,17.067-17.067S333.692,221.867,324.267,221.867z"></path>
</g>
</g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
</g>
</svg>
</div>
</div>
<div class="item thumbnail largeImg">
<p class="ttle">Thumbnail</p>
</div>
<div class="edit">
<div class="linkName">
<div class="editIcon">
<span class="imgParent"></span>
<div class="txtCol">
<input class="editThumbnailLink" type="text" maxlength="2048" placeholder="Thumbnail URL" autocomplete="off">
<div class="browse">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 64 64">
<g>
<path d="m23.414 21.414 6.586-6.586v29.172c0 1.104.896 2 2 2s2-.896 2-2v-29.172l6.586 6.586c.39.391.902.586 1.414.586s1.024-.195 1.414-.586c.781-.781.781-2.047 0-2.828l-10-10c-.78-.781-2.048-.781-2.828 0l-10 10c-.781.781-.781 2.047 0 2.828.78.781 2.048.781 2.828 0z"></path>
<path d="m50 40c-1.104 0-2 .896-2 2v8c0 1.103-.897 2-2 2h-28c-1.103 0-2-.897-2-2v-8c0-1.104-.896-2-2-2s-2 .896-2 2v8c0 3.309 2.691 6 6 6h28c3.309 0 6-2.691 6-6v-8c0-1.104-.896-2-2-2z"></path>
</g>
</svg>
<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0">
<circle stroke="none" cx="6" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 15 ; 0 -15; 0 15" repeatCount="indefinite" begin="0.1"></animateTransform>
</circle>
<circle stroke="none" cx="30" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 10 ; 0 -10; 0 10" repeatCount="indefinite" begin="0.2"></animateTransform>
</circle>
<circle stroke="none" cx="54" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 5 ; 0 -5; 0 5" repeatCount="indefinite" begin="0.3"></animateTransform>
</circle>
</svg>
<p></p>
</div>
</div>
</div>
</div>
</div>
<div class="item image largeImg">
<p class="ttle">Image</p>
</div>
<div class="edit">
<div class="linkName">
<div class="editIcon">
<span class="imgParent"></span>
<div class="txtCol">
<input class="editImageLink" type="text" maxlength="2048" placeholder="Image URL" autocomplete="off">
<div class="browse">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 64 64">
<g>
<path d="m23.414 21.414 6.586-6.586v29.172c0 1.104.896 2 2 2s2-.896 2-2v-29.172l6.586 6.586c.39.391.902.586 1.414.586s1.024-.195 1.414-.586c.781-.781.781-2.047 0-2.828l-10-10c-.78-.781-2.048-.781-2.828 0l-10 10c-.781.781-.781 2.047 0 2.828.78.781 2.048.781 2.828 0z"></path>
<path d="m50 40c-1.104 0-2 .896-2 2v8c0 1.103-.897 2-2 2h-28c-1.103 0-2-.897-2-2v-8c0-1.104-.896-2-2-2s-2 .896-2 2v8c0 3.309 2.691 6 6 6h28c3.309 0 6-2.691 6-6v-8c0-1.104-.896-2-2-2z"></path>
</g>
</svg>
<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0">
<circle stroke="none" cx="6" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 15 ; 0 -15; 0 15" repeatCount="indefinite" begin="0.1"></animateTransform>
</circle>
<circle stroke="none" cx="30" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 10 ; 0 -10; 0 10" repeatCount="indefinite" begin="0.2"></animateTransform>
</circle>
<circle stroke="none" cx="54" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 5 ; 0 -5; 0 5" repeatCount="indefinite" begin="0.3"></animateTransform>
</circle>
</svg>
<p></p>
</div>
</div>
</div>
</div>
</div>
<div class="item footer rows2">
<p class="ttle">Footer</p>
</div>
<div class="edit">
<div class="linkName">
<div class="editIcon">
<span class="imgParent"></span>
<input class="editFooterIcon" type="text" maxlength="2048" placeholder="Icon URL" autocomplete="off">
</div>
<div class="editName">
<input class="editFooterText" type="text" maxlength="2048" value="Footer text" placeholder="Footer text" autocomplete="off">
</div>
</div>
<div class="browse">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 64 64">
<g>
<path d="m23.414 21.414 6.586-6.586v29.172c0 1.104.896 2 2 2s2-.896 2-2v-29.172l6.586 6.586c.39.391.902.586 1.414.586s1.024-.195 1.414-.586c.781-.781.781-2.047 0-2.828l-10-10c-.78-.781-2.048-.781-2.828 0l-10 10c-.781.781-.781 2.047 0 2.828.78.781 2.048.781 2.828 0z"></path>
<path d="m50 40c-1.104 0-2 .896-2 2v8c0 1.103-.897 2-2 2h-28c-1.103 0-2-.897-2-2v-8c0-1.104-.896-2-2-2s-2 .896-2 2v8c0 3.309 2.691 6 6 6h28c3.309 0 6-2.691 6-6v-8c0-1.104-.896-2-2-2z"></path>
</g>
</svg>
<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0">
<circle stroke="none" cx="6" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 15 ; 0 -15; 0 15" repeatCount="indefinite" begin="0.1"></animateTransform>
</circle>
<circle stroke="none" cx="30" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 10 ; 0 -10; 0 10" repeatCount="indefinite" begin="0.2"></animateTransform>
</circle>
<circle stroke="none" cx="54" cy="50" r="6">
<animateTransform attributeName="transform" dur="1s" type="translate" values="0 5 ; 0 -5; 0 5" repeatCount="indefinite" begin="0.3"></animateTransform>
</circle>
</svg>
<p></p>
</div>
<div class="footerDate">
<svg width="16" height="16" fill="currentColor" class="bi bi-calendar-date" viewBox="0 0 16 16">
<text y="12" x="3"></text>
<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path>
</svg>
<p></p>
<input class="embedFooterTimestamp" type="datetime-local" id="timestamp" step="60" autocomplete="off">
</div>
</div>
</div>
<div class="item guiActionRowName" hidden>
<span class="text">Action Row 1</span>
<span class="icon">
<svg version="1.1" x="0" y="0" viewBox="0 0 24 24" width="16" height="16">
<g>
<g>
<path d="m7 7v12c0 .5522847.44771525 1 1 1h8c.5522847 0 1-.4477153 1-1v-12zm-1-2h12c.5522847 0 1 .44771525 1 1v13c0 1.6568542-1.3431458 3-3 3h-8c-1.65685425 0-3-1.3431458-3-3v-13c0-.55228475.44771525-1 1-1z"></path>
<path d="m4 7c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1h16c.5522847 0 1 .44771525 1 1s-.4477153 1-1 1z"></path>
<path d="m10 4c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1h4c.5522847 0 1 .44771525 1 1s-.4477153 1-1 1z"></path>
<path d="m9 10c0-.55228475.44771525-1 1-1 .5522847 0 1 .44771525 1 1v6c0 .5522847-.4477153 1-1 1-.55228475 0-1-.4477153-1-1z"></path>
<path d="m13 10c0-.55228475.4477153-1 1-1s1 .44771525 1 1v6c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z"></path>
</g>
</g>
</svg>
</span>
</div>
<div class="guiActionRow">
<div class="guiComponent">
<div class="edit">
<div class="componentNumber"></div>
<div class="componentInner"></div>
<div class="componentButtonTemplate" hidden>
<div class="item custom_id inlineField">
<p class="ttle">Unique custom ID</p>
<input class="editComponentCustomId" type="text" placeholder="Unique custom ID" autocomplete="off" maxlength="100">
</div>
<div class="item label inlineField">
<p class="ttle">Label</p>
<input class="editComponentLabel" type="text" placeholder="Label" autocomplete="off" maxlength="80">
</div>
<select class="editComponentStyle">
<option value="1">Primary</option>
<option value="2">Secondary</option>
<option value="3">Success</option>
<option value="4">Danger</option>
<option value="5">Link</option>
</select>
<div class="item emoji inlineField">
<p class="ttle">Emoji ID</p>
<input class="editComponentEmoji" type="text" placeholder="Emoji ID" autocomplete="off" maxlength="21">
</div>
<div class="item url inlineField">
<p class="ttle">URL</p>
<input class="editComponentUrl" type="text" placeholder="URL" autocomplete="off" maxlength="512">
</div>
</div>
<div class="componentSelectTemplate" hidden>
<div class="item custom_id inlineField">
<p class="ttle">Unique custom ID</p>
<input class="editComponentCustomId" type="text" placeholder="Unique custom ID" autocomplete="off" maxlength="100">
</div>
<div class="item placeholder inlineField">
<p class="ttle">Placeholder</p>
<input class="editComponentPlaceholder" type="text" placeholder="Placeholder" autocomplete="off" maxlength="80">
</div>
</div>
<div class="disableCheck">
<label>
<input type="checkbox" class="disableCheck">
<span>Disabled</span>
</label>
</div>
<div class="removeBtn">
<svg version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 329.26933 329">
<g>
<path d="m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0"></path>
</g>
</svg>
<span>Remove</span>
</div>
<br>
<hr>
</div>
</div>
<div class="addComponent">
<p>New Component</p>
<svg version="1.1" x="0" y="0" viewBox="0 0 477.867 477.867">
<g>
<g>
<g>
<path d="M392.533,0h-307.2C38.228,0.056,0.056,38.228,0,85.333v307.2c0.056,47.105,38.228,85.277,85.333,85.333h307.2 c47.105-0.056,85.277-38.228,85.333-85.333v-307.2C477.81,38.228,439.638,0.056,392.533,0z M443.733,392.533 c0,28.277-22.923,51.2-51.2,51.2h-307.2c-28.277,0-51.2-22.923-51.2-51.2v-307.2c0-28.277,22.923-51.2,51.2-51.2h307.2 c28.277,0,51.2,22.923,51.2,51.2V392.533z"></path>
</g>
</g>
<g>
<g>
<path d="M324.267,221.867H256V153.6c0-9.426-7.641-17.067-17.067-17.067s-17.067,7.641-17.067,17.067v68.267H153.6 c-9.426,0-17.067,7.641-17.067,17.067S144.174,256,153.6,256h68.267v68.267c0,9.426,7.641,17.067,17.067,17.067 S256,333.692,256,324.267V256h68.267c9.426,0,17.067-7.641,17.067-17.067S333.692,221.867,324.267,221.867z"></path>
</g>
</g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
</g>
</svg>
</div>
</div>
</div>
<div id="addContainer">
<div id="guiEmbedAdd">
<div class="icon">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z"></path>
</svg>
</div>
<div class="text">Add embed</div>
</div>
<div id="guiActionRowAdd">
<div class="icon">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z"></path>
</svg>
</div>
<div class="text">Add action row</div>
</div>
</div>
<div id="editorHolder"></div>
</div>
</section>
<section class="side2">
<div class="msgEmbed">
<div class="contents">
<img src="./assets/images/background_40.webp" srcset="./assets/images/background_40.webp 40w, ./assets/images/background_60.webp 60w" sizes="40w" class="avatar" alt="TomatenKuchen bot icon">
<h2>
<span class="username" role="button">TomatenKuchen</span>
<span class="botTag">
<svg aria-label="Verified bot" aria-hidden="false" width="16" height="16" viewBox="0 0 16 15.2">
<path d="M7.4,11.17,4,8.62,5,7.26l2,1.53L10.64,4l1.36,1Z" fill="currentColor"></path>
</svg>
<span>APP</span>
</span>
<span class="timeText"></span>
</h2>
</div>
<div id="messageContent" class="markup"></div>
<div id="stickerItems"></div>
<div class="container">
<div class="embed markup">
<div class="embedGrid">
<div class="embedAuthor embedMargin"></div>
<div class="embedTitle embedMargin"></div>
<div class="embedDescription embedMargin"></div>
<div class="embedFields"></div>
<div class="imageWrapper clickable embedMedia embedImage">
<img class="img embedImageLink" onload="this.nextElementSibling.style.display = 'none';" alt="">
<div class="spinner-container">
<span class="spinner">
<span class="inner">
<span class="wanderingCubesItem"></span>
<span class="wanderingCubesItem"></span>
</span>
</span>
</div>
</div>
<div class="imageWrapper clickable embedThumbnail">
<img class="img embedThumbnailLink" onload="this.nextElementSibling.style.display = 'none';" alt="">
<div class="spinner-container">
<span class="spinner">
<span class="inner">
<span class="wanderingCubesItem"></span>
<span class="wanderingCubesItem"></span>
</span>
</span>
</div>
</div>
<div class="embedFooter embedMargin"></div>
</div>
</div>
</div>
<div id="components">
<div class="actionrow markup"></div>
</div>
<div class="emptyTxt">Empty message</div>
</div>
<div class="bottomSide">
<div id="notification">There is an error</div>
</div>
</section>
<dialog id="webhook-dialog">
<span class="close" tabindex="0">×</span>
<h1>Send the current message using a webhook</h1>
<label for="webhook-url">
A Discord or Guilded webhook URL<span class="required">*</span>
</label>
<br>
<input id="webhook-url" type="text" placeholder="https://discord.com/api/webhooks/..." minlength="100" required autofocus>
<br>
<br>
<br>
<fieldset>
<legend>Optional, Discord-only webhook settings</legend>
<label for="webhook-thread-id">A thread or forum/media post channel ID to send the message to</label>
<br>
<input id="webhook-thread-id" type="text" placeholder="1209160092021293166" minlength="17" maxlength="21">
<br>
<br>
<p>
<i>or</i>
</p>
<br>
<label for="webhook-thread-name">A thread name to create a new thread in the channel</label>
<br>
<input id="webhook-thread-name" type="text" placeholder="New server rules proposal" maxlength="100">
</fieldset>
<br>
<button type="button" id="webhook-submit">Send</button>
<button type="button" id="webhook-clear" class="red">Clear</button>
</dialog>
<dialog id="share-dialog">
<span class="close" tabindex="0">×</span>
<h1>Share the message</h1>
<p id="share-content"></p>
</dialog>
</main>
<script data-collect-dnt="true" async defer src="https://sus.tomatenkuchen.com/latest.js"></script>
<noscript>
<img src="https://sus.tomatenkuchen.com/noscript.gif?hostname=embed.tomatenkuchen.com&collect-dnt=true" alt="" referrerpolicy="no-referrer-when-downgrade">
</noscript>
</body>
</html>