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
{% assign phone = shop.phone | split: '' %}{{ phone[0] }}{{ phone[1] }}{{ phone[2] }}-{{ phone[3] }}{{ phone[4] }}{{ phone[5] }}-{{ phone[6] }}{{ phone[7] }}{{ phone[8] }}{{ phone[9] }} |
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
{% unless product.available %} | |
<div id="sold-out"> | |
{% form 'contact' %} | |
{% if form.posted_successfully? %} | |
<p class="accent-text">Thanks! We will notify you when this product becomes available!</p> | |
{% else %} | |
<p>Click <a id="notify-me" href="#">here</a> to be notified by email when {{ product.title }} becomes available.</p> | |
{% endif %} | |
{% if form.errors %} | |
<div class="error feedback accent-text"> |
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
/* jQuery Dropdown */ | |
var timeout=500;var closetimer=0;var ddmenuitem=0;function jsddm_open(){jsddm_canceltimer();jsddm_close();ddmenuitem=$(this).find("ul").eq(0).css("visibility","visible")}function jsddm_close(){if(ddmenuitem){ddmenuitem.css("visibility","hidden")}}function jsddm_timer(){closetimer=window.setTimeout(jsddm_close,timeout)}function jsddm_canceltimer(){if(closetimer){window.clearTimeout(closetimer);closetimer=null}} | |
$(document).ready(function(){ | |
$("ul.drop > li").bind("mouseover",jsddm_open); | |
$("ul.drop > li").bind("mouseout",jsddm_timer); | |
if(!!('ontouchstart' in window)){//check for touch device | |
$("ul.drop > li").unbind('click mouseover mouseout'); | |
$("ul.drop > li").bind("click", function() { | |
if ($(this).find("ul").eq(0).css("visibility") == "hidden") { |
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
$('#note').bind('keypress', function (event) { | |
var regex = new RegExp("^[a-zA-Z0-9]+$"); | |
var key = String.fromCharCode(!event.charCode ? event.which : event.charCode); | |
if (!regex.test(key)) { | |
event.preventDefault(); | |
return false; | |
} | |
}); |
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> | |
jQuery(document).ready(function($) { | |
jQuery("body a[href^='http://'], a[href^='https://']").attr("target","_blank"); | |
}); | |
</script> |
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 article.content contains '<img' %} | |
{% assign src = article.content | split: 'src="' %} | |
{% assign src = src[1] | split: '"' | first | replace: '//cdn', 'http://cdn' | replace: 'http:http://', 'http://' %} | |
<img src="{{ src }}" /> | |
{% 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
<!-- in collection-nav.liquid, replace this for loop code --> | |
{% for link in linklists.[settings.linklist_collections].links %} | |
<li class="collection{% if settings.show_collection_tags and link.object.all_tags.size > 0 %} dropdown{% endif %}"> | |
<a href="{{ link.url }}"{% if link.active %} class="current"{% endif %}>{{ link.title | escape }}</a> | |
{% capture child_list_handle %}{{ link.title | handleize }}{% endcapture %} | |
{% if linklists[child_list_handle] and linklists[child_list_handle].links.size > 0 %} | |
<ul class="collection-tags"> | |
{% for l in linklists[child_list_handle].links %} | |
<li><a href="{{ l.url }}">{{ l.title | escape }}</a></li> |
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
{% for link in linklists.main-menu.links %} | |
{% assign child_list_handle = link.title | handleize %} | |
{% if linklists[child_list_handle].links != blank %} | |
<option value="{{ link.url }}">{{ link.title | escape }}</option> | |
{% for childlink in linklists[child_list_handle].links %} | |
<option value="{{ childlink.url }}"> - {{ childlink.title | escape }}</option> | |
{% endfor %} | |
{% else %} | |
<option value="{{ link.url }}">{{ link.title | escape }}</option> | |
{% 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
<div class="wrap"> | |
<div class="row"> | |
<h1>Responsive Hover Descriptions</h1> | |
</div> | |
<div class="row"> | |
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
<div class="wrap"> | |
<div class="row"> | |
<h1>Responsive Hover Descriptions</h1> | |
</div> | |
<div class="row"> | |
NewerOlder