JetFormbuilder – Media field text after upload v2

document.addEventListener(‘DOMContentLoaded’, function () { const { addAction } = window.JetPlugins.hooks; const textChoose = ‘Choose File’; const textUpload = ‘File Added’; const textNone = ”; function getFileNames(fileList) { if (!fileList.length) return ”; return Array.from(fileList).map(file => file.name).join(‘, ‘); } function triggerInput(el, value)…Continue reading

Mobile Menu Toggle Script

document.addEventListener(‘DOMContentLoaded’, function() { const menuToggle = document.querySelector(‘.menu-toggle’); // Check if the toggle button exists if (menuToggle) { menuToggle.addEventListener(‘click’, function() { // Toggle a class on the element document.body.classList.toggle(‘nav-is-open’); }); } });Continue reading

NON-MLS JS 08212025 – Copy

Go to Calculator Tell us about you Do you have a listing agreement for this property with another agent that is not with Luxury Property Solutions, LLC? Yes No Do you already have an agreement in place with that other…Continue reading

price table

// — START OF COMPILED PRICING TABLE CODE — const { useState, useEffect, createElement } = React; // From types.ts (as comments, since JS is not typed) // interface Plan { name: string; monthlyPrice: number; annualPrice: number; description: string; features:…Continue reading

SailAway Calculator (JS)

/* SailAway v2 – JS Engine (WPCode: JavaScript type, NO tag) */ (function () { ‘use strict’; // —————— guard against double init —————— if (window.SA2 && window.SA2._initialized) return; // —————— small helpers —————— const $ = (sel, root) =>…Continue reading

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