diff options
| author | June McEnroe <june@causal.agency> | 2026-02-16 13:55:30 -0500 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2026-02-16 13:55:30 -0500 |
| commit | 39717a34c77437a572a5f7cb77198c628a051ee9 (patch) | |
| tree | d35ffce12f6e636848e8dc2553076fd1ba708bd1 | |
| parent | Select last used body (diff) | |
| download | src-39717a34c77437a572a5f7cb77198c628a051ee9.tar.gz src-39717a34c77437a572a5f7cb77198c628a051ee9.zip | |
| -rw-r--r-- | www/photo.causal.agency/trips.html | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/www/photo.causal.agency/trips.html b/www/photo.causal.agency/trips.html index 08f96e04..e81be6ef 100644 --- a/www/photo.causal.agency/trips.html +++ b/www/photo.causal.agency/trips.html @@ -47,13 +47,6 @@ input[type="number"] { width: 5ch; } </form> <datalist id="films"> - <option>Ferrania P30 80</option> - <option>Flic Film Elektra 100</option> - <option>Ilford FP4 Plus 125</option> - <option>Fomapan Creative 200</option> - <option>Harman Phoenix 200</option> - <option>Shanghai Color 400</option> - <option>Reflx Lab 800T</option> </datalist> </section> @@ -365,4 +358,16 @@ function addTrip() { setTripBody(); } +function setFilms() { + let datalist = document.getElementById("films"); + datalist.innerHTML = ""; + let films = new Set(trips.reverse().map(trip => trip.film)); + for (let film of films.values().take(20)) { + let option = document.createElement("option"); + option.innerText = film; + datalist.appendChild(option); + } +} +setFilms(); + </script> |