<script>
document.addEventListener("DOMContentLoaded", function() {
$('.js-filter').eq(2).addClass('d-none');
$('.js-filter').eq(3).addClass('d-none');
$('.js-filter-option').click(function(){
setTimeout(function(){
let containsShoes = false;
let containsJeansOrPants = 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
function getAirtableData(callback) { | |
const url = 'https://{-your-domain-}/v1/airtable/{your-application-id}/{your-airtable-base-id}/{your-airtable-table-name}/records'; | |
$.ajax({ | |
url: url, | |
type: 'POST', | |
dataType: 'json', | |
contentType: 'application/json; charset=utf-8', | |
data: JSON.stringify({ | |
sortResources: [ | |
], |
<script>
document.addEventListener("DOMContentLoaded", function() {
$('#sw-email-capture-submit-btn').unbind('click');
$('#sw-email-capture-submit-btn').click(function(event){
event.preventDefault();
const domain = window.location.host;
const searchValue = $('#sw-email-capture-email-input').val();
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> | |
document.addEventListener("DOMContentLoaded", function () { | |
$('#form1 .row div.col-12.col-md-4').addClass('text-right').addClass('order-1'); | |
}); | |
</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
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
const category = getUrlParam('category'); | |
if(category) { | |
const existCondition = setInterval(function() { | |
if ($('span[data-value="' + category.trim() + '"]').length) { | |
$('span[data-value="' + category.trim() + '"]').click(); | |
clearInterval(existCondition); | |
} | |
}, 100); |
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> | |
document.addEventListener("DOMContentLoaded", function () { | |
$.ajaxPrefilter(function(options, originalOptions, jqXHR) { | |
console.log(options); | |
if(options.url.includes('hooks.zapier.com')) { | |
const data = JSON.parse(originalOptions.data); | |
data['LOGGED_IN_USER_EMAIL'] = getUserEmail(); | |
options.data = JSON.stringify(data); | |
} | |
}); |
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> | |
document.addEventListener("DOMContentLoaded", function () { | |
const emailFieldName = 'email'; | |
const formId = 'form2'; | |
const userEmail = getUserEmail(); | |
$('#' + formId).append('<input class="sw-form-capture-element" id="sw-form-capture-Email" type="hidden" data-type="short_text" name="'+emailFieldName+'" value="'+userEmail+'">'); | |
$('#sw-form-capture-submit-btn').click(function() { |
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> | |
document.addEventListener("DOMContentLoaded", function () { | |
const forms = ['form1', 'form2', 'form3', 'form4']; | |
const emailFieldName = 'Email'; | |
const userEmail = getUserEmail(); | |
forms.forEach(form => { | |
$('#' + form).append('<input class="sw-form-capture-element" id="sw-form-capture-Email" type="hidden" data-type="short_text" name="'+emailFieldName+'" value="'+userEmail+'">'); |