View jquery.currencies.min.js
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
/* | |
* Cookie plugin | |
* | |
* Copyright (c) 2006 Klaus Hartl (stilbuero.de) | |
* Dual licensed under the MIT and GPL licenses: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
* | |
*/ |
View currency-picker.liquid
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
<span id="currencies"> | |
<span data-currency="{{ settings.default_currency }}" class="left">{{ settings.default_currency }}</span> | |
<span data-currency="{{ settings.second_currency }}" class="right">{{ settings.second_currency }}</span> | |
</span> | |
<style> | |
#currencies { | |
display: -moz-inline-stack; | |
display: inline-block; | |
zoom: 1; |
View currencies.liquid
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 settings.show_multiple_currencies %} | |
{{ "//cdn.shopify.com/s/javascripts/currencies.js" | script_tag }} | |
<script> | |
window.onload = function() { | |
Currency.format = '{{ settings.currency_format | default: 'money_with_currency_format' }}'; | |
var shopCurrency = '{{ shop.currency }}'; | |
/* Sometimes merchants change their shop currency, let's tell our JavaScript file */ | |
Currency.moneyFormats[shopCurrency].money_with_currency_format = {{ shop.money_with_currency_format | strip_html | json }}; |
View back-to-the-top.html
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
{% comment %} | |
Reduce below value if you need the back to the top button to appear higher up on the page. | |
That value is in pixels. | |
{% endcomment %} | |
{% assign vertical_offset_for_trigger = 300 %} | |
{% comment %} | |
Vertical offset from bottom of browser for the position of the button. | |
{% endcomment %} | |
{% assign position_from_bottom = '4em' %} | |
<a href="#" title="Back to the top" class="back-to-top"> |
View 0_reuse_code.js
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder