diff --git a/public/index.html b/public/index.html index b834071..06af4c1 100644 --- a/public/index.html +++ b/public/index.html @@ -24,6 +24,7 @@ display: flex; flex-wrap: wrap; gap: 30px; + justify-content: center; } .image-item { @@ -89,17 +90,6 @@ var imgEl = document.createElement('img'); imgEl.src = '/uploads/' + img.filename; imgEl.loading = 'lazy'; - var pressTimer; - imgEl.addEventListener('touchstart', function() { - pressTimer = setTimeout(function() { - var a = document.createElement('a'); - a.href = '/uploads/' + img.filename; - a.download = img.original_name || 'image.jpg'; - a.click(); - }, 1000); - }); - imgEl.addEventListener('touchend', function() { clearTimeout(pressTimer); }); - imgEl.addEventListener('touchmove', function() { clearTimeout(pressTimer); }); div.appendChild(imgEl); grid.appendChild(div); });