This file contains 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
/* | |
* mediaquery function - test whether a CSS media type or query applies | |
* author: Scott Jehl | |
* Copyright (c) 2010 Filament Group, Inc | |
* MIT license | |
* Developed as a feature of the EnhanceJS Framework (enhancejs.googlecode.com) | |
* thx to: | |
- phpied.com/dynamic-script-and-style-elements-in-ie for inner css text trick | |
- @paul_irish for fakeBody trick | |
*/ |
This file contains 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 template == 'product' %} | |
{% assign mf = product.metafields.meta_description %} | |
{% unless mf == empty %} | |
{% for mf in product.metafields.meta_description %} | |
<meta name="Fubar2 Ronnie James Dio" content="{{mf.last}}" /> | |
{% endfor %} | |
{% endunless %} | |
{% endif %} |
This file contains 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
<script> | |
// (c) Copyright 2011 Caroline Schnapp. All Rights Reserved. Contact: [email protected] | |
// See http://wiki.shopify.com/Linked_Options | |
Shopify.optionsMap = {}; | |
Shopify.updateOptionsInSelector = function(selectorIndex) { | |
var key = jQuery('.single-option-selector:eq(0)').val(); | |
if (selectorIndex === 2) { | |
key += ' / ' + jQuery('.single-option-selector:eq(1)').val(); | |
} | |
var selector = jQuery('.single-option-selector:eq(' + selectorIndex + ')'); |
This file contains 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 cart.item_count > 0 %} | |
<script> | |
// Script that updates images on the cart page to show the correct thumbnail as chosen in the Variant Images app. | |
// This works with any markup. | |
// This works when using Line Item Properties where several items in the cart form can share the same variant ID. | |
// Author: Caroline Schnapp. | |
// Place at the top of your cart.liquid template. | |
(function($) { | |
var variantImages = {}, | |
productHandles = []; |
This file contains 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 (location.protocol !== "https:") { | |
location.protocol = 'https:'; | |
} |