Test Pricing js

document.addEventListener(“DOMContentLoaded”, () => { // Initialize drag and drop for filters initializeSortableFilters(); // Attach event listeners to locale links const localeLinks = document.querySelectorAll(‘#locales a’); localeLinks.forEach(link => { link.addEventListener(‘click’, handleLocaleLinkClick); }); // Populate the product table on initial load populateProductTable(); //…Continue reading

Tilt Effect JS

elem = document.getElementsByClassName(‘uk-background-norepeat’); window.addEventListener(‘deviceorientation’, function(e){ handler(e); }, false); function handler(e){ var width = window.outerWidth, rot = e.gamma / 1800, left = ( width / 2 ) * rot; elem[0].style.backgroundPosition = left + ‘px’; }Continue reading

Buttons Material Design JS

‘use strict’; var rippleEffect = function (e) { var target = e.target; var rect = target.getBoundingClientRect(); var ripple = target.querySelector(‘.ripple’); jQuery(ripple).remove(); ripple = document.createElement(‘span’); ripple.className = ‘ripple’; ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + ‘px’; target.appendChild(ripple); var top = e.pageY…Continue reading

Highlight Button on Scroll for Active Section on Vendor Pages

document.addEventListener(“DOMContentLoaded”, function() { var galleryButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-fadf404 .elementor-button”); var realWeddingsButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-5de19ff .elementor-button”); var faqButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-4cc0a6c .elementor-button”); var aboutButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-354b71e.elementor-element”); var locationsButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-9840650.elementor-element”); var specialtyButton = document.querySelector(“.elementor-81101 .elementor-element.elementor-element-dabc0f3.elementor-element”); var stickyMenu = document.querySelector(“.elementor-81101…Continue reading

JS [Elementor Templates > Vendor & Vendor Taxonomy Archives]: Show Search Facet on Search Icon Click

// document.addEventListener(‘DOMContentLoaded’, function() { var searchFacet = document.getElementById(‘search-facet’); var showSearchFacetBtn = document.getElementById(‘show-search-facet’); if (searchFacet) { searchFacet.style.display = ‘none’; } showSearchFacetBtn.addEventListener(‘click’, function() { if (searchFacet.style.display === ‘none’) { searchFacet.style.display = ‘block’; } else { searchFacet.style.display = ‘none’; } }); });Continue reading

Vendor (JS): Hide Empty Fields & Add Link Attributes on Vendor Post Pages

// Hide empty phone, specialty, social media, real wedding and FAQ elements document.addEventListener(‘DOMContentLoaded’, function() { var phoneField = document.getElementById(‘phone-field’); var phoneContainer = document.getElementById(‘phone-container’); var specialtyValue = document.getElementById(‘specialty-value’); var specialtySection = document.getElementById(‘specialty-section’); var specialtyButton = document.getElementById(‘specialty-button’); var socialIcons = document.querySelectorAll(‘.elementor-social-icon’); var…Continue reading

Hide Empty Fields & Add Link Attributes on Vendor Post Pages

// Hide empty phone, specialty, social media, real wedding and FAQ elements document.addEventListener(‘DOMContentLoaded’, function() { var phoneField = document.getElementById(‘phone-field’); var phoneContainer = document.getElementById(‘phone-container’); var specialtyValue = document.getElementById(‘specialty-value’); var specialtySection = document.getElementById(‘specialty-section’); var specialtyButton = document.getElementById(‘specialty-button’); var socialIcons = document.querySelectorAll(‘.elementor-social-icon’); var…Continue reading

Hide Empty Fields & Add Link Attributes on Vendor Post Pages

// Hide empty phone, specialty, social media, real wedding and FAQ elements document.addEventListener(‘DOMContentLoaded’, function() { var phoneField = document.getElementById(‘phone-field’); var phoneContainer = document.getElementById(‘phone-container’); var specialtyValue = document.getElementById(‘specialty-value’); var specialtySection = document.getElementById(‘specialty-section’); var specialtyButton = document.getElementById(‘specialty-button’); var socialIcons = document.querySelectorAll(‘.elementor-social-icon’); var…Continue reading