Skip to content

Instantly share code, notes, and snippets.

Avatar

Kyle Petan ixis-kyle

View GitHub Profile
View gist:c7280ea4cc7426b9d2d6b82f89caa70d
$('#contact-form').submit(function(e) {
console.log(321);
e.preventDefault();
var bad;
// email regular expression to validate email
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
// successful form fillout variable
// default is false - set ti false by default but if filled out correctly changes to true
var successfulSubmit = false;
View collection.liquid
{% for img in product.images %}
{% if img.src contains colorName %}
{% if img.src contains "rollover_1"%}
<img class="product_img_hover" src={{img.src | img_url: "480x480"}}>
{% elsif img.src contains "gallery_2" %}
<img class="product_img_hover" src={{img.src | img_url: "large"}}>
{% endif %}
{% endif %}
{% endfor %}
You can’t perform that action at this time.