Type: js
WPBakery Collapse All Rows
(function($) { ‘use strict’; /** * WP Bakery – Collapse / Expand All Rows (v3) * Fixed: injects buttons into the correct visible navbar list position * Fixed: iterates ROWS not individual toggles (avoids multi-click cancellation) */ function getFirstToggle(rowEl) {…Continue reading
2026 Givelos Give Back
window.bboxInit = function () { bbox.showForm(‘2952a4ba-be77-4303-bea9-bcb849127865’); }; (function () { var e = document.createElement(‘script’); e.async = true; e.src = ‘https://bbox.blackbaudhosting.com/webforms/bbox-min.js’; document.getElementsByTagName(‘head’)[0].appendChild(e); } ());Continue reading
what代码
Property Type Conditional Search Fields
jQuery(document).ready(function($) { // ============================================ // FIELD VISIBILITY BASED ON PROPERTY TYPE // ============================================ // All conditional field labels (must match your “Label on Front End” exactly) var allConditionalFields = [ ‘BHK Type’, ‘Furnished Status’, ‘Status’, ‘Min Area (sqft)’, ‘Max Area…Continue reading
ANDRITZ Navigation Panels
document.addEventListener(“DOMContentLoaded”, function () { const triggers = document.querySelectorAll(“.bp-andritz-utility”); const panels = document.querySelectorAll(“.bp-andritz-panel”); const closes = document.querySelectorAll(“.bp-andritz-close”); const backs = document.querySelectorAll(“.bp-andritz-back”); function closeAllPanels(){ panels.forEach(panel => panel.classList.remove(“bp-open”)); document.body.classList.remove(“bp-andritz-active”); } triggers.forEach(trigger=>{ trigger.addEventListener(“click”,function(){ const target = document.getElementById(this.dataset.target); const isOpen = target && target.classList.contains(“bp-open”); closeAllPanels();…Continue reading
VWOTG Trophy Frontend JS
document.addEventListener(‘wpformsReady’, function() { const trophyFieldIds = [20,68,74,53,70,75,54,69,76,55,71,77,66,72,78]; function updateTrophyState() { let remainingCount = 0; trophyFieldIds.forEach(function(fieldId) { const select = document.querySelector(‘#wpforms-40473-field_’ + fieldId); if (!select) return; Array.from(select.options).forEach(function(opt) { const label = opt.textContent || ”; const isUnavailable = label.includes(‘— Unavailable’); if (isUnavailable)…Continue reading
RD Theme Button Smooth Anchor Scroll without Reload
(function () { ‘use strict’; var cancelScroll = null; document.addEventListener(‘click’, function (e) { var trigger = e.target.closest(‘[data-rd-scroll-target]’); var target, frameId, startedAt, lastFrameAt, headerNodes; var headerOffset = 0; var lastHeaderCheck = -Infinity; var scrollRoot = document.scrollingElement || document.documentElement; if (!trigger) return;…Continue reading
Hide RD Theme Woo Additional Order Info Wrapping Column when No Additional Order Info Present
(function () { function rdToggleAdditionalOrderInfoColumn() { var container = document.getElementById(‘rd-additional-order-info’); if (!container) { return; } if (!container.querySelector(‘.awb-woo-order-additional-info’)) { container.style.display = ‘none’; } } if (document.readyState === ‘loading’) { document.addEventListener(‘DOMContentLoaded’, rdToggleAdditionalOrderInfoColumn); } else { rdToggleAdditionalOrderInfoColumn(); } })();Continue reading