One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
var scrolled = false; | |
$(window).scroll(scrollEvents); | |
function scrollEvents() { | |
scrolled = true; | |
} | |
setInterval(function() { | |
if(didScroll) { |
{ | |
"extends": ["wesbos"], | |
"rules": { | |
"no-console": 2, | |
"prettier/prettier": [ | |
"error", | |
{ | |
"trailingComma": "es5", | |
"singleQuote": true, | |
"printWidth": 120, |
var regexp = /[\xAE]/; | |
$('body :not(script,sup)').contents().filter(function() { | |
return this.nodeType === 3 && (regexp.test(this.nodeValue)); | |
}).replaceWith(function() { | |
return this.nodeValue.replace(regexp, '<sup>$&</sup>'); | |
}); |
A quick and dirty setup guide for "Slatifying" a Shopify theme for local development. Because I never remember this 💩.
config.yml
in the project root.config.yml
by adding your store’s credentials to the development
and production
environments.password: the password generated via a private app on this store. Access this information on your Shopify admin/apps/private page.
theme_id: the unique id for the theme you want to write to when deploying to this store. You can find this information in the URL of the theme’s online editor at Shopify admin/themes. Alternatively, you can use "live"
as shor
// MIT Licensed | |
// Author: jwilson8767 | |
/** | |
* Waits for an element satisfying selector to exist, then resolves promise with the element. | |
* Useful for resolving race conditions. | |
* | |
* @param selector | |
* @returns {Promise} | |
*/ |