-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
131 lines (119 loc) · 5.4 KB
/
Copy pathindex.php
File metadata and controls
131 lines (119 loc) · 5.4 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
</style>
</head>
<body>
<div id="print-image-form" class="print-image-form">
<div class="upload-area" draggable="true" id="upload-area">
<div class="upload-area-elements" id="upload-elements">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#e76f51" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<circle cx="8.5" cy="8.5" r="1.5" />
<polyline points="21 15 16 10 5 21" />
</svg>
<p class="desktop-upload-text">Arrastra tus imágenes aquí o haz clic para subir</p>
<p class="mobile-upload-text">Sube tus imágenes aquí</p>
<input type="file" id="file-input" multiple accept="image/jpeg, image/png, image/svg+xml, image/webp" style="display: none;" />
</div>
<div class="images-grid" id="images-grid">
<!-- Las imágenes subidas aparecerán aquí -->
</div>
</div>
<div class="section">
<div class="section-title">
<label>Cantidad</label>
<div class="quantity-field">
<input type="number" value="1" min="1" max="100" step="1">
</div>
</div>
</div>
<!-- Sección de tamaños -->
<div class="section">
<div class="section-title">
<label>Tamaño:</label>
<div class="radio-group" id="size-options">
<label class="radio-label">
<input type="radio" name="size-type" class="radio-input" checked
onclick="toggleSizeOptions('standard')">
Estándar
</label>
<label class="radio-label">
<input type="radio" name="size-type" class="radio-input" onclick="toggleSizeOptions('custom')">
Personalizado
</label>
</div>
</div>
<div id="standard-sizes" class="ios-picker-container" style="display: block;">
<!-- Placeholder que se mostrará mientras carga el iOS picker -->
<div class="picker-placeholder placeholder-glow" id="size-picker-placeholder" style="display: none;">
<div class="placeholder placeholder-100"></div>
<div class="placeholder placeholder-100"></div>
<div class="placeholder placeholder-100"></div>
</div>
<div id="size-picker">
<!-- Contenedor para el iOSPicker -->
</div>
</div>
<div id="custom-size" class="custom-size" style="display: none;">
<input id="custom-size__width" type="number" placeholder="Ancho (cm)" min="10" max="60" step="1">
<input id="custom-size__height" type="number" placeholder="Alto (cm)" min="15" max="100" step="1">
</div>
</div>
</div>
<div class="section">
<div class="section-title">
Indicaciones de impresión
</div>
<textarea class="comment-area" placeholder=" Escribe aquí tus comentarios..." maxlength="255"
required></textarea>
</div>
<div class="section">
<div class="section-title">
<div class="radio-group">
<input id='noFrame' type="radio" name="frame" class="radio-input" checked
onclick="toggleFrameOptions(false); calcularPrecioSinMarco()">
<label class="radio-label">Sin marco</label>
<input type="radio" name="frame" class="radio-input" onclick="toggleFrameOptions(true)">
<label class="radio-label">Con marco</label>
</div>
</div>
</div>
<div id="frame-ios-picker-wrapper" class="frames container" style="display: none">
<div class="swiper mySwiper">
<div class="swiper-wrapper" id="frame-picker">
</div>
</div>
</div>
<div class="price-estimate-section" id="price-estimate" style="display: none;">
<div class="section-title">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<line x1="12" y1="1" x2="12" y2="23"></line>
<path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>
</svg>
Precio estimado
</div>
<div class="price-display">
<span id="estimated-price">-</span>
</div>
</div>
<button class="add-to-cart-btn">Agregar al carro <span id="total-price-button">S/. 0.00</span></button>
<!--Alerta personalizada-->
<div id="custom-alert" class="hidden">
<div class="custom-alert-box">
<p id="custom-alert-message">¡Mensaje!</p>
<button id="custom-alert-close">Cerrar</button>
</div>
</div>
</body>
<script type="module">
window.siteUrl = '<?php echo home_url() ?>';
console.log(window.siteUrl);
getFrames('<?php echo plugin_dir_url(__FILE__); ?>');
</script>
</html>