This file contains hidden or 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
$('#arrow-right').on('click', function() { $('.w-slider-arrow-right').click(); }); | |
$('#arrow-left').on('click', function() { $('.w-slider-arrow-left').click(); }); |
This file contains hidden or 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> | |
$('form').each(function(i, el) { | |
form = $(el); | |
form.submit(function(e) { | |
//stop the form from submitting | |
e.preventDefault(); | |
form = $(e.target); | |
//submit the form via ajax | |
$.ajax({ | |
method: "POST", |
This file contains hidden or 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
<?php | |
// Avoid Redirect | |
if ($_POST) { | |
// Email Variables | |
$origin = $_SERVER['HTTP_REFERER']; | |
$from = 'form'; | |
$to = 'email@domain.com'; | |
$cc = ''; |