Skip to content

Instantly share code, notes, and snippets.

View ixis-kyle's full-sized avatar

Kyle Petan ixis-kyle

View GitHub Profile
$('#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;
{% 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 %}