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
<div itemscope itemtype="http://schema.org/Product" id="ProductSection" data-section-id="{{ section.id }}" data-section-type="product-template" data-image-zoom-type="{{ section.settings.product_image_zoom_type }}" data-show-extra-tab="{{ section.settings.show_extra_tab }}" data-extra-tab-content="{{ section.settings.extra_tab_content }}" data-enable-history-state="true"> | |
{% case section.settings.add_to_cart_width %} | |
{% when 'small' %} | |
{%- assign btn_class = 'btn--wide' -%} | |
{%- assign productform_class = 'product-form--wide' -%} | |
{% when 'medium' %} | |
{%- assign btn_class = 'btn--wide' -%} | |
{%- assign productform_class = 'product-form--wide' -%} | |
{% when 'large' %} |
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
{{ 'option_selection.js' | shopify_asset_url | script_tag }} | |
<script> | |
// <![CDATA[ | |
var selectCallback = function(variant, selector) { | |
if (variant) { | |
if (variant.available) { | |
// Selected a valid variant that is available. | |
$('#add-to-cart-button').removeClass('disabled').removeAttr('disabled').html('Add to Cart'); | |
} else { |
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
import * as React from "react"; | |
import { useMousePosition } from "~/hooks/useMousePosition"; | |
/** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
const [mouseX, mouseY] = useMousePosition(); | |
const positions = { x, y, h, w, mouseX, mouseY }; | |
return ( | |
<div |
Simple floating CSS animation using transform and box-shadow.
A Pen by Joseph Martinez on CodePen.
- https://fishshell.com/ - my default shell, i use theme bobthefish
- https://www.sublimetext.com/ - my default editor
- Material Theme
- Operator font
- Packages: Emmet, Hayaku, SidebarEnhancements, JS Snippets, GSAP Snippets
- Sublime snippet for comments
- Sublime icon
- https://code.visualstudio.com/ - trying to switch, but not yet
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
{%- layout none -%} | |
{%- paginate search.results by 6 -%} | |
{%- capture products_output -%} | |
{%- for result in search.results -%} | |
{%- if result.object_type == 'product' -%} | |
,{"title":{{ result.title | json }},"url":{{ result.url | json }} | |
{%- if result.images and result.images.size > 0 -%} | |
,"image":{{ result.images[0] | img_url: 'master' | json }} | |
{%- endif -%} | |
,"vendor":{{ result.vendor | json }},"price_max":{{ result.price_max }},"price_min":{{ result.price_min }},"compare_at_price_min":{{ result.compare_at_price_min }}} |