edition/partials/shop/top.hbs

36 lines
1.1 KiB
Handlebars
Raw Normal View History

2024-09-25 03:09:38 +00:00
<div style="font-size:2em">
2024-09-26 18:44:56 +00:00
<div
hx-get="shop/totals/"
hx-trigger="load delay:1ms"
hx-on::config-request="
event.detail.path = !(
new URLSearchParams(window.location.search
).get('order'))
? 'shop/totals/'
: 'shop/totals/?orderId=' + new URLSearchParams(window.location.search).get('order');
"
hx-swap="outerHTML"
></div>
<div
id="order-form-rose-ash-shop"
hx-get="shop/order"
hx-swap="outerHTML"
hx-trigger="every 1s"
hx-on::config-request="event.detail.path += window.location.search;"
>
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!--
<div
id="order-detail-rose-ash-shop"
hx-get="shop/order"
hx-trigger="load delay:1ms"
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('orderId') ? 'shop/order/' + new URLSearchParams(window.location.search).get('orderId')+ '/' : null; "
hx-on::confirm=" if (!new URLSearchParams(window.location.search).get('orderId')) { event.preventDefault(); }"
hx-swap="innerHTML"
>
</div>
-->
</div>