most-jelly-15242
03/30/2021, 5:17 PMmost-jelly-15242
03/30/2021, 5:18 PMsparse-musician-64201
03/30/2021, 5:34 PMsparse-musician-64201
03/30/2021, 5:35 PMgorgeous-ghost-95789
03/30/2021, 5:36 PMhx-swap="beforeend" is doing, essentially appending an empty result to the end of the body. Maybe that's a case for an hx-swap="none" option.sparse-musician-64201
03/30/2021, 5:37 PMgorgeous-ghost-95789
03/30/2021, 5:38 PMsparse-musician-64201
03/30/2021, 5:39 PMgorgeous-ghost-95789
03/30/2021, 5:39 PMgorgeous-ghost-95789
03/30/2021, 5:41 PMsparse-musician-64201
03/30/2021, 5:41 PMsparse-musician-64201
03/30/2021, 5:42 PMsparse-musician-64201
03/30/2021, 5:42 PMsparse-musician-64201
03/30/2021, 5:42 PMsparse-musician-64201
03/30/2021, 5:43 PMmysterious-toddler-20573
03/30/2021, 5:48 PMon closeModal(event)
add .closing to #modal
if (not (no event.detail.nextPage))
set window.location to event.detail.nextPage
end
wait for animationend
remove #modal
end
not
on closeModal
add .closing to #modal
set the location of the window to
the nextPage of the event's detail
unless no nextPage of the event's detail
settle
remove #modal
end
šmysterious-toddler-20573
03/30/2021, 5:48 PMmysterious-toddler-20573
03/30/2021, 5:48 PMgorgeous-ghost-95789
03/30/2021, 5:48 PMmysterious-toddler-20573
03/30/2021, 5:49 PMon closeModal(nextPage)
add .closing to #modal
set the location of the window to
the nextPage unless no nextPage
settle
remove #modal
endmysterious-toddler-20573
03/30/2021, 5:49 PMmysterious-toddler-20573
03/30/2021, 5:49 PMmysterious-toddler-20573
03/30/2021, 5:49 PMmysterious-toddler-20573
03/30/2021, 5:49 PMgorgeous-airport-54386
03/30/2021, 5:50 PMon closeModal(nextPage) tell #modal
add .closing
set the location of the window to the nextPage
unless no nextPage
settle
removegorgeous-ghost-95789
03/30/2021, 5:50 PMsettle but there's a funny flash of the original modal at the end of the animation. I think it's because of the "wait a tick" logic included in settle. I could probably figure out how to update my CSS to accommodate this, but I haven't yet. So wait for animationend is still in there for now.gorgeous-ghost-95789
03/30/2021, 5:50 PMunless statement. Is that already in /dev?gorgeous-airport-54386
03/30/2021, 5:51 PMgorgeous-ghost-95789
03/30/2021, 5:51 PMgorgeous-ghost-95789
03/30/2021, 5:52 PM