-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
589 lines (489 loc) · 23.1 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
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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./public/CSS/bootstrap.css">
<link rel="stylesheet" href="./public/CSS/style.css">
<link rel="stylesheet" href="./public/CSS/modal.css">
<link rel="stylesheet" href="./public/CSS/print.css">
<link rel="stylesheet" href="./public/CSS/fuente.css">
<link rel="shortcut icon" href="./public/images/favicon.png" type="image/x-icon">
<title>Imprimir Codigos de Barras/QR</title>
<style>
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar {
background: transparent;
}
::-webkit-scrollbar-track {
background: rgba(202, 204, 206, 0.04);
}
::-webkit-scrollbar-thumb {
background: #474c50;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(202, 204, 206, 0.3);
}
</style>
</head>
<body class="">
<!-- <div data-id_="flower blossom bloom-fill 2" class="View-20292">
<video data-private="true" src="./public/images/videoframe_9938.mp4" autoplay="" loop="" preload="metadata"
playsinline=""></video>
</div> -->
<div class="background-image"></div>
<div class="container-fluid d-print-none">
<div class="row justify-content-center">
<header class="col-lg-4 col-md-12">
<div class="title-header">
<h1>Impresion de <span id="titleDropdown">Codigo de Barras</span></h1>
</div>
<div class="dropdown-container">
<ul id="dropdownMenu" class="dropdown-container-list ps-0">
<li><a class="btn btn-primary" href="#" data-id="Codigo de Barras" data-type="Code128">Code-128</a>
</li>
<li><a class="btn btn-primary" href="#" data-id="Código QR" data-type="CodeQR">Código QR</a></li>
<li><a class="btn btn-primary" href="#" data-id="Texto" data-type="Texto">Texto</a></li>
<li><a class="btn btn-primary" href="#" data-id="Código UPC-A" data-type="CodeUPCA">UPC-A</a></li>
</ul>
</div>
</header>
</div>
</div>
<section class="container-fluid d-print-none">
<div class="row justify-content-center mt-3">
<div class="col-lg-4 col-md-12 shadow-sm p-3 mb-5 bg-info-subtle rounded insert-code">
<form id="FormCode" name="FormCode" class="barcodeData">
<h2 id="barcodeType">
Code-128
</h2>
<div class="editor-label"><label for="Data">Datos</label></div>
<div class="editor-field mb-3" style="background-image: url('');">
<textarea id="Data" class="form-control" name="DataCode" required rows="3"></textarea>
</div>
<input class="btn btn-success btn-sm" name="DataType" value="Crear" type="submit" data-id="Code128">
<input class="btn btn-danger btn-sm" type="reset" value="Limpiar">
</div>
</form>
</div>
</div>
</section>
<!-- Row Area de Impresion -->
<section class="container-fluid">
<div class="row d-print-block">
<div class="col-lg-3 col-md-12 d-print-none">
<div class="row justify-content-center flex-column w-100 h-100">
<div class="col">
<section class="trash-container fade">
<div class="custum-file-upload" for="file">
<div class="text">
<span>Arrastra para eliminar elemento</span>
</div>
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path
d="M3 6V8H5V21C5 21.5523 5.44772 22 6 22H18C18.5523 22 19 21.5523 19 21V8H21V6H15V3C15 2.44772 14.5523 2 14 2H10C9.44771 2 9 2.44772 9 3V6H3ZM17 8V21H7V8H17ZM8 10H9V19H8V10ZM11 10H12V19H11V10ZM14 10H15V19H14V10Z">
</path>
</svg>
</div>
</div>
</section>
</div>
<!-- Cambio de Font-Size -->
<div class="col">
<div class="d-block w-100 h-100 d-none" tabindex="-1">
</div>
</div>
</div>
</div>
<!-- Area de Impresion -->
<div class="col-lg-6 col-md-12 mb-3 m-0 p-0">
<div class="main row d-print-block m-0 p-0">
<header class="col d-print-none">
<h2 class="title">Area de Impresión</h2>
<form class="radio-inputs mb-2">
<label class="radio">
<input type="radio" name="margin" value="Sin margen" checked>
<span class="name">Sin Margen</span>
</label>
<label class="radio">
<input type="radio" name="margin" value="Con margen">
<span class="name">Con margen</span>
</label>
</form>
</header>
<section class="area-de-impresion not-margin over" id="areaDeImpresion"> </section>
</div>
</div>
<!-- Plantillas -->
<div class="col-lg-3 col-md-12 d-print-none ">
<section class="row plantillas justify-content-center">
<div class="col-md-6 col-lg-12">
<h3>Plantillas <buton id="clean-area-print" class="btn btn-danger">Limpiar</buton>
</h3>
<!-- Acordion Plantillas -->
<div class="accordion" id="plantillas">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button font-weight-bold collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#code-qr" aria-expanded="false" aria-controls="code-qr">
Codigo QR
</button>
</h2>
<div id="code-qr" class="accordion-collapse collapse">
<div class="accordion-body">
<div class="d-grid gap-2">
<buton data-id="1" data-type="usuarios-mariano" class="plantilla-qr btn btn-primary">
Usuarios Mariano
</buton>
<buton data-id="2" data-type="banda-ascensor" class="plantilla-qr btn btn-primary">Banda -
Ascensor -
Etiquetado |
Individual
</buton>
<buton data-id="3" data-type="banda-ascensor-multi" class="plantilla-qr btn btn-primary">
Banda -
Ascensor -
Etiquetado |
Multiple
</buton>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button font-weight-bold collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#code-128" aria-expanded="false" aria-controls="code-128">
Code-128
</button>
</h2>
<div id="code-128" class="accordion-collapse collapse">
<div class="accordion-body">
Vacio
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button font-weight-bold collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#code-personality" aria-expanded="false" aria-controls="code-personality">
Personalizado
</button>
</h2>
<div id="code-personality" class="accordion-collapse collapse">
<div class="accordion-body">
<buton data-id="1" data-type="personality-1" class="mb-1 plantilla-personality btn btn-primary">
1832 Morado
</buton>
<buton data-id="2" data-type="personality-2" class="mb-1 plantilla-personality btn btn-primary">
1832 Azul
</buton>
<buton data-id="3" data-type="personality-3" class="mb-1 plantilla-personality btn btn-primary">
1864 Mujer
</buton>
<buton data-id="4" data-type="personality-4" class="mb-1 plantilla-personality btn btn-primary">
1864 Hombre
</buton>
<buton data-id="5" data-type="personality-5" class="mb-1 plantilla-personality btn btn-primary">
1887 Perro
</buton>
<buton data-id="6" data-type="personality-6" class="mb-1 plantilla-personality btn btn-primary">
1887 Gato
</buton>
<buton data-id="7" data-type="personality-7" class="mb-1 plantilla-personality btn btn-primary">
6179 Negro
</buton>
<buton data-id="8" data-type="personality-8" class="mb-1 plantilla-personality btn btn-primary">
762
</buton>
<buton data-id="9" data-type="personality-9" class="mb-1 plantilla-personality btn btn-primary">
858 Perro
</buton>
<buton data-id="10" data-type="personality-10" class="mb-1 plantilla-personality btn btn-primary">
858 Gato
</buton>
<buton data-id="11" data-type="personality-11" class="mb-1 plantilla-personality btn btn-primary">
1856 Mujer
</buton>
<buton data-id="12" data-type="personality-12" class="mb-1 plantilla-personality btn btn-primary">
1856 Hombre
</buton>
<buton data-id="13" data-type="personality-13" class="mb-1 plantilla-personality btn btn-primary">
859
</buton>
<buton data-id="14" data-type="personality-14" class="mb-1 plantilla-personality btn btn-primary">
1910 Fantasma
</buton>
<buton data-id="15" data-type="personality-15" class="mb-1 plantilla-personality btn btn-primary">
1910 Calavera
</buton>
<buton data-id="16" data-type="personality-16" class="mb-1 plantilla-personality btn btn-primary">
1829 Perro
</buton>
<buton data-id="17" data-type="personality-17" class="mb-1 plantilla-personality btn btn-primary">
1829 Gato
</buton>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</section>
<!-- Cambio de Dimensiones -->
<section class="d-print-none fade d-none">
<form class="filters-width d-none" name="FormWidth">
<label>Ancho:
<input type="number" name="ancho" step="any">
</label>
<select name="unidadAncho">
<option value="cm">cm</option>
<option value="px">px</option>
<option value="in">in</option>
</select>
<label>Alto:
<input type="number" name="alto" step="any">
</label>
<select name="unidadAlto">
<option value="cm">cm</option>
<option value="px">px</option>
<option value="in">in</option>
</select>
<input hidden type="submit" value="Enviar">
</form>
</section>
<!-- Modal Cambio de Font size -->
<section class="modal-container-personality d-print-none">
<div id="myModalChangeText" class="modal">
<div class="modal-content">
<button type="button" aria-label="Close" data-balloon-pos="left" class="close">
<svg aria-hidden="true" focusable="false" data-prefix="fad" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512" class="fa-circle-xmark">
<path fill="currentColor"
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"
class="fa-secondary"></path>
<path fill="currentColor"
d="M209 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47z"
class="fa-primary"></path>
</svg>
</button>
<form id="FormChangeText" class="insertar-item mb-3" data-type="">
<label for="changeData">Por favor, ingresa el nuevo contenido:</label>
<textarea id="changeData" name="itemsRegisters" required class="form-control" rows="2"></textarea>
<div class="form-buttons">
<button class="btn btn-primary" type="submit">
<span class="text">Cambiar</span>
</button>
<button id="clearInsertitems" class="btn btn-danger btn-sm" type="reset" aria-label="Limpiar"
data-balloon-pos="right">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
<path
d="M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"
fill="#fff" />
</svg>
</button>
</div>
</form>
<form name="FormFontSize" id="FormFontSize" class="form-font-size mb-3 bg-info rounded-1 p-2 d-none">
<label class="form-label">Tamaño de fuente:</label>
<div class="input-group mb-3 w-100">
<input class="form-control form-control-sm" type="number" name="fontSizeInput" min="6" max="100" value="16">
<span class="input-group-text">px</span>
</div>
<input type="range" class="form-range" min="6" max="100" name="fontSizeRange" value="16">
</form>
<hr>
<div class="container position-relative" style="opacity: .8;">
<div class="geSidebarContainer geFormatContainer">
<div class="geFormatContainer">
<div class="title-form">Fuente</div>
<div class="geToolbarContainer font-family" style="opacity: .3;">
<a class="geColorBtn" title="Familia de la fuente">Times
New Roman
<div class="geAdaptiveAsset">
</div>
</a>
</div>
<div class="geToolbarContainer font-style">
<a class="geButton geColorBtn selected" title="Negrita (Ctrl+B)">
<div class="geSprite geSprite-bold"></div>
</a>
<a class="geButton geColorBtn" title="Cursiva (Ctrl+I)">
<div class="geSprite geSprite-italic"></div>
</a>
<a class="geButton geColorBtn" title="Subrayar (Ctrl+U)" style="margin: 1px 12px 1px 1px;">
<div class="geSprite geSprite-underline"></div>
</a>
<input class="change-font-size" spellcheck="false" data-ms-editor="true" type="text" value="12 px">
<div class="geBtnStepper position-absolute" style="left: 214px;">
<div class="geBtnUp"></div>
<div class="geBtnDown"></div>
</div>
</div>
<div class="geToolbarContainer font-aling">
<a class="geButton geColorBtn selected" title="Izquierda">
<div class="geSprite geSprite-left"></div>
</a>
<a class="geButton geColorBtn" title="Centrar">
<div class="geSprite geSprite-center"></div>
</a>
<a class="geButton geColorBtn" title="Derecha" style="margin: 1px 12px 1px 1px;">
<div class="geSprite geSprite-right"></div>
</a>
</div>
</div>
<div class="mxPopupMenu geToolbarMenu d-none">
<table class="mxPopupMenu">
<tbody>
<tr class="mxPopupMenuItem" title="Helvetica">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: Helvetica;">Helvetica</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Verdana">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: Verdana;">Verdana</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Times New Roman">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: "Times New Roman";">Times
New
Roman</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Garamond">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: Garamond;">Garamond</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Comic Sans MS">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: "Comic Sans MS";">Comic
Sans MS
</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Courier New">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: "Courier New";">Courier
New
</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Georgia">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: Georgia;">Georgia</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Lucida Console">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: "Lucida Console";">Lucida
Console</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr class="mxPopupMenuItem" title="Tahoma">
<td class="mxPopupMenuIcon"></td>
<td class="mxPopupMenuItem" align="left" style="font-family: Tahoma;">Tahoma</td>
<td class="mxPopupMenuItem" style="padding-right: 6px; text-align: right;"></td>
</tr>
<tr>
<td class="mxPopupMenuIcon" style="padding: 0px;"></td>
<td colspan="2" style="padding: 0px;">
<hr size="1">
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<style>
@media print {
.ms-editor-squiggles-container {
display: none !important;
}
}
.ms-editor-squiggles-container {
all: initial;
}
</style>
</div>
</div>
</section>
<!-- Menú Contextual -->
<div id="context-menu" class="context-menu">
<ul>
<li id="edit-option" class="context-option">Editar</li>
<li id="edit-qr-option" class="context-option">Editar QR</li>
<li id="edit-title-qr-option" class="context-option disabled">Editar Solo Texto</li>
<li id="delete-option" class="context-option">Eliminar</li>
<li id="font-size-option" class="context-option">Fuente</li>
<li id="resize-option" class="context-option disabled">Cambiar Tamaño</li>
<!-- QR Opction -->
</ul>
</div>
<style>
.context-menu {
display: none;
position: absolute;
border: 1px solid rgb(27, 27, 29);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1000;
border-radius: 4px;
background-color: rgb(27, 27, 29);
color: #e4e2e3;
font-size: 12px;
}
.context-menu.inactive ul li {
pointer-events: none;
opacity: .5;
}
.context-menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.context-menu li {
padding-top: 6px;
padding-bottom: 6px;
padding-right: 24px;
padding-left: 18px;
cursor: pointer;
}
.context-menu li:hover {
background-color: #323234;
}
.context-menu li.disabled {
pointer-events: none;
opacity: .5;
}
.context-option {
display: none;
}
.context-option.show {
display: block;
}
</style>
<footer class="d-print-none">
<small style="color: rgb(43, 41, 41);">Create by @Jose Carlos</small>
</footer>
<!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"></script>
<script type="module" src="./public/JS/index.js"></script>
<script type="module" src="./public/JS/dragAndDrog.js"></script>
<script type="module" src="./public/JS/editContent/editContent.js"></script>
<script type="module" src="./public/JS/templates/plantillas.js"></script>
<script type="module" src="./public/JS/print.js"></script>
<script type="module" src="./public/JS/initSelectedState.js"></script>
<script type="module" src="./public/JS/ContextMenuHandler.js"></script>
</body>
</html>