Rank Math FAQ Accordions

jQuery(document).ready(function($) { function initAccessibleFaq(context) { $(context).find(‘#rank-math-faq’).each(function() { var $faqBlock = $(this); $faqBlock.find(‘div.rank-math-list-item’).each(function(index) { var $item = $(this); if ($item.data(‘faq-initialized’)) return; // Verhindert doppeltes Binden var $question = $item.find(‘.rank-math-question’).first(); var $answer = $item.find(‘.rank-math-answer’).first(); var questionId = ‘rm-faq-q-‘ + index + ‘-‘…Continue reading

External database table- Bestandskundenprocess Form – Dynamic Fetch, Table & Dropdown Logic – JavaScript

/** * ============================================================================ * CLIENT-SIDE SCRIPT FOR FLUENT FORM COMPANY & EMPLOYEE AUTOFILL * ============================================================================ * Author: Sumaiya, Anytype Doc: anytype://object?objectId=bafyreicy3gry4icfd5icgzp5a2ezqg7u2ct2p3syxfimd5hj2qnlotfbdu&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv * * This script runs in the user’s browser. It reads URL parameters, makes a * single AJAX call…Continue reading

JS – Ajouter un soin (Supabase)

document.addEventListener(‘DOMContentLoaded’, async () => { const sb = window.supabase; const root = document.querySelector(‘#anm-add-care’); if (!sb || !root) return; // URLs (modifie si besoin) const DASHBOARD_URL = ‘/tableau-de-bord#agenda’; const CREATE_PET_URL = ‘/mon-animours-book’; const elAnimals = root.querySelector(‘#anm-animals’); const elEmpty = root.querySelector(‘#anm-animals-empty’); const…Continue reading

Group Booking Component

let currentId = null; //hello customElements.define(“mx-group-booking”, class extends HTMLElement { constructor() { super(); this.uuid = crypto.randomUUID(); this.timer = null; this.spinnerEl = null; } connectedCallback(){ if (currentId !== this.uuid) { currentId = this.uuid; this.spinnerEl = document.createElement(“div”); this.spinnerEl.style = “width:100%;height:500px;display:grid;place-items:center;”; const spinner…Continue reading

LPSEstimate Only Button 7/17/2025 641PM JAVASCRIPT FOR THE BUTTON

jQuery(function($){ var origin = window.location.origin; var cleanPath = window.location.pathname.replace(/\/$/,”); var targetURL = origin + cleanPath + ‘/L1’; // hide if already on /L1 if ( cleanPath.match(/\/L1$/) ) { $(‘#cma-button’).hide(); return; } $(‘#cma-button’).on(‘click’, function(){ window.location.href = targetURL; }); });Continue reading

LAMA RENTAL Core JavaScript Logic Artifact 7242025 – Copy

/* Rental Search Core JavaScript */ (function (window, document, $) { ‘use strict’; /* ─────────── CONSTANTS ─────────── */ const DEBUG = true; const MIN_RENTAL_COMPS = 3; const EARTH_RADIUS_MI = 3958.8; const NEARBY_ZIPS = [‘33131’, ‘33132’, ‘33139’, ‘33140’, ‘33141’, ‘33027’, ‘33029’];…Continue reading

Force_Fin_LazyMob

document.addEventListener(“DOMContentLoaded”, function() { document.querySelectorAll(‘img.highfetchprio’).forEach(function(img) { img.classList.remove(‘lazyloaded’, ‘lazyload’); img.removeAttribute(‘data-lazy-src’); img.removeAttribute(‘data-lazy-srcset’); img.removeAttribute(‘data-lazy-sizes’); img.setAttribute(‘loading’, ‘eager’); img.setAttribute(‘fetchpriority’, ‘high’); }); });Continue reading

Disable Quantity Field Input Changing on Mouse Scroll

function preventNumberScroll(e) { if (e.target.matches(‘input[type=”number”]’) || e.target.closest(‘input[type=”number”]’)) { e.preventDefault(); } } document.addEventListener(‘wheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘mousewheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘DOMMouseScroll’, preventNumberScroll, { passive: false, capture: true });Continue reading

Remove Specific Campaign Based on the Referral URL- v1

document.addEventListener(‘om.Campaign.startShow’, function(event) { if(document.referrer.search.indexOf(‘google.com’) > 0) { // replace with the specific referral domain var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID-holder’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading