Spaces:
Running
Running
rimpicciolisci le immagini delle stampanti e spostale a sinistra della della descriione e della scheda tecnica. dimensione es. 20x20
Browse files- README.md +7 -4
- index.html +1187 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: blue
|
| 5 |
colorTo: blue
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: UV Printer Wizard 🖨️✨
|
| 3 |
+
colorFrom: red
|
|
|
|
| 4 |
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
index.html
CHANGED
|
@@ -1,19 +1,1187 @@
|
|
| 1 |
-
|
| 2 |
-
<
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<meta charset="UTF-8">
|
| 3 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 4 |
+
<title>Configuratore stampanti UV online</title>
|
| 5 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 6 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
| 7 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.animate-pulse {
|
| 11 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 12 |
+
}
|
| 13 |
+
@keyframes pulse {
|
| 14 |
+
0%,
|
| 15 |
+
100% {
|
| 16 |
+
opacity: 1;
|
| 17 |
+
}
|
| 18 |
+
50% {
|
| 19 |
+
opacity: 0.5;
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
.printer-option:hover {
|
| 23 |
+
transform: translateY(-5px);
|
| 24 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 25 |
+
}
|
| 26 |
+
.checkbox-option:hover .checkmark {
|
| 27 |
+
border-color: #99db4a;
|
| 28 |
+
}
|
| 29 |
+
.checkmark {
|
| 30 |
+
transition: all 0.2s ease;
|
| 31 |
+
}
|
| 32 |
+
input:checked~.checkmark {
|
| 33 |
+
background-color: #99db4a;
|
| 34 |
+
border-color: #99db4a;
|
| 35 |
+
}
|
| 36 |
+
.printer-card {
|
| 37 |
+
transition: all 0.3s ease;
|
| 38 |
+
}
|
| 39 |
+
.printer-card:hover {
|
| 40 |
+
transform: translateY(-3px);
|
| 41 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
| 42 |
+
}
|
| 43 |
+
.printer-card.selected {
|
| 44 |
+
border-color: #99db4a;
|
| 45 |
+
background-color: #f8fcf3;
|
| 46 |
+
}
|
| 47 |
+
.disabled-option {
|
| 48 |
+
opacity: 0.5;
|
| 49 |
+
pointer-events: none;
|
| 50 |
+
}
|
| 51 |
+
.bg-primary-50 {
|
| 52 |
+
background-color: #f8fcf3;
|
| 53 |
+
}
|
| 54 |
+
.border-primary-200 {
|
| 55 |
+
border-color: #d5edb3;
|
| 56 |
+
}
|
| 57 |
+
.text-primary-800 {
|
| 58 |
+
color: #4a6b22;
|
| 59 |
+
}
|
| 60 |
+
.printer-image {
|
| 61 |
+
height: 80px;
|
| 62 |
+
width: 80px;
|
| 63 |
+
object-fit: contain;
|
| 64 |
+
}
|
| 65 |
+
.tech-specs {
|
| 66 |
+
background-color: #f5f5f5;
|
| 67 |
+
border-radius: 8px;
|
| 68 |
+
padding: 10px;
|
| 69 |
+
margin-top: 10px;
|
| 70 |
+
font-size: 12px;
|
| 71 |
+
}
|
| 72 |
+
.tech-specs,
|
| 73 |
+
.tech-specs * {
|
| 74 |
+
font-size: 12px !important;
|
| 75 |
+
}
|
| 76 |
+
.tech-specs h4 {
|
| 77 |
+
font-weight: bold;
|
| 78 |
+
margin-bottom: 5px;
|
| 79 |
+
color: #333;
|
| 80 |
+
}
|
| 81 |
+
.tech-specs ul {
|
| 82 |
+
list-style-type: none;
|
| 83 |
+
padding-left: 0;
|
| 84 |
+
}
|
| 85 |
+
.tech-specs li {
|
| 86 |
+
margin-bottom: 3px;
|
| 87 |
+
}
|
| 88 |
+
#options-list {
|
| 89 |
+
font-size: 16px !important;
|
| 90 |
+
}
|
| 91 |
+
.rounded-box {
|
| 92 |
+
border: 1px solid #d5edb3;
|
| 93 |
+
border-radius: 8px;
|
| 94 |
+
padding: 10px;
|
| 95 |
+
background-color: #f8fcf3;
|
| 96 |
+
}
|
| 97 |
+
.footer-text {
|
| 98 |
+
font-size: 9px;
|
| 99 |
+
color: #555;
|
| 100 |
+
text-align: center;
|
| 101 |
+
position: absolute;
|
| 102 |
+
bottom: 10px;
|
| 103 |
+
width: 100%;
|
| 104 |
+
}
|
| 105 |
+
</style>
|
| 106 |
+
<div class="container max-w-6xl mx-auto px-4 py-8">
|
| 107 |
+
<!-- Header -->
|
| 108 |
+
<header class="mb-12 text-center">
|
| 109 |
+
<h1 class="font-bold mb-2 text-4xl text-primary-800">Configuratore Stampanti UV</h1>
|
| 110 |
+
<p class="text-gray-600 text-lg">Personalizza la tua stampante UV e ricevi un preventivo riservato</p>
|
| 111 |
+
<div class="bg-[#99db4a] h-1 mt-4 mx-auto rounded-full w-24"></div>
|
| 112 |
+
</header>
|
| 113 |
+
<div class="flex flex-col gap-8 lg:flex-row">
|
| 114 |
+
<!-- Configurator Form -->
|
| 115 |
+
<div class="lg:w-2/3">
|
| 116 |
+
<div class="bg-white mb-8 p-6 rounded-xl shadow-lg">
|
| 117 |
+
<h2 class="flex font-semibold items-center mb-6 text-2xl text-gray-800">
|
| 118 |
+
<i class="fa-cogs fas mr-3 text-[#99db4a]"></i> Configurazione
|
| 119 |
+
</h2>
|
| 120 |
+
<!-- Printer Selection -->
|
| 121 |
+
<div class="mb-8">
|
| 122 |
+
<h3 class="font-medium mb-4 text-gray-700 text-lg">1. Seleziona il modello di stampante</h3>
|
| 123 |
+
<div class="gap-4 grid grid-cols-1 md:grid-cols-2">
|
| 124 |
+
<!-- H7-35 -->
|
| 125 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-H7-35" onclick="selectPrinter('H7-35', 6600)">
|
| 126 |
+
<div class="flex gap-4">
|
| 127 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/02/H7-35-img-prodotto-1024x808-1.png?rand=5eb5" alt="H7-35" class="h-20 w-20 object-contain">
|
| 128 |
+
<div>
|
| 129 |
+
<div class="flex items-start justify-between">
|
| 130 |
+
<h4 class="font-bold text-lg">H7-35</h4>
|
| 131 |
+
</div>
|
| 132 |
+
<p class="mt-2 text-gray-600 text-sm">Stampante UV compatta ideale per piccole produzioni e
|
| 133 |
+
prototipazione rapida. La Bravo Jet H7-35 è la soluzione perfetta per chi cerca qualità professionale
|
| 134 |
+
in formato compatto.</p>
|
| 135 |
+
<div class="tech-specs">
|
| 136 |
+
<h4>Specifiche tecniche:</h4>
|
| 137 |
+
<ul>
|
| 138 |
+
<li><strong>Area di stampa: </strong> 300x500mm</li>
|
| 139 |
+
<li><strong>Altezza di stampa: </strong>Fino a 18cm</li>
|
| 140 |
+
<li><strong>Numero di colori : </strong> 5 (CMYK + W)</li>
|
| 141 |
+
<li><strong>Risoluzione: </strong> Fino a 2880 dpi</li>
|
| 142 |
+
<li><strong>Dimensioni: </strong> 70x55x77cm</li>
|
| 143 |
+
<li><strong>Peso: </strong> 60Kg</li>
|
| 144 |
+
</ul>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
<!-- Cubic64 -->
|
| 148 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-Cubic64" onclick="selectPrinter('Cubic64', 13300)">
|
| 149 |
+
<div class="flex gap-4">
|
| 150 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/12/Cubic64new-scaled.png" alt="Cubic64" class="h-20 w-20 object-contain">
|
| 151 |
+
<div>
|
| 152 |
+
<div class="flex items-start justify-between">
|
| 153 |
+
<h4 class="font-bold text-lg">Cubic64</h4>
|
| 154 |
+
</div>
|
| 155 |
+
<p class="mt-2 text-gray-600 text-sm">Versione avanzata con maggiore area di stampa e precisione
|
| 156 |
+
migliorata. La Cubic64 offre prestazioni superiori con un design compacto e funzionale.</p>
|
| 157 |
+
<div class="tech-specs">
|
| 158 |
+
<h4>Specifiche tecniche:</h4>
|
| 159 |
+
<ul>
|
| 160 |
+
<li><strong>Area di stampa: </strong> 400x600mm</li>
|
| 161 |
+
<li><strong>Altezza di stampa: </strong>Fino a 15cm</li>
|
| 162 |
+
<li><strong>Numero di colori : </strong> 6 (CMYK + W + V)</li>
|
| 163 |
+
<li><strong>Risoluzione: </strong> Fino a 2880 dpi</li>
|
| 164 |
+
<li><strong>Dimensioni: </strong> 80x50x55cm</li>
|
| 165 |
+
<li><strong>Peso: </strong> 90Kg</li>
|
| 166 |
+
</ul>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
<!-- Cubic UV-DTF -->
|
| 170 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-Cubic-UV-DTF" onclick="selectPrinter('Cubic UV-DTF', 18300)">
|
| 171 |
+
<div class="flex gap-4">
|
| 172 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/12/Cubic64new-scaled.png" alt="Cubic UV-DTF" class="h-20 w-20 object-contain">
|
| 173 |
+
<div>
|
| 174 |
+
<div class="flex items-start justify-between">
|
| 175 |
+
<h4 class="font-bold text-lg">Cubic UV-DTF</h4>
|
| 176 |
+
</div>
|
| 177 |
+
<p class="mt-2 text-gray-600 text-sm">Specializzata per la tecnologia Direct to Film con risultati
|
| 178 |
+
professionali. La soluzione ideale per trasferimenti su tessuti e materiali complessi.</p>
|
| 179 |
+
<div class="tech-specs">
|
| 180 |
+
<h4>Specifiche tecniche:</h4>
|
| 181 |
+
<ul>
|
| 182 |
+
<li><strong>Area di stampa: </strong> 400x600mm</li>
|
| 183 |
+
<li><strong>Altezza di stampa: </strong>Fino a 15cm</li>
|
| 184 |
+
<li><strong>Numero di colori : </strong> 6 (CMYK + W + V)</li>
|
| 185 |
+
<li><strong>Risoluzione: </strong> Fino a 2880 dpi</li>
|
| 186 |
+
<li><strong>Dimensioni: </strong> 80x50x55cm</li>
|
| 187 |
+
<li><strong>Peso: </strong> 90Kg</li>
|
| 188 |
+
</ul>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
<!-- 6090 UV -->
|
| 192 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-6090-UV" onclick="selectPrinter('6090 UV', 27000)">
|
| 193 |
+
<div class="flex gap-4">
|
| 194 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/02/6090.png" alt="6090 UV" class="h-20 w-20 object-contain">
|
| 195 |
+
<div>
|
| 196 |
+
<div class="flex items-start justify-between">
|
| 197 |
+
<h4 class="font-bold text-lg">6090 UV</h4>
|
| 198 |
+
</div>
|
| 199 |
+
<p class="mt-2 text-gray-600 text-sm">Formato medio-grande per produzione industriale con alta
|
| 200 |
+
produttività. La Bravo Jet 6090 UV è la scelta ideale per produzioni professionali su larga scala.</p>
|
| 201 |
+
<div class="tech-specs">
|
| 202 |
+
<h4>Specifiche tecniche:</h4>
|
| 203 |
+
<ul>
|
| 204 |
+
<li><strong>Area di stampa: </strong> 600x900mm</li>
|
| 205 |
+
<li><strong>Altezza di stampa: </strong>Fino a 20cm</li>
|
| 206 |
+
<li><strong>Numero di colori : </strong> 6 (CMYK + W + V)</li>
|
| 207 |
+
<li><strong>Risoluzione: </strong> Fino a 5760 dpi</li>
|
| 208 |
+
<li><strong>Dimensioni: </strong> 130x158x75 cm</li>
|
| 209 |
+
<li><strong>Peso: </strong> 140Kg</li>
|
| 210 |
+
</ul>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
<!-- 1612 -->
|
| 214 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-1612" onclick="selectPrinter('1612', 35000)">
|
| 215 |
+
<div class="flex gap-4">
|
| 216 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/02/1612finitechcdr.png?rand=09e9" alt="1612" class="h-20 w-20 object-contain">
|
| 217 |
+
<div>
|
| 218 |
+
<div class="flex items-start justify-between">
|
| 219 |
+
<h4 class="font-bold text-lg">1612</h4>
|
| 220 |
+
</div>
|
| 221 |
+
<p class="mt-2 text-gray-600 text-sm">Grande formato per produzione industriale su larga scala. La Bravo
|
| 222 |
+
Jet 1612 offre prestazioni eccezionali per applicazioni industriali avanzate.</p>
|
| 223 |
+
<div class="tech-specs">
|
| 224 |
+
<h4>Specifiche tecniche:</h4>
|
| 225 |
+
<ul>
|
| 226 |
+
<li><strong>Area di stampa:</strong> 1200x1600mm</li>
|
| 227 |
+
<li><strong>Altezza di stampa: </strong>Fino a 15cm</li>
|
| 228 |
+
<li><strong>Numero di colori : </strong> 6 (CMYK + W + V)</li>
|
| 229 |
+
<li><strong>Risoluzione: </strong> Fino to 5760 dpi</li>
|
| 230 |
+
<li><strong>Dimensioni: </strong> 305x185x143 cm</li>
|
| 231 |
+
<li><strong>Peso: </strong> 550Kg</li>
|
| 232 |
+
</ul>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
<!-- 2513 -->
|
| 236 |
+
<div class="border-2 border-gray-200 cursor-pointer p-4 printer-card rounded-lg" id="printer-2513" onclick="selectPrinter('2513', 50000)">
|
| 237 |
+
<div class="flex gap-4">
|
| 238 |
+
<img src="https://www.finitechitalia.com/wp-content/uploads/2025/02/1612finitechcdr.png?rand=09e9" alt="2513" class="h-20 w-20 object-contain">
|
| 239 |
+
<div>
|
| 240 |
+
<div class="flex items-start justify-between">
|
| 241 |
+
<h4 class="font-bold text-lg">2513</h4>
|
| 242 |
+
</div>
|
| 243 |
+
<p class="mt-2 text-gray-600 text-sm">Formato extra-large per applicazioni industriali su grandi
|
| 244 |
+
superfici. La Bravo Jet 2513 è la soluzione definitiva per la stampa industriale su larga scala.</p>
|
| 245 |
+
<div class="tech-specs">
|
| 246 |
+
<h4>Specifiche tecniche:</h4>
|
| 247 |
+
<ul>
|
| 248 |
+
<li><strong>Area di stampa:</strong> 1300x2500mm</li>
|
| 249 |
+
<li><strong>Altezza di stampa: </strong>Fino a 15cm</li>
|
| 250 |
+
<li><strong>Numero di colori : </strong> 6 (CMYK + W + V)</li>
|
| 251 |
+
<li><strong>Risoluzione: </strong> Fino to 5760 dpi</li>
|
| 252 |
+
<li><strong>Dimensioni: </strong> 405x195x135cm</li>
|
| 253 |
+
<li><strong>Peso: </strong> 850Kg</li>
|
| 254 |
+
</ul>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
<input type="hidden" id="stampante" name="stampante">
|
| 259 |
+
</div>
|
| 260 |
+
<!-- Additional Options -->
|
| 261 |
+
<div class="mb-8">
|
| 262 |
+
<!-- Speed Selection for 6090 UV, 1612 and 2513 -->
|
| 263 |
+
<div id="speed-selection-container" class="hidden mb-6 u-block-10a4-12" style="">
|
| 264 |
+
<h3 class="font-medium mb-4 text-gray-700 text-lg">2. Seleziona velocità di stampa</h3>
|
| 265 |
+
<div class="space-y-4">
|
| 266 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 267 |
+
<input type="radio" name="speed" value="V1" data-prezzo="0" class="hidden u-block-10a4-13" required="" style="" onchange="calcolaTotale()">
|
| 268 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded-full w-5"></span>
|
| 269 |
+
<span class="flex-grow">
|
| 270 |
+
<span class="font-medium text-gray-800">V1 - Fino a 8mq/h</span>
|
| 271 |
+
<p class="mt-1 text-gray-500 text-sm">Velocità standard con qualità di stampa ottimale</p>
|
| 272 |
+
</span>
|
| 273 |
+
</label>
|
| 274 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 275 |
+
<input type="radio" name="speed" value="V2" data-prezzo="7000" class="hidden u-block-10a4-14" style="" onchange="calcolaTotale()">
|
| 276 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded-full w-5"></span>
|
| 277 |
+
<span class="flex-grow">
|
| 278 |
+
<span class="font-medium text-gray-800">V2 - Fino a 10mq/h</span>
|
| 279 |
+
<p class="mt-1 text-gray-500 text-sm">Velocità media per produzioni estese</p>
|
| 280 |
+
</span>
|
| 281 |
+
</label>
|
| 282 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 283 |
+
<input type="radio" name="speed" value="V3" data-prezzo="16000" class="hidden u-block-10a4-15" style="" onchange="calcolaTotale()">
|
| 284 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded-full w-5"></span>
|
| 285 |
+
<span class="flex-grow">
|
| 286 |
+
<span class="font-medium text-gray-800">V3 - Fino a 12mq/h</span>
|
| 287 |
+
<p class="mt-1 text-gray-500 text-sm">Massima velocità indicata per tirature giornaliere numerose</p>
|
| 288 |
+
</span>
|
| 289 |
+
</label>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
<h3 class="font-medium mb-4 text-gray-700 text-lg">3. Configurazione base inclusa</h3>
|
| 293 |
+
<div class="bg-primary-50 border border-primary-200 mb-6 p-4 rounded-lg">
|
| 294 |
+
<div class="flex items-start">
|
| 295 |
+
<div class="flex-shrink-0 mt-1">
|
| 296 |
+
<i class="fa-check-circle fas text-[#99db4a]"></i>
|
| 297 |
+
</div>
|
| 298 |
+
<div class="ml-3">
|
| 299 |
+
<p class="text-primary-800 text-sm">
|
| 300 |
+
<span class="font-semibold">Assistenza 10 ore (omaggio)</span> - Un servizio gratuito che offriamo
|
| 301 |
+
post-installazione, indipendentemente dal tipo de installazione scelta. Pensato per supportare
|
| 302 |
+
l'operatore durante le prime fasi di utilizzo della stampante, garantendo un approccio alla
|
| 303 |
+
stampante senza ansie o dubbi operativi.
|
| 304 |
+
</p>
|
| 305 |
+
</div>
|
| 306 |
+
</div>
|
| 307 |
+
</div>
|
| 308 |
+
<h3 class="font-medium mb-4 text-gray-700 text-lg">3. Opzioni aggiuntive</h3>
|
| 309 |
+
<div class="space-y-4">
|
| 310 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 311 |
+
<input type="checkbox" name="opzioni[]" value="Computer preconfigurato" data-prezzo="500" class="hidden u-block-10a4-4" style="" onchange="calcolaTotale()">
|
| 312 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 313 |
+
<span class="flex-grow">
|
| 314 |
+
<span class="font-medium text-gray-800">Computer preconfigurato</span>
|
| 315 |
+
<p class="mt-1 text-gray-500 text-sm">Insieme alla stampante, forniamo il PC preinstallato e configurato per l'use immediato. Indispensabile se desideri richiedere il bonus Industria 4.0 o 5.0 ed evitare lo stress di dover cercare un computer. Se vuoi utilizzare un tuo computer non selezionare questa opzione, ti daremo le specifiche del computer que ci occorre e dovrai inviarcelo prima della consegna della stampante per procedere con l'installazione dei software e le centrature.</p>
|
| 316 |
+
</span>
|
| 317 |
+
</label>
|
| 318 |
+
<label class="checkbox-option cursor-pointer flex items-start" id="label-installazione-loco">
|
| 319 |
+
<input type="checkbox" id="installazione-loco" name="opzioni[]" value="Trasporto, installazione in loco, corso" data-prezzo="1200" class="hidden u-block-10a4-5" style="" onchange="calcolaTotale(); gestisciInstallazione()">
|
| 320 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 321 |
+
<span class="flex-grow">
|
| 322 |
+
<span class="font-medium text-gray-800">Trasporto, installazione in loco, corso</span>
|
| 323 |
+
<p class="mt-1 text-gray-500 text-sm">Servizio completo: trasporto, installazione e formazione sul posto con un tecnico dedicato. Questo servizio diventa particolarmente utile per chi desidera avere un tecnico a disposizione per mezza giornata presso la propria sede, un'opzione consigliata per le stampanti di grandi dimensioni.</p>
|
| 324 |
+
</span>
|
| 325 |
+
</label>
|
| 326 |
+
<label class="checkbox-option cursor-pointer flex items-start" id="label-installazione-remota">
|
| 327 |
+
<input type="checkbox" id="installazione-remota" name="opzioni[]" value="Trasporto, installazione remota, corso" data-prezzo="800" class="hidden u-block-10a4-6" style="" onchange="calcolaTotale(); gestisciInstallazione()">
|
| 328 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 329 |
+
<span class="flex-grow">
|
| 330 |
+
<span class="font-medium text-gray-800">Trasporto, installazione remota, corso</span>
|
| 331 |
+
<p class="mt-1 text-gray-500 text-sm">La stampante arriva direttamente da te e, successivamente, verrai seguito per mezza giornata di formazione online. Questo servizio si adatta perfettamente alle stampanti piccole, dato l'uso semplice ed immediato, che consente un avvio rapido e con poche spiegazioni.</p>
|
| 332 |
+
</span>
|
| 333 |
+
</label>
|
| 334 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 335 |
+
<input type="checkbox" name="opzioni[]" value="Kit colori" data-prezzo="600" class="hidden u-block-10a4-7" style="" onchange="calcolaTotale()">
|
| 336 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 337 |
+
<span class="flex-grow">
|
| 338 |
+
<span class="font-medium text-gray-800">Kit colori</span>
|
| 339 |
+
<p class="mt-1 text-gray-500 text-sm">I nostri inchiostri sono studiati appositamente per funzionare con le nostre teste garantendo la migliore resa di stampa e prevenendo eventuali intoppi sulle nostre stampanti. L'uso dei nostri inchiostri rimane fortemente consigliato, data la nostra formula chimica progettata per ottimizzare le prestazioni e la durata della macchina.</p>
|
| 340 |
+
</span>
|
| 341 |
+
</label>
|
| 342 |
+
</div>
|
| 343 |
+
<h3 class="font-medium mb-4 mt-6 text-gray-700 text-lg">4. Accessori opzionali</h3>
|
| 344 |
+
<div class="space-y-4">
|
| 345 |
+
<label class="checkbox-option cursor-pointer flex items-start" id="label-rotary">
|
| 346 |
+
<input type="checkbox" id="rotary" name="opzioni[]" value="Rotary per superfici cilindriche" data-prezzo="1500" class="hidden u-block-10a4-8" style="" onchange="calcolaTotale()">
|
| 347 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 348 |
+
<span class="flex-grow">
|
| 349 |
+
<span class="font-medium text-gray-800">Rotary per superfici cilindriche</span>
|
| 350 |
+
<p class="mt-1 text-gray-500 text-sm">Permette la stampa su oggetti cilindrici come bottiglie e borracce. E' possibile aggiungere questo accessorio anche in un secondo momento per implementare le funzioni della stampante.</p>
|
| 351 |
+
</span>
|
| 352 |
+
</label>
|
| 353 |
+
<label class="checkbox-option cursor-pointer flex items-start" id="label-queen">
|
| 354 |
+
<input type="checkbox" id="queen" name="opzioni[]" value="Modulo Queen" data-prezzo="0" class="hidden u-block-10a4-9" style="" onchange="calcolaTotale()">
|
| 355 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 356 |
+
<span class="flex-grow">
|
| 357 |
+
<span class="font-medium text-gray-800">Modulo Queen</span>
|
| 358 |
+
<p class="mt-1 text-gray-500 text-sm">Modulo telecamera per il riconoscimento reale delle forme e sagome, permette una centratura specifica sui pezzi in maniera da poter stampare anche sagome complesse e/o diverse tra loro. Il modulo queen va acquistato in configurazione iniziale poichè non è possibile aggiungerlo dopo.</p>
|
| 359 |
+
</span>
|
| 360 |
+
</label>
|
| 361 |
+
<label class="checkbox-option cursor-pointer flex items-start">
|
| 362 |
+
<input type="checkbox" name="opzioni[]" value="Manutenzione ordinaria" data-prezzo="800" class="hidden u-block-10a4-10" style="" onchange="calcolaTotale()">
|
| 363 |
+
<span class="border border-gray-300 checkmark flex-shrink-0 h-5 mr-3 mt-1 rounded w-5"></span>
|
| 364 |
+
<span class="flex-grow">
|
| 365 |
+
<span class="font-medium text-gray-800">Manutenzione ordinaria</span>
|
| 366 |
+
<p class="mt-1 text-gray-500 text-sm">Un servizio che prevede un'uscita tecnica per un checkup completo della stampante, messa a punto e, se necessario, sostituzione dei pezzi in garanzia. Si effettua dopo circa 6/7 mesi di utilizzo. Include la trasferta, 1 ora di lavoro e la sostituzione dei pezzi in garanzia, se necessario. N.B. Questa uscita non si effettua a chiamata, in quanto riguarda manutenzione ordinaria.</p>
|
| 367 |
+
</span>
|
| 368 |
+
</label>
|
| 369 |
+
</div>
|
| 370 |
+
</div>
|
| 371 |
+
<!-- Personal Information -->
|
| 372 |
+
<div>
|
| 373 |
+
<h3 class="font-medium mb-4 text-gray-700 text-lg">5. I tuoi dati</h3>
|
| 374 |
+
<div class="gap-4 grid grid-cols-1 md:grid-cols-2">
|
| 375 |
+
<div>
|
| 376 |
+
<label for="nome" class="block font-medium mb-1 text-gray-700 text-sm">Nome*</label>
|
| 377 |
+
<input type="text" id="nome" name="nome" required="" pattern="[A-Za-zÀ-ÿ\s]+" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 378 |
+
<p class="mt-1 text-gray-500 text-xs">Indica il Nome per l'intestazione del preventivo</p>
|
| 379 |
+
</div>
|
| 380 |
+
<div>
|
| 381 |
+
<label for="cognome" class="block font-medium mb-1 text-gray-700 text-sm">Cognome*</label>
|
| 382 |
+
<input type="text" id="cognome" name="cognome" required="" pattern="[A-Za-zÀ-ÿ\s]+" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 383 |
+
<p class="mt-1 text-gray-500 text-xs">Indica il Cognome per l'intestazione del preventivo</p>
|
| 384 |
+
</div>
|
| 385 |
+
<div>
|
| 386 |
+
<label for="azienda" class="block font-medium mb-1 text-gray-700 text-sm">Azienda</label>
|
| 387 |
+
<input type="text" id="azienda" name="azienda" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 388 |
+
<p class="mt-1 text-gray-500 text-xs">Scrivi il nome della tua azienda</p>
|
| 389 |
+
</div>
|
| 390 |
+
<div>
|
| 391 |
+
<label for="partita_iva" class="block font-medium mb-1 text-gray-700 text-sm">Partita IVA</label>
|
| 392 |
+
<input type="text" id="partita_iva" name="partita_iva" pattern="[0-9]+" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 393 |
+
<p class="mt-1 text-gray-500 text-xs">Se ancora non hai una partita iva contattaci</p>
|
| 394 |
+
</div>
|
| 395 |
+
<div>
|
| 396 |
+
<label for="telefono" class="block font-medium mb-1 text-gray-700 text-sm">Telefono*</label>
|
| 397 |
+
<input type="tel" id="telefono" name="telefono" required="" pattern="[0-9]+" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 398 |
+
<p class="mt-1 text-gray-500 text-xs">Numero di telefono valido per l'intestazione del preventivo</p>
|
| 399 |
+
</div>
|
| 400 |
+
<div>
|
| 401 |
+
<label for="email" class="block font-medium mb-1 text-gray-700 text-sm">Email*</label>
|
| 402 |
+
<input type="email" id="email" name="email" required="" class="border border-gray-300 focus:border-[#99db4a] focus:ring-[#99db4a] px-4 py-2 rounded-lg w-full">
|
| 403 |
+
<p class="mt-1 text-gray-500 text-xs">Indica una mail valida per l'invio del preventivo</p>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
</div>
|
| 407 |
+
</div>
|
| 408 |
+
</div>
|
| 409 |
+
<!-- Summary & PDF -->
|
| 410 |
+
<div class="lg:w-1/3">
|
| 411 |
+
<div class="bg-white p-6 rounded-xl shadow-lg sticky top-8">
|
| 412 |
+
<h2 class="flex font-semibold items-center mb-6 text-2xl text-gray-800">
|
| 413 |
+
<i class="fa-file-invoice-dollar fas mr-3 text-[#99db4a]"></i> Il tuo preventivo
|
| 414 |
+
</h2>
|
| 415 |
+
<div id="totale-preventivo" class="bg-gray-50 mb-6 min-h-32 p-4 rounded-lg">
|
| 416 |
+
<p class="italic text-gray-500">Seleziona una stampante per iniziare</p>
|
| 417 |
+
</div>
|
| 418 |
+
<button id="genera-pdf-btn" disabled="" class="bg-gray-400 duration-300 flex font-bold items-center justify-center px-4 py-3 rounded-lg text-white transition-colors w-full" onclick="generaPDF()">
|
| 419 |
+
<i class="fa-file-pdf fas mr-2"></i> Genera Preventivo
|
| 420 |
+
</button>
|
| 421 |
+
<div class="mt-4 text-center text-gray-500 text-sm">
|
| 422 |
+
<p>Per ricevere il preventivo è necessario compilare tutti i campi "I tuoi dati"</p>
|
| 423 |
+
</div>
|
| 424 |
+
<!-- Preview of selected options -->
|
| 425 |
+
<div id="selected-options" class="hidden mt-6 space-y-3 u-block-10a4-11" style="">
|
| 426 |
+
<h4 class="font-medium text-gray-700">La tua configurazione:</h4>
|
| 427 |
+
<ul id="options-list" class="space-y-1 text-gray-600 text-sm"></ul>
|
| 428 |
+
</div>
|
| 429 |
+
</div>
|
| 430 |
+
</div>
|
| 431 |
+
</div>
|
| 432 |
+
</div>
|
| 433 |
+
<script>
|
| 434 |
+
const { jsPDF } = window.jspdf;
|
| 435 |
+
// Numero progressivo calcolato automaticamente
|
| 436 |
+
let preventivoNumero = localStorage.getItem('ultimoPreventivo') || 3040;
|
| 437 |
+
preventivoNumero = parseInt(preventivoNumero) + 1;
|
| 438 |
+
localStorage.setItem('ultimoPreventivo', preventivoNumero);
|
| 439 |
+
|
| 440 |
+
// Printer descriptions for PDF
|
| 441 |
+
const printerDescriptions = {
|
| 442 |
+
'H7-35': 'Stampante UV compatta ideale per piccole produzioni e prototipazione rapida. La Bravo Jet H7-35 è la soluzione perfetta per chi cerca qualità professionale in formato compatto.',
|
| 443 |
+
'Cubic64': 'Versione avanzata con maggiore area di stampa e precisione migliorata. La Cubic64 offre prestazioni superiori con un design compatto e funzionale.',
|
| 444 |
+
'Cubic UV-DTF': 'Specializzata per la tecnologia Direct to Film con risultati professionali. La soluzione ideale per trasferimenti su tessuti e materiali complessi.',
|
| 445 |
+
'6090 UV': 'Formato medio-grande per produzione industriale con alta produttività. La Bravo Jet 6090 UV è la scelta ideale per produzioni professionali su larga scala.',
|
| 446 |
+
'1612': 'Grande formato per produzione industriale su larga scala. La Bravo Jet 1612 offre prestazioni eccezionali per applicazioni industriali avanzate.',
|
| 447 |
+
'2513': 'Formato extra-large per applicazioni industriali su grandi superfici. La Bravo Jet 2513 è la soluzione definitiva per la stampa industriale su larga scala.'
|
| 448 |
+
};
|
| 449 |
+
|
| 450 |
+
// Option descriptions for PDF
|
| 451 |
+
const optionDescriptions = {
|
| 452 |
+
'Computer preconfigurato': 'Insieme alla stampante, forniamo il PC preinstallato e configurato per l\'uso immediato. Indispensabile se desideri richiedere il bonus Industria 4.0 or 5.0 ed evitare lo stress di dover cercare un computer.',
|
| 453 |
+
'Trasporto, installazione in loco, corso': 'Servizio completo: trasporto, installazione e formazione sul posto con un tecnico dedicato. Questo servizio diventa particolarmente utile per chi desidera avere un tecnico a disposizione per mezza giornata presso la propria sede.',
|
| 454 |
+
'Trasporto, installazione remota, corso': 'La stampante arriva direttamente da te e, successivamente, verrai seguito per mezza giornata di formazione online. Questo servizio si adatta perfettamente alle stampanti piccole, dato l\'uso semplice ed immediato.',
|
| 455 |
+
'Kit colori': 'I nostri inchiostri sono studiati appositamente per funzionare con le nostre teste garantendo la migliore resa di stampa e prevenendo eventuali intoppi sulle nostre stampanti.',
|
| 456 |
+
'Rotary per superfici cilindriche': 'Permette la stampa su oggetti cilindrici come bottiglie e borracce. E\' possibile aggiungere questo accessorio anche in un secondo momento per implementare le funzioni della stampante.',
|
| 457 |
+
'Modulo Queen': 'Modulo telecamera per il riconoscimento reale delle forme e sagome, permette una centratura specifica sui pezzi in maniera da poter stampare anche sagome complesse e/o diverse tra loro.',
|
| 458 |
+
'Manutenzione ordinaria': 'Un servizio che prevede un\'uscita tecnica per un checkup completo della stampante, messa a punto e, se necessario, sostituzione dei pezzi in garanzia. Si effettua dopo circa 6/7 mesi di utilizzo.'
|
| 459 |
+
};
|
| 460 |
+
|
| 461 |
+
// Printer images and specs for PDF
|
| 462 |
+
const printerImages = {
|
| 463 |
+
'H7-35': 'https://www.finitechitalia.com/wp-content/uploads/2025/02/H7-35-img-prodotto-1024x808-1.png',
|
| 464 |
+
'Cubic64': 'https://www.finitechitalia.com/wp-content/uploads/2025/12/Cubic64new-scaled.png',
|
| 465 |
+
'Cubic UV-DTF': 'https://www.finitechitalia.com/wp-content/uploads/2025/12/Cubic64new-scaled.png',
|
| 466 |
+
'6090 UV': 'https://www.finitechitalia.com/wp-content/uploads/2025/02/6090.png',
|
| 467 |
+
'1612': 'https://www.finitechitalia.com/wp-content/uploads/2025/02/1612finitechcdr.png',
|
| 468 |
+
'2513': 'https://www.finitechitalia.com/wp-content/uploads/2025/02/1612finitechcdr.png'
|
| 469 |
+
};
|
| 470 |
+
|
| 471 |
+
const printerSpecs = {
|
| 472 |
+
'H7-35': [
|
| 473 |
+
'Area di stampa: 300x500mm',
|
| 474 |
+
'Altezza di stampa: Fino a 18cm',
|
| 475 |
+
'Numero di colori : 5 (CMYK + W)',
|
| 476 |
+
'Risoluzione: Fino a 2880 dpi',
|
| 477 |
+
'Dimensioni: 70(L)x55(P)x77cm(H)',
|
| 478 |
+
'Peso: 60kg'
|
| 479 |
+
],
|
| 480 |
+
'Cubic64': [
|
| 481 |
+
'Area di stampa: 400x600mm',
|
| 482 |
+
'Altezza di stampa: Fino a 15cm',
|
| 483 |
+
'Numero di colori : 6 (CMYK + W + V)',
|
| 484 |
+
'Risoluzione: Fino a 2880 dpi',
|
| 485 |
+
'Dimensioni: 80(L)x50(P)x55cm(H)',
|
| 486 |
+
'Peso: 90kg'
|
| 487 |
+
],
|
| 488 |
+
'Cubic UV-DTF': [
|
| 489 |
+
'Luce di stampa: 400mm',
|
| 490 |
+
'Numero di colori : 6 (CMYK + W + V)',
|
| 491 |
+
'Risoluzione: Fino a 2880 dpi',
|
| 492 |
+
'Dimensioni: 80(L)x50(P)x55cm(H)',
|
| 493 |
+
'Peso: 90kg'
|
| 494 |
+
],
|
| 495 |
+
'6090 UV': [
|
| 496 |
+
'Area di stampa: 600x900mm',
|
| 497 |
+
'Altezza di stampa: Fino a 20cm',
|
| 498 |
+
'Numero di colori : 6 (CMYK + W + V)',
|
| 499 |
+
'Risoluzione: Fino a 5760 dpi',
|
| 500 |
+
'Dimensioni: 130(L)x160(P)x75cm(H)',
|
| 501 |
+
'Peso: 140kg'
|
| 502 |
+
],
|
| 503 |
+
'1612': [
|
| 504 |
+
'Area di stampa: 1200x1620mm',
|
| 505 |
+
'Altezza di stampa: Fino a 20cm',
|
| 506 |
+
'Numero di colori : 6 (CMYK + W + V)',
|
| 507 |
+
'Risoluzione: Fino a 5760 dpi',
|
| 508 |
+
'Dimensioni: 305 x 185 x 143 cm',
|
| 509 |
+
'Peso: 550kg'
|
| 510 |
+
],
|
| 511 |
+
'2513': [
|
| 512 |
+
'Area di stampa: 2500x1300mm',
|
| 513 |
+
'Altezza di stampa: Fino a 20cm',
|
| 514 |
+
'Numero di colori : 6 (CMYK + W + V)',
|
| 515 |
+
'Risoluzione: Fino a 5760 dpi',
|
| 516 |
+
'Dimensioni: 405 x 195 x 135 cm',
|
| 517 |
+
'Peso: 850kg'
|
| 518 |
+
]
|
| 519 |
+
};
|
| 520 |
+
|
| 521 |
+
// Select printer function
|
| 522 |
+
function selectPrinter(model, prezzo) {
|
| 523 |
+
document.getElementById('stampante').value = model;
|
| 524 |
+
document.getElementById('stampante').dataset.prezzo = prezzo;
|
| 525 |
+
|
| 526 |
+
// Update UI - remove selected class from all cards
|
| 527 |
+
document.querySelectorAll('.printer-card').forEach(card => {
|
| 528 |
+
card.classList.remove('selected', 'border-[#99db4a]', 'bg-primary-50');
|
| 529 |
+
});
|
| 530 |
+
|
| 531 |
+
// Add selected class to clicked card
|
| 532 |
+
const cardId = 'printer-' + model.replace(/\s+/g, '-');
|
| 533 |
+
document.getElementById(cardId).classList.add('selected', 'border-[#99db4a]', 'bg-primary-50');
|
| 534 |
+
|
| 535 |
+
// Update total and manage options
|
| 536 |
+
calcolaTotale();
|
| 537 |
+
gestisciOpzioni();
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
// Calculate total
|
| 541 |
+
function calcolaTotale() {
|
| 542 |
+
const stampante = document.getElementById('stampante');
|
| 543 |
+
const checkboxes = document.querySelectorAll('input[name="opzioni[]"]:checked');
|
| 544 |
+
const nome = document.getElementById('nome').value;
|
| 545 |
+
const cognome = document.getElementById('cognome').value;
|
| 546 |
+
const email = document.getElementById('email').value;
|
| 547 |
+
const telefono = document.getElementById('telefono').value;
|
| 548 |
+
|
| 549 |
+
if (!stampante.value) {
|
| 550 |
+
document.getElementById('totale-preventivo').innerHTML = '<p class="text-gray-500 italic">Seleziona una stampante per iniziare</p>';
|
| 551 |
+
document.getElementById('genera-pdf-btn').disabled = true;
|
| 552 |
+
document.getElementById('selected-options').classList.add('hidden');
|
| 553 |
+
return;
|
| 554 |
+
}
|
| 555 |
+
|
| 556 |
+
let totale = parseFloat(stampante.dataset.prezzo);
|
| 557 |
+
let optionsList = `<li class="font-medium">${stampante.value}</li>`;
|
| 558 |
+
|
| 559 |
+
// Speed option is no longer shown in PDF
|
| 560 |
+
|
| 561 |
+
checkboxes.forEach(checkbox => {
|
| 562 |
+
let prezzo = parseFloat(checkbox.dataset.prezzo);
|
| 563 |
+
|
| 564 |
+
// Adjust prices for H7-35
|
| 565 |
+
if (stampante.value === "H7-35") {
|
| 566 |
+
if (checkbox.value === "Kit colori") {
|
| 567 |
+
prezzo = 475;
|
| 568 |
+
} else if (checkbox.value === "Trasporto, installazione remota, corso") {
|
| 569 |
+
prezzo = 500;
|
| 570 |
+
} else if (checkbox.value === "Computer preconfigurato") {
|
| 571 |
+
prezzo = 400;
|
| 572 |
+
}
|
| 573 |
+
// Adjust computer price for 6090 UV, 1612, 2513 based on speed
|
| 574 |
+
else if (['6090 UV', '1612', '2513'].includes(stampante.value) && checkbox.value === "Computer preconfigurato") {
|
| 575 |
+
const speedOption = document.querySelector('input[name="speed"]:checked');
|
| 576 |
+
if (speedOption && speedOption.value === "V2") {
|
| 577 |
+
prezzo = 800;
|
| 578 |
+
} else if (speedOption && speedOption.value === "V3") {
|
| 579 |
+
prezzo = 1000;
|
| 580 |
+
}
|
| 581 |
+
}
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
// Special handling for Queen module
|
| 585 |
+
if (checkbox.value === "Modulo Queen") {
|
| 586 |
+
if (stampante.value === "6090 UV") {
|
| 587 |
+
prezzo = 7000;
|
| 588 |
+
} else if (stampante.value === "1612") {
|
| 589 |
+
prezzo = 15000;
|
| 590 |
+
} else if (stampante.value === "2513") {
|
| 591 |
+
prezzo = 25000;
|
| 592 |
+
}
|
| 593 |
+
}
|
| 594 |
+
|
| 595 |
+
totale += prezzo;
|
| 596 |
+
optionsList += `<li>+ ${checkbox.value}</li>`;
|
| 597 |
+
});
|
| 598 |
+
|
| 599 |
+
// Update total display
|
| 600 |
+
if (nome && cognome && email && telefono) {
|
| 601 |
+
document.getElementById('totale-preventivo').innerHTML = `
|
| 602 |
+
<div class="text-center">
|
| 603 |
+
<p class="text-gray-700 mb-1">Configurazione completata</p>
|
| 604 |
+
<p class="text-sm text-gray-500">Clicca su "Genera Preventivo" per ricevere il preventivo dettagliato</p>
|
| 605 |
+
</div>
|
| 606 |
+
`;
|
| 607 |
+
} else {
|
| 608 |
+
document.getElementById('totale-preventivo').innerHTML = `
|
| 609 |
+
<div class="text-center">
|
| 610 |
+
<p class="text-gray-700 mb-2">Configurazione completata</p>
|
| 611 |
+
<p class="text-sm text-gray-500">Compila tutti i campi "I tuoi dati" per generare il preventivo dettagliato</p>
|
| 612 |
+
</div>
|
| 613 |
+
`;
|
| 614 |
+
}
|
| 615 |
+
|
| 616 |
+
// Update selected options list
|
| 617 |
+
document.getElementById('options-list').innerHTML = optionsList;
|
| 618 |
+
document.getElementById('selected-options').classList.remove('hidden');
|
| 619 |
+
|
| 620 |
+
// Enable/disable PDF button based on required fields
|
| 621 |
+
const pdfBtn = document.getElementById('genera-pdf-btn');
|
| 622 |
+
if (nome && cognome && email && telefono) {
|
| 623 |
+
pdfBtn.disabled = false;
|
| 624 |
+
pdfBtn.classList.remove('bg-gray-400');
|
| 625 |
+
pdfBtn.classList.add('bg-[#99db4a]', 'hover:bg-[#88c441]');
|
| 626 |
+
} else {
|
| 627 |
+
pdfBtn.disabled = true;
|
| 628 |
+
pdfBtn.classList.remove('bg-[#99db4a]', 'hover:bg-[#88c441]');
|
| 629 |
+
pdfBtn.classList.add('bg-gray-400');
|
| 630 |
+
}
|
| 631 |
+
}
|
| 632 |
+
|
| 633 |
+
// Manage options based on printer selection
|
| 634 |
+
function gestisciOpzioni() {
|
| 635 |
+
var stampante = document.getElementById('stampante').value;
|
| 636 |
+
const speedContainer = document.getElementById('speed-selection-container');
|
| 637 |
+
|
| 638 |
+
// Show/hide speed selection
|
| 639 |
+
if (['6090 UV', '1612', '2513'].includes(stampante)) {
|
| 640 |
+
speedContainer.classList.remove('hidden');
|
| 641 |
+
// Reset selection when changing printer
|
| 642 |
+
document.querySelectorAll('input[name="speed"]').forEach(radio => {
|
| 643 |
+
radio.checked = false;
|
| 644 |
+
});
|
| 645 |
+
} else {
|
| 646 |
+
speedContainer.classList.add('hidden');
|
| 647 |
+
}
|
| 648 |
+
|
| 649 |
+
// Enable all options first
|
| 650 |
+
var opzioni = document.querySelectorAll('input[type="checkbox"]');
|
| 651 |
+
opzioni.forEach(function(opzione) {
|
| 652 |
+
opzione.disabled = false;
|
| 653 |
+
opzione.closest('label').classList.remove('disabled-option');
|
| 654 |
+
});
|
| 655 |
+
|
| 656 |
+
// Disable specific options based on printer
|
| 657 |
+
if (stampante === '1612' || stampante === '2513') {
|
| 658 |
+
document.getElementById('rotary').disabled = true;
|
| 659 |
+
document.getElementById('label-rotary').classList.add('disabled-option');
|
| 660 |
+
}
|
| 661 |
+
|
| 662 |
+
if (stampante === '6090 UV' || stampante === '1612' || stampante === '2513') {
|
| 663 |
+
document.getElementById('installazione-remota').disabled = true;
|
| 664 |
+
document.getElementById('installazione-remota').checked = false;
|
| 665 |
+
document.getElementById('label-installazione-remota').classList.add('disabled-option');
|
| 666 |
+
}
|
| 667 |
+
|
| 668 |
+
// Enable Queen module only for specific printers (6090 UV, 1612, 2513)
|
| 669 |
+
if (stampante === '6090 UV' || stampante === '1612' || stampante === '2513') {
|
| 670 |
+
document.getElementById('queen').disabled = false;
|
| 671 |
+
document.getElementById('label-queen').classList.remove('disabled-option');
|
| 672 |
+
} else {
|
| 673 |
+
// Disable Queen for H7-35, Cubic64, Cubic UV-DTF
|
| 674 |
+
document.getElementById('queen').disabled = true;
|
| 675 |
+
document.getElementById('queen').checked = false;
|
| 676 |
+
document.getElementById('label-queen').classList.add('disabled-option');
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
calcolaTotale();
|
| 680 |
+
}
|
| 681 |
+
|
| 682 |
+
// Manage installation options
|
| 683 |
+
function gestisciInstallazione() {
|
| 684 |
+
var installazioneLoco = document.getElementById('installazione-loco');
|
| 685 |
+
var installazioneRemota = document.getElementById('installazione-remota');
|
| 686 |
+
|
| 687 |
+
if (installazioneLoco.checked) {
|
| 688 |
+
installazioneRemota.disabled = true;
|
| 689 |
+
installazioneRemota.checked = false;
|
| 690 |
+
document.getElementById('label-installazione-remota').classList.add('disabled-option');
|
| 691 |
+
} else if (installazioneRemota.checked) {
|
| 692 |
+
installazioneLoco.disabled = true;
|
| 693 |
+
installazioneLoco.checked = false;
|
| 694 |
+
document.getElementById('label-installazione-loco').classList.add('disabled-option');
|
| 695 |
+
} else {
|
| 696 |
+
// Re-enable based on printer selection
|
| 697 |
+
var stampante = document.getElementById('stampante').value;
|
| 698 |
+
if (!(stampante === '6090 UV' || stampante === '1612' || stampante === '2513')) {
|
| 699 |
+
installazioneRemota.disabled = false;
|
| 700 |
+
document.getElementById('label-installazione-remota').classList.remove('disabled-option');
|
| 701 |
+
}
|
| 702 |
+
installazioneLoco.disabled = false;
|
| 703 |
+
document.getElementById('label-installazione-loco').classList.remove('disabled-option');
|
| 704 |
+
}
|
| 705 |
+
|
| 706 |
+
calcolaTotale();
|
| 707 |
+
}
|
| 708 |
+
|
| 709 |
+
// Generate PDF and send email
|
| 710 |
+
async function generaPDF() {
|
| 711 |
+
const stampante = document.getElementById('stampante');
|
| 712 |
+
const checkboxes = document.querySelectorAll('input[name="opzioni[]"]:checked');
|
| 713 |
+
const nome = document.getElementById('nome').value;
|
| 714 |
+
const cognome = document.getElementById('cognome').value;
|
| 715 |
+
const azienda = document.getElementById('azienda').value;
|
| 716 |
+
const partita_iva = document.getElementById('partita_iva').value;
|
| 717 |
+
const telefono = document.getElementById('telefono').value;
|
| 718 |
+
const email = document.getElementById('email').value;
|
| 719 |
+
|
| 720 |
+
let totale = parseFloat(stampante.dataset.prezzo);
|
| 721 |
+
let optionsList = [`${stampante.value} - ${parseFloat(stampante.dataset.prezzo).toLocaleString('it-IT', {minimumFractionDigits: 2, maximumFractionDigits: 2})}`];
|
| 722 |
+
|
| 723 |
+
// Speed option is still added to total but not shown in PDF
|
| 724 |
+
const speedOption = document.querySelector('input[name="speed"]:checked');
|
| 725 |
+
if (speedOption) {
|
| 726 |
+
const speedPrice = parseFloat(speedOption.dataset.prezzo);
|
| 727 |
+
totale += speedPrice;
|
| 728 |
+
}
|
| 729 |
+
|
| 730 |
+
checkboxes.forEach(checkbox => {
|
| 731 |
+
let prezzo = parseFloat(checkbox.dataset.prezzo);
|
| 732 |
+
|
| 733 |
+
// Adjust prices for H7-35
|
| 734 |
+
if (stampante.value === "H7-35") {
|
| 735 |
+
if (checkbox.value === "Kit colori") {
|
| 736 |
+
prezzo = 475;
|
| 737 |
+
} else if (checkbox.value === "Trasporto, installazione remota, corso") {
|
| 738 |
+
prezzo = 500;
|
| 739 |
+
} else if (checkbox.value === "Computer preconfigurato") {
|
| 740 |
+
prezzo = 400;
|
| 741 |
+
}
|
| 742 |
+
}
|
| 743 |
+
|
| 744 |
+
// Special handling for Queen module
|
| 745 |
+
if (checkbox.value === "Modulo Queen") {
|
| 746 |
+
if (stampante.value === "6090 UV") {
|
| 747 |
+
prezzo = 7000;
|
| 748 |
+
} else if (stampante.value === "1612") {
|
| 749 |
+
prezzo = 15000;
|
| 750 |
+
} else if (stampante.value === "2513") {
|
| 751 |
+
prezzo = 25000;
|
| 752 |
+
}
|
| 753 |
+
}
|
| 754 |
+
|
| 755 |
+
totale += prezzo;
|
| 756 |
+
optionsList.push(`+ ${checkbox.value} - ${prezzo.toLocaleString('it-IT', {minimumFractionDigits: 2, maximumFractionDigits: 2})}`);
|
| 757 |
+
});
|
| 758 |
+
|
| 759 |
+
// Calculate validity date (15 working days from today)
|
| 760 |
+
const today = new Date();
|
| 761 |
+
const validityDate = new Date(today);
|
| 762 |
+
let workingDaysAdded = 0;
|
| 763 |
+
while (workingDaysAdded < 15) {
|
| 764 |
+
validityDate.setDate(validityDate.getDate() + 1);
|
| 765 |
+
// Skip weekends
|
| 766 |
+
if (validityDate.getDay() !== 0 && validityDate.getDay() !== 6) {
|
| 767 |
+
workingDaysAdded++;
|
| 768 |
+
}
|
| 769 |
+
}
|
| 770 |
+
const formattedValidityDate = validityDate.toLocaleDateString('it-IT');
|
| 771 |
+
|
| 772 |
+
// Create PDF document
|
| 773 |
+
const doc = new jsPDF();
|
| 774 |
+
|
| 775 |
+
// Function to add footer to each page
|
| 776 |
+
const addFooter = () => {
|
| 777 |
+
doc.setFontSize(9);
|
| 778 |
+
doc.setTextColor(85, 85, 85);
|
| 779 |
+
doc.text('Finitech - Via Boschi 36 - 31040 Pederobba (TV) - p.iva: 05070670269', 105, 285, { align: 'center' });
|
| 780 |
+
doc.text('info@finitechitalia.com - www.finitechitalia.com', 105, 290, { align: 'center' });
|
| 781 |
+
};
|
| 782 |
+
|
| 783 |
+
// First page - Cover page
|
| 784 |
+
doc.setFont('helvetica', 'bold'); // Montserrat sarà qui se caricato
|
| 785 |
+
doc.setFontSize(28);
|
| 786 |
+
doc.setTextColor(153, 219, 74); // #99db4a
|
| 787 |
+
doc.text('OFFERTA RISERVATA', 105, 80, { align: 'center' });
|
| 788 |
+
doc.setFontSize(22);
|
| 789 |
+
doc.text(`per l'acquisto di Bravo-Jet ${stampante.value}`, 105, 100, { align: 'center' });
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
|
| 793 |
+
// Add printer image
|
| 794 |
+
try {
|
| 795 |
+
const imgData = await getBase64Image(printerImages[stampante.value]);
|
| 796 |
+
doc.addImage(imgData, 'PNG', 60, 120, 90, 60);
|
| 797 |
+
} catch (e) {
|
| 798 |
+
console.error("Error loading printer image:", e);
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
+
// Add logo
|
| 802 |
+
try {
|
| 803 |
+
const logoData = await getBase64Image('https://www.finitechitalia.com/wp-content/uploads/2024/09/logo-finitech-1.png');
|
| 804 |
+
doc.addImage(logoData, 'PNG', 80, 200, 50, 20);
|
| 805 |
+
} catch (e) {
|
| 806 |
+
console.error("Error loading logo:", e);
|
| 807 |
+
}
|
| 808 |
+
|
| 809 |
+
doc.setFontSize(12);
|
| 810 |
+
doc.setTextColor(100, 100, 100);
|
| 811 |
+
doc.text(`Preventivo numero ${preventivoNumero}`, 105, 240, { align: 'center' });
|
| 812 |
+
|
| 813 |
+
// Add footer to first page
|
| 814 |
+
addFooter();
|
| 815 |
+
|
| 816 |
+
// Second page - Configuration details
|
| 817 |
+
doc.addPage();
|
| 818 |
+
|
| 819 |
+
// Add footer to second page
|
| 820 |
+
addFooter();
|
| 821 |
+
|
| 822 |
+
// Logo and header
|
| 823 |
+
doc.setFontSize(22);
|
| 824 |
+
doc.setTextColor(153, 219, 74);
|
| 825 |
+
doc.text('FINITECH', 105, 20, { align: 'center' });
|
| 826 |
+
|
| 827 |
+
doc.setFontSize(12);
|
| 828 |
+
doc.setTextColor(74, 107, 34);
|
| 829 |
+
doc.text('OFFERTA RISERVATA', 105, 30, { align: 'center' });
|
| 830 |
+
|
| 831 |
+
// Client info box
|
| 832 |
+
|
| 833 |
+
doc.setFontSize(10);
|
| 834 |
+
doc.setTextColor(0, 0, 0);
|
| 835 |
+
doc.text('Riservata a:', 25, 50);
|
| 836 |
+
doc.setFont('helvetica', 'bold');
|
| 837 |
+
doc.text(`${nome} ${cognome}`, 45, 50);
|
| 838 |
+
|
| 839 |
+
if (azienda) {
|
| 840 |
+
doc.setFont('helvetica', 'normal');
|
| 841 |
+
doc.text('Azienda:', 25, 60);
|
| 842 |
+
doc.setFont('helvetica', 'bold');
|
| 843 |
+
doc.text(azienda, 45, 60);
|
| 844 |
+
}
|
| 845 |
+
|
| 846 |
+
if (partita_iva) {
|
| 847 |
+
doc.setFont('helvetica', 'normal');
|
| 848 |
+
doc.text('P.IVA:', 25, 70);
|
| 849 |
+
doc.setFont('helvetica', 'bold');
|
| 850 |
+
doc.text(partita_iva, 45, 70);
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
doc.setFont('helvetica', 'normal');
|
| 854 |
+
doc.text('Email:', 25, 80);
|
| 855 |
+
doc.setFont('helvetica', 'bold');
|
| 856 |
+
doc.text(`${email}`, 45, 80);
|
| 857 |
+
doc.setFont('helvetica', 'normal');
|
| 858 |
+
doc.text('Telefono:', 25, 90);
|
| 859 |
+
doc.setFont('helvetica', 'bold');
|
| 860 |
+
doc.text(`${telefono}`, 45, 90);
|
| 861 |
+
|
| 862 |
+
// Date and validity box
|
| 863 |
+
doc.setFillColor(248, 252, 243);
|
| 864 |
+
doc.setDrawColor(213, 237, 179);
|
| 865 |
+
doc.roundedRect(120, 40, 70, 30, 3, 3, 'FD');
|
| 866 |
+
|
| 867 |
+
const formattedDate = today.toLocaleDateString('it-IT');
|
| 868 |
+
doc.setFont('helvetica', 'normal');
|
| 869 |
+
doc.text(`Data emissione: ${formattedDate}`, 125, 50);
|
| 870 |
+
doc.text(`Validità entro e non oltre il: ${formattedValidityDate}`, 125, 60);
|
| 871 |
+
|
| 872 |
+
// Line separator
|
| 873 |
+
doc.setDrawColor(200, 200, 200);
|
| 874 |
+
doc.line(20, 110, 190, 110);
|
| 875 |
+
|
| 876 |
+
// Printer description with image
|
| 877 |
+
doc.setFontSize(12);
|
| 878 |
+
doc.setTextColor(153, 219, 74);
|
| 879 |
+
doc.text('Descrizione prodotto:', 20, 120);
|
| 880 |
+
|
| 881 |
+
doc.setFontSize(10);
|
| 882 |
+
doc.setTextColor(0, 0, 0);
|
| 883 |
+
let printerDesc = printerDescriptions[stampante.value];
|
| 884 |
+
// Move description to right side
|
| 885 |
+
doc.text(printerDesc, 110, 130, { maxWidth: 80 });
|
| 886 |
+
// Add speed selection if applicable
|
| 887 |
+
if (['6090 UV', '1612', '2513'].includes(stampante.value) && speedOption) {
|
| 888 |
+
const speedY = 130 + doc.getTextDimensions(printerDesc, {maxWidth: 80}).h + 5;
|
| 889 |
+
doc.setFontSize(10);
|
| 890 |
+
doc.setTextColor(153, 219, 74);
|
| 891 |
+
doc.text('Velocità di stampa:', 110, speedY);
|
| 892 |
+
|
| 893 |
+
doc.setFontSize(10);
|
| 894 |
+
doc.setTextColor(0, 0, 0);
|
| 895 |
+
const speedText = speedOption.value === 'V1' ? 'V1 - Fino a 8mq/h (standard)' :
|
| 896 |
+
speedOption.value === 'V2' ? 'V2 - Fino a 10mq/h' :
|
| 897 |
+
'V3 - Fino a 12mq/h';
|
| 898 |
+
doc.text(speedText, 110, speedY + 7, { maxWidth: 80 });
|
| 899 |
+
}
|
| 900 |
+
|
| 901 |
+
// Add printer image again
|
| 902 |
+
try {
|
| 903 |
+
const imgData = await getBase64Image(printerImages[stampante.value]);
|
| 904 |
+
doc.addImage(imgData, 'PNG', 20, 130, 80, 60);
|
| 905 |
+
} catch (e) {
|
| 906 |
+
console.error("Error loading printer image:", e);
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
// Add technical specification image based on printer model
|
| 910 |
+
let specImageUrl;
|
| 911 |
+
switch(stampante.value) {
|
| 912 |
+
case 'H7-35':
|
| 913 |
+
specImageUrl = 'https://www.finitechitalia.com/doc-configuratore/scheda-tecnica-bravo-jet-h7-35.png';
|
| 914 |
+
break;
|
| 915 |
+
case 'Cubic64':
|
| 916 |
+
case 'Cubic UV-DTF':
|
| 917 |
+
specImageUrl = 'https://www.finitechitalia.com/doc-configuratore/scheda-tecnica-bravo-jet-cubic-64.png';
|
| 918 |
+
break;
|
| 919 |
+
case '6090 UV':
|
| 920 |
+
specImageUrl = 'https://www.finitechitalia.com/doc-configuratore/scheda-tecnica-bravo-jet-9060.png';
|
| 921 |
+
break;
|
| 922 |
+
case '1612':
|
| 923 |
+
specImageUrl = 'https://www.finitechitalia.com/doc-configuratore/scheda-tecnica-bravo-jet-1612.png';
|
| 924 |
+
break;
|
| 925 |
+
case '2513':
|
| 926 |
+
specImageUrl = 'https://www.finitechitalia.com/doc-configuratore/scheda-tecnica-bravo-jet-2513.png';
|
| 927 |
+
break;
|
| 928 |
+
}
|
| 929 |
+
|
| 930 |
+
try {
|
| 931 |
+
const specImgData = await getBase64Image(specImageUrl);
|
| 932 |
+
doc.addImage(specImgData, 'PNG', 20, 200, 170, 80);
|
| 933 |
+
} catch (e) {
|
| 934 |
+
console.error("Error loading spec image:", e);
|
| 935 |
+
}
|
| 936 |
+
|
| 937 |
+
// Third page - Configuration details
|
| 938 |
+
doc.addPage();
|
| 939 |
+
// Add footer to third page
|
| 940 |
+
addFooter();
|
| 941 |
+
// Configuration details
|
| 942 |
+
doc.setFontSize(12);
|
| 943 |
+
doc.setTextColor(153, 219, 74);
|
| 944 |
+
doc.text('Configurazione selezionata:', 20, 20);
|
| 945 |
+
doc.setFontSize(10);
|
| 946 |
+
doc.setTextColor(0, 0, 0);
|
| 947 |
+
let yPosition = 30;
|
| 948 |
+
// Stampante scelta
|
| 949 |
+
const printerBoxHeight = 20;
|
| 950 |
+
let printerPrice = parseFloat(stampante.dataset.prezzo);
|
| 951 |
+
if (speedOption) {
|
| 952 |
+
printerPrice += parseFloat(speedOption.dataset.prezzo);
|
| 953 |
+
}
|
| 954 |
+
doc.setFillColor(245, 245, 245);
|
| 955 |
+
doc.setDrawColor(204, 204, 204);
|
| 956 |
+
doc.roundedRect(20, yPosition - 2, 170, printerBoxHeight, 2, 2, 'FD');
|
| 957 |
+
doc.setFont('helvetica', 'bold');
|
| 958 |
+
doc.setFontSize(10);
|
| 959 |
+
doc.setTextColor(0, 0, 0);
|
| 960 |
+
doc.text(stampante.value, 25, yPosition + 5);
|
| 961 |
+
// Prezzo stampante allineato a destra (include speed option price)
|
| 962 |
+
doc.text(`${printerPrice.toLocaleString('it-IT', {minimumFractionDigits: 2, maximumFractionDigits: 2})}`, 185, yPosition + 5, { align: 'right' });
|
| 963 |
+
// Testo descrizione
|
| 964 |
+
doc.setFont('helvetica', 'normal');
|
| 965 |
+
doc.setFontSize(9);
|
| 966 |
+
doc.setTextColor(0, 0, 0);
|
| 967 |
+
doc.text(
|
| 968 |
+
'Stampante UV Flatbed. La stampante viene consegnata già centrata, preconfigurata e pronta all\'uso',
|
| 969 |
+
25,
|
| 970 |
+
yPosition + 12,
|
| 971 |
+
{ maxWidth: 160 }
|
| 972 |
+
);
|
| 973 |
+
yPosition += printerBoxHeight + 5;
|
| 974 |
+
// Assistenza 10 ore
|
| 975 |
+
const extraBoxHeight = 26;
|
| 976 |
+
doc.setFillColor(245, 245, 245);
|
| 977 |
+
doc.setDrawColor(204, 204, 204);
|
| 978 |
+
doc.roundedRect(20, yPosition - 2, 170, extraBoxHeight, 2, 2, 'FD');
|
| 979 |
+
doc.setFont('helvetica', 'bold');
|
| 980 |
+
doc.setFontSize(10);
|
| 981 |
+
doc.setTextColor(0, 0, 0);
|
| 982 |
+
doc.text('Assistenza 10 ore', 25, yPosition + 5);
|
| 983 |
+
// Prezzo "Omaggio" allineato a destra
|
| 984 |
+
doc.text('Omaggio', 185, yPosition + 5, { align: 'right' });
|
| 985 |
+
// Testo descrizione
|
| 986 |
+
doc.setFont('helvetica', 'normal');
|
| 987 |
+
doc.setFontSize(9);
|
| 988 |
+
doc.text(
|
| 989 |
+
'Un servizio gratuito che offriamo post-installazione, indipendentemente dal tipo di installazione scelta. Pensato per supportare l\'operatore durante le prime fasi di utilizzo della stampante, garantendo un approccio alla stampante senza ansie o dubbi operativi.',
|
| 990 |
+
25,
|
| 991 |
+
yPosition + 12,
|
| 992 |
+
{ maxWidth: 160 }
|
| 993 |
+
);
|
| 994 |
+
yPosition += extraBoxHeight + 5;
|
| 995 |
+
// Ora aggiungiamo le opzioni scelte
|
| 996 |
+
optionsList.forEach((option, index) => {
|
| 997 |
+
const optionParts = option.split(' - ');
|
| 998 |
+
const optionName = optionParts[0].replace('+ ', '').trim();
|
| 999 |
+
const optionPrice = optionParts[1] ? optionParts[1].trim() : '';
|
| 1000 |
+
// ?? Salta la stampante principale se già inserita sopra
|
| 1001 |
+
if (optionName === stampante.value.trim()) return;
|
| 1002 |
+
// ?? Salta la velocità se già mostrata sopra
|
| 1003 |
+
const speedOptionLabel = speedOption?.closest('label')?.querySelector('span.flex-grow > span')?.textContent?.trim();
|
| 1004 |
+
if (optionName === speedOptionLabel) return;
|
| 1005 |
+
// Altezza base del box
|
| 1006 |
+
let boxHeight = 12;
|
| 1007 |
+
const hasDescription = !!optionDescriptions[optionName];
|
| 1008 |
+
if (hasDescription) boxHeight += 12;
|
| 1009 |
+
// Disegna il riquadro con angoli leggermente arrotondati
|
| 1010 |
+
doc.setFillColor(245, 245, 245); // grigio chiaro
|
| 1011 |
+
doc.setDrawColor(204, 204, 204); // bordo grigio medio
|
| 1012 |
+
doc.roundedRect(20, yPosition - 2, 170, boxHeight, 2, 2, 'FD');
|
| 1013 |
+
// Titolo accessorio in grassetto
|
| 1014 |
+
doc.setFont('helvetica', 'bold');
|
| 1015 |
+
doc.setFontSize(10);
|
| 1016 |
+
doc.setTextColor(0, 0, 0);
|
| 1017 |
+
doc.text(optionName, 25, yPosition + 5);
|
| 1018 |
+
// Prezzo allineato a destra, ma più interno
|
| 1019 |
+
if (optionPrice) {
|
| 1020 |
+
doc.text(optionPrice, 185, yPosition + 5, { align: 'right' });
|
| 1021 |
+
}
|
| 1022 |
+
// Descrizione se presente
|
| 1023 |
+
if (hasDescription) {
|
| 1024 |
+
doc.setFont('helvetica', 'normal');
|
| 1025 |
+
doc.setFontSize(9);
|
| 1026 |
+
doc.text(optionDescriptions[optionName], 25, yPosition + 12, { maxWidth: 160 });
|
| 1027 |
+
}
|
| 1028 |
+
yPosition += boxHeight + 5;
|
| 1029 |
+
});
|
| 1030 |
+
// Totale preventivo allineato a destra
|
| 1031 |
+
doc.setFontSize(14);
|
| 1032 |
+
doc.setFont('helvetica', 'bold');
|
| 1033 |
+
doc.setTextColor(153, 219, 74);
|
| 1034 |
+
doc.text('Totale preventivo:', 185, yPosition + 6, { align: 'right' });
|
| 1035 |
+
// Prezzo totale allineato a destra, più grande e in grassetto nero
|
| 1036 |
+
doc.setFontSize(16);
|
| 1037 |
+
doc.setFont('helvetica', 'bold');
|
| 1038 |
+
doc.setTextColor(0, 0, 0);
|
| 1039 |
+
doc.text(`${totale.toLocaleString('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 })} + IVA`, 185, yPosition + 14, { align: 'right' });
|
| 1040 |
+
// Nota in piccolo sotto il totale
|
| 1041 |
+
doc.setFontSize(8);
|
| 1042 |
+
doc.setFont('helvetica', 'normal');
|
| 1043 |
+
doc.setTextColor(100, 100, 100);
|
| 1044 |
+
doc.text('Tutti i prezzi si intendono IVA esclusa', 185, yPosition + 19, { align: 'right' });
|
| 1045 |
+
// Fourth page - Terms and conditions
|
| 1046 |
+
doc.addPage();
|
| 1047 |
+
|
| 1048 |
+
// Add footer to fourth page
|
| 1049 |
+
addFooter();
|
| 1050 |
+
|
| 1051 |
+
// Garanzia
|
| 1052 |
+
doc.setFontSize(10);
|
| 1053 |
+
doc.setTextColor(153, 219, 74);
|
| 1054 |
+
doc.text('GARANZIA', 20, 20);
|
| 1055 |
+
doc.setFontSize(10);
|
| 1056 |
+
doc.setTextColor(0, 0, 0);
|
| 1057 |
+
yPosition = 30;
|
| 1058 |
+
doc.text('- Garanzia 12 mesi subordinata all\'utilizzo di inchiostri originali.', 20, yPosition, { maxWidth: 170 });
|
| 1059 |
+
yPosition += 10;
|
| 1060 |
+
doc.text('- Rientrano nella garanzia tutte le parti meccaniche ad esclusione delle teste di stampa, dei consumabili e dei guasti da agenti atmosferici, da sbalzi di corrente o da eventi catastrofici.', 20, yPosition, { maxWidth: 170 });
|
| 1061 |
+
yPosition += 10;
|
| 1062 |
+
doc.text('- La sostituzione di pezzi in garanzia, o il ripristino della macchina non comprende i costi di uscita del tecnico che rimangono a carico del cliente (escluso in caso di pacchetto di manutenzione prepagato).', 20, yPosition, { maxWidth: 170 });
|
| 1063 |
+
|
| 1064 |
+
// Modalità di pagamento
|
| 1065 |
+
yPosition += 15;
|
| 1066 |
+
doc.setFontSize(10);
|
| 1067 |
+
doc.setTextColor(153, 219, 74);
|
| 1068 |
+
doc.text('MODALITÀ DI PAGAMENTO', 20, yPosition);
|
| 1069 |
+
doc.setFontSize(10);
|
| 1070 |
+
doc.setTextColor(0, 0, 0);
|
| 1071 |
+
yPosition += 7;
|
| 1072 |
+
doc.text('20% + iva caparra confirmatoria per bloccare l\'offerta;', 20, yPosition);
|
| 1073 |
+
yPosition += 7;
|
| 1074 |
+
doc.text('30% + iva ad avviso configurazione macchina;', 20, yPosition);
|
| 1075 |
+
yPosition += 7;
|
| 1076 |
+
doc.text('30% + iva ad avviso merce pronta;', 20, yPosition);
|
| 1077 |
+
yPosition += 7;
|
| 1078 |
+
doc.text('Saldo + iva alla spedizione;', 20, yPosition);
|
| 1079 |
+
|
| 1080 |
+
// Dati per il bonifico
|
| 1081 |
+
yPosition += 15;
|
| 1082 |
+
doc.setFontSize(10);
|
| 1083 |
+
doc.setTextColor(153, 219, 74);
|
| 1084 |
+
doc.text('DATI PER IL BONIFICO DEL PRIMO ACCONTO:', 20, yPosition);
|
| 1085 |
+
doc.setFontSize(10);
|
| 1086 |
+
doc.setTextColor(0, 0, 0);
|
| 1087 |
+
yPosition += 7;
|
| 1088 |
+
doc.text('IBAN: IT14I0839961580000000144447', 20, yPosition);
|
| 1089 |
+
yPosition += 7;
|
| 1090 |
+
doc.text('Banca: Banca delle terre venete società cooperativa', 20, yPosition);
|
| 1091 |
+
yPosition += 7;
|
| 1092 |
+
doc.text('Intestato a: Finitech Srls', 20, yPosition);
|
| 1093 |
+
yPosition += 7;
|
| 1094 |
+
doc.text(`Causale: caparra confirmatoria Bravo-Jet ${stampante.value} + ragione sociale`, 20, yPosition);
|
| 1095 |
+
|
| 1096 |
+
// Signature line
|
| 1097 |
+
yPosition += 20;
|
| 1098 |
+
doc.setFontSize(10);
|
| 1099 |
+
doc.text('Pederobba, ' + formattedDate, 20, yPosition);
|
| 1100 |
+
doc.text('Per presa visione ed accettazione', 120, yPosition);
|
| 1101 |
+
doc.setDrawColor(0, 0, 0);
|
| 1102 |
+
doc.line(120, yPosition + 2, 190, yPosition + 2);
|
| 1103 |
+
doc.text('Firma _______________________________', 120, yPosition + 10);
|
| 1104 |
+
|
| 1105 |
+
// Increment the quote number for next time
|
| 1106 |
+
preventivoNumero++;
|
| 1107 |
+
|
| 1108 |
+
// Genera nome file
|
| 1109 |
+
const pdfName = `Offerta_Finitech_${nome}_${cognome}_${stampante.value.replace(/\s+/g, '_')}.pdf`;
|
| 1110 |
+
// Invia solo il PDF via email (senza scaricarlo)
|
| 1111 |
+
sendEmail(pdfName, doc.output('datauristring'), nome, cognome, email, stampante.value, totale);
|
| 1112 |
+
|
| 1113 |
+
// Show success message
|
| 1114 |
+
alert('Preventivo generato con successo! Una copia è stata inviata alla tua email e al nostro team commerciale');
|
| 1115 |
+
}
|
| 1116 |
+
|
| 1117 |
+
// Helper function to convert image to base64 with white background
|
| 1118 |
+
function getBase64Image(url) {
|
| 1119 |
+
return new Promise((resolve, reject) => {
|
| 1120 |
+
const img = new Image();
|
| 1121 |
+
img.crossOrigin = 'Anonymous';
|
| 1122 |
+
img.onload = () => {
|
| 1123 |
+
const canvas = document.createElement('canvas');
|
| 1124 |
+
canvas.width = img.naturalWidth;
|
| 1125 |
+
canvas.height = img.naturalHeight;
|
| 1126 |
+
const ctx = canvas.getContext('2d');
|
| 1127 |
+
// ✅ Sfondo bianco prima del disegno
|
| 1128 |
+
ctx.fillStyle = '#FFFFFF';
|
| 1129 |
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
| 1130 |
+
// ✅ Disegno immagine sopra lo sfondo
|
| 1131 |
+
ctx.drawImage(img, 0, 0);
|
| 1132 |
+
const dataURL = canvas.toDataURL('image/jpeg', 1.0);
|
| 1133 |
+
resolve(dataURL);
|
| 1134 |
+
};
|
| 1135 |
+
img.onerror = reject;
|
| 1136 |
+
img.src = url;
|
| 1137 |
+
});
|
| 1138 |
+
}
|
| 1139 |
+
|
| 1140 |
+
// Sending (in a real scenario, this would be a server-side call)
|
| 1141 |
+
function sendEmail(pdfName, pdfData, nome, cognome, email, stampante, totale) {
|
| 1142 |
+
// Log a console (puoi tenerli o rimuoverli)
|
| 1143 |
+
console.log(`Email inviata a: ${email} e a mail@finitech.it`);
|
| 1144 |
+
console.log(`Oggetto: Preventivo per ${stampante}`);
|
| 1145 |
+
console.log(`Corpo: Gentile ${nome} ${cognome},\n\nin allegato trovi il preventivo richiesto per la stampante ${stampante}.\n\nTotale: €${totale.toLocaleString('it-IT', {minimumFractionDigits: 2, maximumFractionDigits: 2})} + IVA\n\nCordiali saluti,\nIl team di Finitech`);
|
| 1146 |
+
console.log(`Allegato: ${pdfName}`);
|
| 1147 |
+
// Invio reale al backend
|
| 1148 |
+
fetch('/wp-json/finitech/v1/invia-pdf', {
|
| 1149 |
+
method: 'POST',
|
| 1150 |
+
headers: {
|
| 1151 |
+
'Content-Type': 'application/json'
|
| 1152 |
+
},
|
| 1153 |
+
body: JSON.stringify({
|
| 1154 |
+
filename: pdfName,
|
| 1155 |
+
filedata: pdfData,
|
| 1156 |
+
nome: nome,
|
| 1157 |
+
cognome: cognome,
|
| 1158 |
+
email: email,
|
| 1159 |
+
stampante: stampante,
|
| 1160 |
+
totale: totale
|
| 1161 |
+
})
|
| 1162 |
+
})
|
| 1163 |
+
.then(response => {
|
| 1164 |
+
if (!response.ok) {
|
| 1165 |
+
throw new Error("Errore durante l'invio al server");
|
| 1166 |
+
}
|
| 1167 |
+
return response.json();
|
| 1168 |
+
})
|
| 1169 |
+
.then(data => {
|
| 1170 |
+
if (data.success) {
|
| 1171 |
+
console.log('✅ Email inviata dal server!');
|
| 1172 |
+
} else {
|
| 1173 |
+
console.error('❌ Il server ha risposto con errore:', data);
|
| 1174 |
+
}
|
| 1175 |
+
})
|
| 1176 |
+
.catch(error => {
|
| 1177 |
+
console.error('⚠️ Errore nella richiesta al server:', error);
|
| 1178 |
+
});
|
| 1179 |
+
}
|
| 1180 |
+
|
| 1181 |
+
// Add event listeners to form fields
|
| 1182 |
+
document.querySelectorAll('input, select').forEach(element => {
|
| 1183 |
+
element.addEventListener('input', calcolaTotale);
|
| 1184 |
+
});
|
| 1185 |
+
</script>
|
| 1186 |
+
|
| 1187 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|