Skip to content

Instantly share code, notes, and snippets.

tairli

Block or report user

Report or block tairli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tairli
tairli / index.html
Created Dec 9, 2019 — forked from khoata/index.html
Shopify API filter for product prices
View index.html
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>Shopify filtering Boilerplate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="_assets/css/style.css">
</head>
<body>
@tairli
tairli / clickable-element.html
Last active Dec 9, 2019 — forked from scottmagdalein/clickable-element.html
Make the Mailchimp Subscriber popup appear on click
View clickable-element.html
<!-- This is the HTML element that, when clicked, will cause the popup to appear. -->
<button id="open-popup">Subscribe to our mailing list</button>
@tairli
tairli / t_sticky.js
Last active May 7, 2018
Add to the very bottom of the theme.js.liquid to hide an element when scrolled lower than threshold, for example hide fixed header
View t_sticky.js
var t_sticky = {
monitor: function() {
if( !this.waiting ) {
setTimeout( this.check.bind(this), 250 );
this.waiting = true;
}
},
check: function() {
var val = this.$html.scrollTop() > this.at ? 0 : 1;
if( this.is_on != val ) {
@tairli
tairli / tabbed-description.liquid
Last active Mar 1, 2020
Tabbed Product description snippet for Shopify
View tabbed-description.liquid
{% comment %}
if combine_pretext is false, the text before the first <h6> will be shown above all tabs, otherwise added to the first tab
{% endcomment %}
{% assign combine_pretext = false %}
{% assign description = tabbed-description | default: product.description %}
{% if description contains "<h6>" %}
{% assign tab_heads = '' %}
{% assign tab_texts = '' %}
{% assign pretext = '' %}
You can’t perform that action at this time.