Spaces:
Runtime error
Runtime error
dimanche 4 mai 17:30
Browse files- templates/index.html +41 -23
templates/index.html
CHANGED
|
@@ -178,42 +178,54 @@
|
|
| 178 |
<label for="linkedin" class="form-label">LinkedIn URL</label>
|
| 179 |
<input id="linkedin" type="url" class="form-control" placeholder="https://www.linkedin.com/in/…" required>
|
| 180 |
</div>
|
|
|
|
|
|
|
|
|
|
| 181 |
<div class="col-12">
|
| 182 |
-
<label for="aiModel" class="form-label">Generative
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
<option
|
| 194 |
-
<option>
|
| 195 |
-
<option>
|
| 196 |
-
<option
|
| 197 |
-
<option
|
| 198 |
-
<option
|
| 199 |
-
<option
|
| 200 |
-
<option
|
| 201 |
-
<option>
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
</div>
|
|
|
|
|
|
|
| 204 |
<div class="col-12">
|
| 205 |
<div class="form-check">
|
| 206 |
<input id="certCheck" class="form-check-input" type="checkbox" required>
|
| 207 |
<label class="form-check-label" for="certCheck">
|
| 208 |
I certify that the original image is my work and that the generated image was produced by the indicated generative AI, with the following prompt:
|
|
|
|
| 209 |
</label>
|
| 210 |
</div>
|
| 211 |
</div>
|
|
|
|
| 212 |
<div class="col-12">
|
| 213 |
<textarea id="promptText" class="form-control" rows="3" placeholder="Prompt" required></textarea>
|
| 214 |
</div>
|
| 215 |
</div>
|
| 216 |
</div>
|
|
|
|
| 217 |
<!-- modal footer -->
|
| 218 |
<div class="modal-footer">
|
| 219 |
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
|
|
@@ -362,7 +374,14 @@
|
|
| 362 |
pdf.setFont('helvetica','normal'); pdf.text('Occupation:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(certData.occupation,valueX,y); y+=28;
|
| 363 |
pdf.setFont('helvetica','normal'); pdf.text('City / State:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(`${certData.city}, ${certData.state}`,valueX,y); y+=28;
|
| 364 |
pdf.setFont('helvetica','normal'); pdf.text('LinkedIn:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(certData.linkedin,valueX,y); y+=40;
|
| 365 |
-
pdf.setFont('helvetica','normal'); pdf.text('Date:',labelX,y); pdf.setFont('helvetica','italic');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 366 |
const footer=pdf.splitTextToSize(`Fraud Score calculated by: ${window.location.href}`,usableW);
|
| 367 |
pdf.text(footer,margin,y);
|
| 368 |
window.open(pdf.output('bloburl'),'_blank');
|
|
@@ -372,4 +391,3 @@
|
|
| 372 |
</body>
|
| 373 |
</html>
|
| 374 |
|
| 375 |
-
|
|
|
|
| 178 |
<label for="linkedin" class="form-label">LinkedIn URL</label>
|
| 179 |
<input id="linkedin" type="url" class="form-control" placeholder="https://www.linkedin.com/in/…" required>
|
| 180 |
</div>
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
<!-- Generative AI (datalist + free text) -->
|
| 184 |
<div class="col-12">
|
| 185 |
+
<label for="aiModel" class="form-label">Generative AI</label>
|
| 186 |
+
|
| 187 |
+
<!-- l’utilisateur peut taper librement ou choisir dans la liste -->
|
| 188 |
+
<input
|
| 189 |
+
id="aiModel"
|
| 190 |
+
list="aiList"
|
| 191 |
+
class="form-control"
|
| 192 |
+
placeholder="Select or type…"
|
| 193 |
+
required
|
| 194 |
+
>
|
| 195 |
+
<datalist id="aiList">
|
| 196 |
+
<option value="Adobe Firefly Image Model 4">
|
| 197 |
+
<option value="Bing Image Creator">
|
| 198 |
+
<option value="Canva Magic Media">
|
| 199 |
+
<option value="DALL E GPT4o Image">
|
| 200 |
+
<option value="Flux (F LUX 1)">
|
| 201 |
+
<option value="Ideogram 30">
|
| 202 |
+
<option value="Leonardo AI Phoenix">
|
| 203 |
+
<option value="Microsoft Designer">
|
| 204 |
+
<option value="Midjourney v6">
|
| 205 |
+
<option value="NightCafe Creator">
|
| 206 |
+
<option value="Playground AI">
|
| 207 |
+
<option value="Runway Gen3 Alpha">
|
| 208 |
+
<option value="Stable Diffusion 3">
|
| 209 |
+
</datalist>
|
| 210 |
</div>
|
| 211 |
+
|
| 212 |
+
<!-- check box -->
|
| 213 |
<div class="col-12">
|
| 214 |
<div class="form-check">
|
| 215 |
<input id="certCheck" class="form-check-input" type="checkbox" required>
|
| 216 |
<label class="form-check-label" for="certCheck">
|
| 217 |
I certify that the original image is my work and that the generated image was produced by the indicated generative AI, with the following prompt:
|
| 218 |
+
<span class="text-danger ms-1" aria-hidden="true">*</span>
|
| 219 |
</label>
|
| 220 |
</div>
|
| 221 |
</div>
|
| 222 |
+
|
| 223 |
<div class="col-12">
|
| 224 |
<textarea id="promptText" class="form-control" rows="3" placeholder="Prompt" required></textarea>
|
| 225 |
</div>
|
| 226 |
</div>
|
| 227 |
</div>
|
| 228 |
+
|
| 229 |
<!-- modal footer -->
|
| 230 |
<div class="modal-footer">
|
| 231 |
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
|
|
|
|
| 374 |
pdf.setFont('helvetica','normal'); pdf.text('Occupation:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(certData.occupation,valueX,y); y+=28;
|
| 375 |
pdf.setFont('helvetica','normal'); pdf.text('City / State:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(`${certData.city}, ${certData.state}`,valueX,y); y+=28;
|
| 376 |
pdf.setFont('helvetica','normal'); pdf.text('LinkedIn:',labelX,y); pdf.setFont('helvetica','italic'); pdf.text(certData.linkedin,valueX,y); y+=40;
|
| 377 |
+
pdf.setFont('helvetica','normal'); pdf.text('Date:',labelX,y); pdf.setFont('helvetica','italic');
|
| 378 |
+
const usDate = new Date().toLocaleDateString('en-US', {
|
| 379 |
+
month: 'long', // e.g. “May”
|
| 380 |
+
day: 'numeric', // e.g. “4”
|
| 381 |
+
year: 'numeric' // e.g. “2025”
|
| 382 |
+
});
|
| 383 |
+
pdf.text(usDate, valueX, y);
|
| 384 |
+
y += 40;
|
| 385 |
const footer=pdf.splitTextToSize(`Fraud Score calculated by: ${window.location.href}`,usableW);
|
| 386 |
pdf.text(footer,margin,y);
|
| 387 |
window.open(pdf.output('bloburl'),'_blank');
|
|
|
|
| 391 |
</body>
|
| 392 |
</html>
|
| 393 |
|
|
|