Go to file
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
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Add the contact page, containing a map with the company location 2023-10-06 21:21:00 +02:00
demo Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
deploy Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
pkg Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
po Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
revert Add the list of features for campsite type 2023-10-13 20:30:31 +02:00
test Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
verify Add the Catalonia’s Tourism Registry number to company 2023-10-14 21:59:36 +02:00
web Show the campsite type’s calendar in an “infinite scroll” carousel 2023-10-18 21:06:41 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Add the list of features for campsite type 2023-10-13 20:30:31 +02:00