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
| discounted_product = 1522083265 | |
| products_needed = [592406273, 4283854977, 4284984897] | |
| products_seen = [] | |
| Input.cart.line_items.each do |line_item| | |
| product = line_item.variant.product | |
| products_seen << product.id if products_needed.include?(product.id) | |
| end | |
| Input.cart.line_items.each do |line_item| |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
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
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalContent: '.js-ajax-cart-modal-content', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname | |
| cartDrawerTrigger: '.js-ajax-cart-drawer-trigger', // classname | |
| cartOverlay: '.js-ajax-cart-overlay', // classname | |
| cartCounter: '.js-ajax-cart-counter', // classname |
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
| /*! tinyColorPicker - v1.1.1 2016-08-30 */ | |
| !function(a,b){"object"==typeof exports?module.exports=b(a):"function"==typeof define&&define.amd?define("colors",[],function(){return b(a)}):a.Colors=b(a)}(this,function(a,b){"use strict";function c(a,c,d,f,g){if("string"==typeof c){var c=v.txt2color(c);d=c.type,p[d]=c[d],g=g!==b?g:c.alpha}else if(c)for(var h in c)a[d][h]=k(c[h]/l[d][h][1],0,1);return g!==b&&(a.alpha=k(+g,0,1)),e(d,f?a:b)}function d(a,b,c){var d=o.options.grey,e={};return e.RGB={r:a.r,g:a.g,b:a.b},e.rgb={r:b.r,g:b.g,b:b.b},e.alpha=c,e.equivalentGrey=n(d.r*a.r+d.g*a.g+d.b*a.b),e.rgbaMixBlack=i(b,{r:0,g:0,b:0},c,1),e.rgbaMixWhite=i(b,{r:1,g:1,b:1},c,1),e.rgbaMixBlack.luminance=h(e.rgbaMixBlack,!0),e.rgbaMixWhite.luminance=h(e.rgbaMixWhite,!0),o.options.customBG&&(e.rgbaMixCustom=i(b,o.options.customBG,c,1),e.rgbaMixCustom.luminance=h(e.rgbaMixCustom,!0),o.options.customBG.luminance=h(o.options.customBG,!0)),e}function e(a,b){var c,e,k,q=b||p,r=v,s=o.options,t=l,u=q.RND,w="",x="",y={hsl:"hsv",rgb:a},z |
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
| const PORT = 3000; | |
| const SECRET = 'APP_SHARED_SECRET'; | |
| var http = require('http'), | |
| crypto = require('crypto'), | |
| server; | |
| function verifyShopifyHook(req) { | |
| var digest = crypto.createHmac('SHA256', SECRET) | |
| .update(new Buffer(req.body, 'utf8')) |
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
| {% comment %} | |
| Source: https://gist.github.com/carolineschnapp/9122054 | |
| If you are not on a collection page, do define which collection to use in the order form. | |
| Use the following assign statement, replace 'your-collection-handle-here' with your collection handle. | |
| {% assign collection = collections.your-collection-handle-here %} | |
| Use the assign statement outside of this comment block at the top of your template. | |
| {% endcomment %} | |
| {% paginate collection.products by 100 %} |
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
| {% comment %} | |
| Input | |
| {% endcomment %}{% capture _content %}{{ content }}{% endcapture %}{% comment %} | |
| Remove redundant closing tags | |
| {% endcomment %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% for _element in _endings %} | |
| {% capture _end %}</{{ _element }}>{% endcapture %} |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Mutation Observers</title> | |
| <meta name="viewport" content="width=device-width"> | |
| <link rel="stylesheet" href="../video-pages/main.css"> | |
| </head> | |
| <body> | |
| <header> |
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
| def allow_in(gateway, allowed) | |
| if Input.cart.shipping_address and allowed.include?(Input.cart.shipping_address.country_code) | |
| Output.payment_gateways = Input.payment_gateways | |
| else | |
| Output.payment_gateways = Input.payment_gateways.delete_if do |payment_gateway| | |
| payment_gateway.name == gateway | |
| end | |
| end | |
| end |
NewerOlder