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
$('#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; |
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 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 %} |