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

Special Offer Pop-up (copy)

#special-offer { display: none; position: fixed; bottom: 20px; right: 20px; width: 300px; padding: 20px; background: ; border-radius: 5px; border: 1px solid; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000; font-family: Arial, sans-serif; } #special-offer h3 { margin-top: 0;…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

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

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