From 6bf66bb291daa4cb924185231e67ecaccf250337 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 30 Oct 2026 09:02:20 +0100 Subject: examples: modernize gipfelweb — responsive, dark/light, one page per panorama MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - markers positioned in percent of the slide (identify reads the dimensions), so the panorama scales with the viewport; a CSS-only 'Full resolution' checkbox switches to natural size with horizontal scrolling - peaks and photos now share one page; chip-style checkboxes toggle Peaks / Photos / Labels / Full resolution (pure CSS sibling selectors, no JavaScript) - interaction for all input types: hover (mouse), :focus-within (keyboard, markers are anchors), :target (touch, tap to open a popup); popups get below/left/right classes from the generator so they never leave the image - labels show distance (the data always had it): NAME · 2849 m · 12.3 km - new gallery index.html (thumbnail grid), dark/light via prefers-color-scheme, system font stack, lazy thumbnails, aria labels, viewport meta; stylesheet is a single external style.css - backlink updated to flpsed.org/gipfel.html - gipfel2html: LC_ALL=C (awk decimal separator), no pipe-subshell marker loops (counter must survive), exact cross-reference matching The old two-page (images/hills) split is gone; the hills view is the Peaks toggle now. --- examples/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile index ac44fb7..668f1f2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -26,13 +26,12 @@ positions := $(addprefix gipfelweb/gipfel/, $(addsuffix .pos, $(basename $(image imgpos := $(addprefix gipfelweb/gipfel/, $(addsuffix .imgs, $(basename $(images)))) hillpos := $(addprefix gipfelweb/gipfel/, $(addsuffix .hills, $(basename $(images)))) html := $(addprefix gipfelweb/, $(addsuffix .html, $(basename $(images)))) -htmlhills := $(addprefix gipfelweb/hills/, $(addsuffix .html, $(basename $(images)))) all: echo "make gipfelweb - create a HTML based view of gipfel oriented" echo "images in the current directory." -gipfelweb: dirs $(slides) $(thumbs) $(imgpos) $(hillpos) $(html) $(htmlhills) +gipfelweb: dirs style $(slides) $(thumbs) $(imgpos) $(hillpos) $(html) gipfelweb/index.html clean: rm -rf gipfelweb/gipfel @@ -43,9 +42,13 @@ clobber: dirs: mkdir -p gipfelweb/slides mkdir -p gipfelweb/thumbs - mkdir -p gipfelweb/hills mkdir -p gipfelweb/gipfel +style: gipfelweb/style.css + +gipfelweb/style.css: $(here)style.css + cp $< $@ + gipfelweb/slides/%.jpg: %.jpg convert $< -filter Lanczos -resize 20000x500\> -quality 94 $@ @@ -70,14 +73,11 @@ gipfelweb/gipfel/%.hills: gipfelweb/slides/%.jpg gipfelweb/gipfel/index.gipfel: $(positions) cat $(positions) > gipfelweb/gipfel/index.gipfel -gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs %.title $(thumbs) - $(GIPFEL2HTML) images "`cat $*.title`" $* > $@ - -gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs $(thumbs) - $(GIPFEL2HTML) images $* $* > $@ +gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs gipfelweb/gipfel/%.hills %.title $(thumbs) gipfelweb/style.css + $(GIPFEL2HTML) page $* > $@ -gipfelweb/hills/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.hills %.title - $(GIPFEL2HTML) hills "`cat $*.title`" $* > $@ +gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs gipfelweb/gipfel/%.hills $(thumbs) gipfelweb/style.css + $(GIPFEL2HTML) page $* > $@ -gipfelweb/hills/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.hills - $(GIPFEL2HTML) hills $* $* > $@ +gipfelweb/index.html: $(thumbs) $(html) + $(GIPFEL2HTML) gallery $(basename $(images)) > $@ -- cgit v1.2.3