camper/web/static
jordi fita mas 5a16fa44a6 Change media picker from <div> to <dialog> and make it modal
Have to call Dialog.showModal when HTMx loaded the dialog in the DOM,
so had to add a onLoad event listened that checks whether the loaded
element is actually a DIALOG.

Had to restrict the margin: 0 for all elements (*) to exclude dialog,
because the browser sets it to auto, and i did not want to set it again
just because i was too overzealous with my “reset”.

The rest of the CSS is just to have a sticky header and footer, and see
the cancel button, that works as a “close”, all the time.

Finally, i realized that if i add the dialog at the end of the fieldset
and let HTMx inherit its hx-target and hx-swap, i no longer need to set
them in the dialog, as HTMx will always replace the fieldset, and i can
have the dialog side by side the current content of the fieldset, that
it was very confusing seeing it disappear when trying to select a new
media.

The cancel button could now just remove the dialog instead of making the
POST, but in local it makes no difference; we’lls see what happens on
production.
2023-09-22 02:11:03 +02:00
..
ckeditor5@39.0.1 Go back to WYSIWYG for campsite types’ description and remove pages 2023-08-12 05:41:34 +02:00
fonts Add the first test for the front end design 2023-09-05 04:40:48 +02:00
images Add the surroundings static page 2023-09-17 00:11:39 +02:00
camper.css Change media picker from <div> to <dialog> and make it modal 2023-09-22 02:11:03 +02:00
camper.js Change media picker from <div> to <dialog> and make it modal 2023-09-22 02:11:03 +02:00
default_avatar.svg Add profile form, inside a user menu 2023-07-26 20:46:09 +02:00
favicon.ico Add favicon 2023-07-26 18:59:17 +02:00
htmx@1.9.3.min.js Add the logout button 2023-07-26 13:49:47 +02:00
jquery@3.7.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00
public.css Add the services page 2023-09-17 03:42:16 +02:00
slick@1.8.1.css Add the first test for the front end design 2023-09-05 04:40:48 +02:00
slick@1.8.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00