Add link to Select images and skip basename in urls

This commit is contained in:
Balakrishnan Balasubramanian 2024-08-09 00:12:31 -04:00
parent efda3b72b8
commit c009c01a3f
2 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@ function gotoCollage() {
for (const img of selectedPhotos) { for (const img of selectedPhotos) {
if (!img.src.endsWith("stock.svg")) { if (!img.src.endsWith("stock.svg")) {
photoUrls.push(img.src) photoUrls.push((new URL(img.src)).pathname)
} }
} }
const encodedURLS = encodeURIComponent(JSON.stringify(photoUrls)) const encodedURLS = encodeURIComponent(JSON.stringify(photoUrls))

View File

@ -12,6 +12,7 @@
<div class="container"> <div class="container">
<div class="controls"> <div class="controls">
<p><a href="choose.html">Select Images</a></p>
<label> <label>
<span>Paper size</span> <span>Paper size</span>