camper/web/templates/public
jordi fita mas 96fb253354 Show the campsite type’s calendar in an “infinite scroll” carousel
Oriol does not want to waste so much vertical space for the calendar,
and wants it to show in a carousel, initially with only 6 months, and
loading the next three each time the user scrolls past the last.

I now use HTMx in the public page too for this auto-loading behavior,
based on their “infinite scroll” example[0].

Had to put the /calendar URI inside campsites because in the
calendar.gohtml i do not know the current type’s UUID, and can not use
a relative URL to “add subdirectories”, because the type does not end
with a slash.

Had to change season.CollectCalendar to expect the first month and a
number of months to show, to be able to load only 6 or 3 months after
the current, for the initial carousel content, or after the last month
of the carousel.

[0]: https://htmx.org/examples/infinite-scroll/
2023-10-18 21:06:41 +02:00
..
campsite Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
campground.gohtml Add the campground page 2023-10-06 22:14:11 +02:00
contact.gohtml Add the footer site map 2023-10-06 22:02:59 +02:00
form.gohtml Split templates and handlers into admin and public 2023-08-05 03:42:37 +02:00
home.gohtml Add the services page 2023-09-17 03:42:16 +02:00
layout.gohtml Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
page.gohtml Add the pages section 2023-08-08 20:09:57 +02:00
services.gohtml Add the services page 2023-09-17 03:42:16 +02:00
surroundings.gohtml Add the surroundings static page 2023-09-17 00:11:39 +02:00