This commit is contained in:
giles 2024-10-04 13:51:06 +01:00
parent 78f4bb4838
commit 1e5fb41b49
1 changed files with 3 additions and 11 deletions

View File

@ -14,11 +14,8 @@
<div class="rose-ash">
<div
hx-get="shop/totals/"
hx-trigger="load delay:1ms, every 1s"
hx-swap="outerHTML"
hx-on::config-request="
event.detail.path += '?show=' + new URLSearchParams(window.location.search).get('show');
"
hx-trigger="load delay:500ms, every 30s"
hx-swap="outerHTML"
></div>
<div id="choice-configure"></div>
<div id="configure-rose-ash-shop"></div>
@ -46,12 +43,7 @@
<div
id="boot-rose-ash-shop"
hx-get="shop/choice/"
hx-trigger="load delay:1ms, every 1s"
hx-on::config-request= "
event.detail.path+= '?show=' + new URLSearchParams(window.location.search).get('show');
if (new URLSearchParams(window.location.search).get('orderId')) {
event.detail.path += '&orderId=' + new URLSearchParams(window.location.search).get('orderId');
}"
hx-trigger="load delay:500ms, every 30s"
hx-swap="none"
>
..