hbs
This commit is contained in:
parent
72aee58d4e
commit
3a4780915d
|
@ -42,12 +42,12 @@
|
||||||
</header>
|
</header>
|
||||||
{{/match}}
|
{{/match}}
|
||||||
|
|
||||||
<div class="single-content gh-content gh-canvas ">
|
<div class="single-content gh-content gh-canvas">
|
||||||
{{content}}
|
{{content}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#is "post"}}
|
{{#is "post"}}
|
||||||
<div class="kg-width-{{width}}">
|
<div class="single-content gh-content gh-canvas kg-width-{{width}}">
|
||||||
{{> "shop/top"}}
|
{{> "shop/top"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -95,7 +95,9 @@
|
||||||
{{/next_post}}
|
{{/next_post}}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
{{> "shop/configure-product"}}
|
{{#is "post"}}
|
||||||
|
{{> "shop/configure-product"}}
|
||||||
|
{{/is}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{/is}}
|
{{/is}}
|
||||||
|
|
|
@ -1,48 +1,36 @@
|
||||||
<div style="font-size:2em">
|
<div style="font-size:2em">
|
||||||
<div
|
<div
|
||||||
hx-get="shop/totals/"
|
hx-get="shop/totals/"
|
||||||
hx-trigger="load delay:1ms"
|
hx-trigger="load delay:1ms"
|
||||||
hx-on::config-request = "
|
hx-on::config-request="
|
||||||
event.detail.path = !(
|
event.detail.path = !(
|
||||||
new URLSearchParams(window.location.search
|
new URLSearchParams(window.location.search
|
||||||
).get('order'))
|
).get('order'))
|
||||||
? 'shop/totals/'
|
? 'shop/totals/'
|
||||||
: 'shop/totals/?orderId=' + new URLSearchParams(window.location.search).get('order');
|
: 'shop/totals/?orderId=' + new URLSearchParams(window.location.search).get('order');
|
||||||
";
|
"
|
||||||
|
hx-swap="outerHTML"
|
||||||
hx-swap="outerHTML"
|
></div>
|
||||||
></div>
|
<div
|
||||||
<div
|
id="order-form-rose-ash-shop"
|
||||||
id="order-form-rose-ash-shop"
|
hx-get="shop/order"
|
||||||
hx-get="shop/order"
|
hx-swap="outerHTML"
|
||||||
hx-swap="outerHTML"
|
hx-trigger="every 1s"
|
||||||
|
hx-on::config-request="event.detail.path += window.location.search;"
|
||||||
hx-trigger="load delay:1ms"
|
>
|
||||||
hx-target="#order-form-rose-ash-shop"
|
<div class="spinner-border" role="status">
|
||||||
hx-on::config-request="event.detail.path += window.location.search;"
|
<span class="sr-only">Loading...</span>
|
||||||
hx-on::confirm="
|
</div>
|
||||||
console.log(window.location.search)
|
</div>
|
||||||
console.log('checking...')
|
<!--
|
||||||
if (false && new URLSearchParams(window.location.search).get('show') !== 'buy') {
|
<div
|
||||||
event.preventDefault();
|
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; "
|
||||||
<div class="spinner-border" role="status">
|
hx-on::confirm=" if (!new URLSearchParams(window.location.search).get('orderId')) { event.preventDefault(); }"
|
||||||
<span class="sr-only">Loading...</span>
|
hx-swap="innerHTML"
|
||||||
</div>
|
>
|
||||||
</div>
|
</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>
|
|
Loading…
Reference in New Issue