This commit is contained in:
giles 2024-09-27 23:38:08 +01:00
parent fa0f62e221
commit 018e9301ef
2 changed files with 36 additions and 20 deletions

View File

@ -1,2 +1,5 @@
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
<div
id="configure-rose-ash-shop"
>
</div>

View File

@ -1,7 +1,7 @@
<div>
<div
hx-get="shop/totals/"
hx-trigger="every 1ms"
hx-trigger="every 1s"
hx-on::config-request="
event.detail.path = !(
new URLSearchParams(window.location.search
@ -13,23 +13,7 @@
></div>
<div
id="order-form-rose-ash-shop"
hx-get="shop/order"
hx-swap="outerHTML"
hx-trigger="every 1s"
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...')
if (false && new URLSearchParams(window.location.search).get('show') !== 'buy') {
event.preventDefault();
}
"
>
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
></div>
<div
id="order-detail-rose-ash-shop"
@ -40,4 +24,33 @@
hx-swap="outerHTML"
>
</div>
<div
id="choice-all"
>div</div>
<div
id="choice-me"
></div>
<div
id="choice-buy"
></div>
<div
id="choice-configure"
></div>
<div
id="order-detail-rose-ash-shop"
hx-get="choice/"
hx-trigger="every 1s"
hx-on::config-request=" event.detail.path+= '?show=' + new URLSearchParams(window.location.search).get('show'); //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
hx-swap="outerHTML"
>
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>