This file contains hidden or 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
find . -type f -empty |
This file contains hidden or 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
/** | |
* Web component to play and stop videos that are in viewport. | |
* Example usage: | |
* <video-observer class="block"> | |
{{ section.settings.video | video_tag: preload: "none", muted: true, autoplay: false, loop: true, playsinline: true, controls: false, image_size: '1440x', class: video_class }} | |
</video-observer> | |
*/ | |
class VideoObserver extends HTMLElement { | |
/** @type {HTMLVideoElement | null} */ |
This file contains hidden or 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
{% if settings.klaviyo_public_api_key != blank %} | |
{% # theme-check-disable %} | |
<script src="https://a.klaviyo.com/media/js/onsite/onsite.js"></script> | |
{% # theme-check-enable %} | |
<script> | |
var klaviyo = klaviyo || []; | |
klaviyo.init({ | |
account: "{{ settings.klaviyo_public_api_key }}", | |
{%- if settings.klaviyo_bis_list_id != blank %} | |
list: "{{ settings.klaviyo_bis_list_id }}", |
This file contains hidden or 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
{%- liquid | |
assign discount_percentage = product.compare_at_price | minus: product.price | times: 100.0 | divided_by: product.compare_at_price | round | abs | |
echo discount_percentage | |
-%} |
This file contains hidden or 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
/** | |
* GorgiasChatLoader | |
* @description Custom element to load Gorgias chat widget when the user clicks on it. | |
*/ | |
class GorgiasChatLoader extends HTMLElement { | |
constructor() { | |
super(); | |
this.bundleLoaderId = this.dataset.id; | |
if (!this.bundleLoaderId) { | |
this.hideLoadButton(); |