From 672d67e6c6b5186e6e8526fce1c7b5f0a49fe736 Mon Sep 17 00:00:00 2001
From: Connor Slade
Date: Wed, 1 May 2024 18:54:52 -0400
Subject: [PATCH] Fix broken download links
---
web/index.css | 1 +
web/index.html | 3 ++-
web/index.js | 4 ++--
web/index.scss | 1 +
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/web/index.css b/web/index.css
index 6953d5d..cc236e9 100644
--- a/web/index.css
+++ b/web/index.css
@@ -14,6 +14,7 @@ hr {
margin-bottom: 1em;
padding: 0.5em;
width: 400px;
+ height: 272.5px;
}
[image] [foot] {
max-width: 400px;
diff --git a/web/index.html b/web/index.html
index f59ccc1..7f60cf0 100644
--- a/web/index.html
+++ b/web/index.html
@@ -14,8 +14,9 @@ OFFIMG Gallery
Swissmicros Fourm. Created by
Connor Slade, source code is on
Github
- here.
+ here.
You can download a zip of all the images here.
+ Updates monthly.
diff --git a/web/index.js b/web/index.js
index 11c0be4..65185ed 100644
--- a/web/index.js
+++ b/web/index.js
@@ -46,10 +46,10 @@ fetch(`${OFFIMG_PATH}/info.json`)
if (i.alt) info.innerHTML += ` • ${i.alt}`;
let download = document.createElement("a");
- download.href = `${OFFIMG_PATH}/${i.id}.bmp`;
+ download.href = `${OFFIMG_PATH}/${i.uuid}.bmp`;
download.innerHTML = `⇓`;
if (i.alt) download.download = `${i.alt}${i.alt.endsWith(".bmp") ? "" : ".bmp"}`;
- else download.download = `${i.id}.bmp`;
+ else download.download = `${i.uuid}.bmp`;
foot.appendChild(info);
foot.appendChild(download);
diff --git a/web/index.scss b/web/index.scss
index 11ed119..7aa5deb 100644
--- a/web/index.scss
+++ b/web/index.scss
@@ -14,6 +14,7 @@ hr {
margin-bottom: 1em;
padding: 0.5em;
width: 400px;
+ height: 272.5px;
& [foot] {
max-width: 400px;