edition/partials/shop/top.hbs

49 lines
1.8 KiB
Handlebars
Raw Normal View History

2024-09-25 03:09:38 +00:00
<div style="font-size:2em">
2024-09-23 08:17:10 +00:00
<div
2024-09-23 08:29:37 +00:00
hx-get="shop/totals/"
2024-09-23 08:19:17 +00:00
hx-trigger="load delay:1ms"
2024-09-23 17:57:37 +00:00
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');
";
2024-09-23 08:17:10 +00:00
hx-swap="outerHTML"
></div>
2024-09-22 12:33:37 +00:00
<div
id="order-form-rose-ash-shop"
2024-09-24 10:04:57 +00:00
hx-get="shop/order"
2024-09-22 12:33:37 +00:00
hx-swap="outerHTML"
2024-09-24 09:57:19 +00:00
hx-trigger="load delay:1ms"
hx-target="#order-form-rose-ash-shop"
hx-on::config-request="event.detail.path += window.location.search;"
hx-on::confirm="
console.log(window.location.search)
console.log('checking...')
2024-09-24 10:00:34 +00:00
if (false && new URLSearchParams(window.location.search).get('show') !== 'buy') {
2024-09-24 09:57:19 +00:00
event.preventDefault();
}
"
2024-09-22 12:33:37 +00:00
>
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
2024-09-24 15:51:21 +00:00
2024-09-22 12:33:37 +00:00
<div
2024-09-24 15:51:21 +00:00
id="order-detail-rose-ash-shop"
hx-get="shop/order"
hx-trigger="load delay:1ms"
2024-09-24 18:15:12 +00:00
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('orderId') ? 'shop/order/' + new URLSearchParams(window.location.search).get('orderId')+ '/' : null; "
2024-09-24 15:53:50 +00:00
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('orderId')) { event.preventDefault(); }"
2024-09-24 15:51:21 +00:00
hx-swap="innerHTML"
2024-09-22 12:33:37 +00:00
>
</div>
2024-09-25 03:07:39 +00:00
</div>