This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Outer part or a circle --> | |
<svg width="100" height="100" viewBox="0 0 215 215" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<path fill-rule="evenodd" clip-rule="evenodd" d="M214.5 214.5H0V0C0 118.465 96.0349 214.5 214.5 214.5Z" fill="black"/> | |
</svg> | |
<!-- Inner part of a circle (sector) --> | |
<svg height="100" width="100" viewBox="0 0 512 512" fill="#000" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M0,0v512h512C512,229.2,282.8,0,0,0z"/> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = new URL(window.location.href); | |
url.searchParams.set('view', 'upsell-bundle'); | |
ablyftTools.redirect(url.toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- comment -%} | |
https://www.npmjs.com/package/@adearriba/shopify-checkout?activeTab=code | |
{%- endcomment -%} | |
<script type="module" src="{{ 'shopify-checkout.js' | asset_url }}"></script> | |
<script> | |
import { $checkout } from './shopify-checkout.js'; | |
$checkout.on('load', (e) => { | |
console.log(e); | |
let discountNumberLineEl = document.querySelector('[data-checkout-discount-amount-target]'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var post; | |
// Call the API | |
fetch('https://jsonplaceholder.typicode.com/posts/5').then(function (response) { | |
if (response.ok) { | |
return response.json(); | |
} else { | |
return Promise.reject(response); | |
} | |
}).then(function (data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset class="filtersDropdown"> | |
<div class="filtersDropdownTrigger"> | |
Dropdown trigger | |
<div class="caret pointer-events-none"> | |
<svg class="pointer-events-none"><use xlink:href="#icon-angle-down"></use></svg> | |
</div> | |
</div> | |
<div class="dropdown-body"></div> | |
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- assign is_thank_you_page = false -%} | |
{%- if checkout_html_classes contains 'page--thank-you' -%} | |
{%- assign is_thank_you_page = true -%} | |
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ablyftTools.domLoaded(function(){ | |
document.documentElement.classList.add('ablyft-loaded'); | |
document.documentElement.classList.remove('no-ablyft'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
el.addEventListener('change', (e) => { | |
e.stopImmediatePropagation(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} Richtext output {% endcomment %} | |
{{ richtext | metafield_tag }} | |
{% comment %} File output {% endcomment %} | |
<video> | |
<source | |
src="{{ video | file_url }}" | |
type="video/mp4"> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% schema %} | |
{ | |
"name": "Section name", | |
"templates": ["product"], | |
"settings": [], | |
"presets": [ | |
{ | |
"category": "Text", | |
"name": "Section name", | |
"settings": {} |