Máscara CPF

// Carrega a biblioteca Inputmask var script = document.createElement(‘script’); script.src = “https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.8/jquery.inputmask.min.js”; script.onload = function () { aplicarMascaraCPF(); }; document.head.appendChild(script); // Função que aplica a máscara e a validação no campo CPF function aplicarMascaraCPF() { if (typeof jQuery === ‘undefined’…Continue reading

Admin Menu Separator Class

/** * WordPress Admin Menu Separator Class – Updated * * This script targets the specific structure of the admin menu separators * and adds the “bshSeparator” class to the parent container */ (function() { // Function to add classes…Continue reading

Motion on/off button-Javascript

// Accessibility Motion Toggle Script – updated 2025-07-24 // Disables videos, Lottie, parallax, GIFs, and Divi module animations // Respect user’s stored choice or prefers-reduced-motion if ( localStorage.getItem(“animationsDisabled”) === “true” || (window.matchMedia(“(prefers-reduced-motion: reduce)”).matches && localStorage.getItem(“animationsDisabled”) === null) ) { document.documentElement.classList.add(“animations-disabled”);…Continue reading

JavaScript: Prevent Apostrophe in Email

document.addEventListener(“DOMContentLoaded”, function () { let emailFields = [ document.getElementById(“signup_email”), // Registration form document.getElementById(“billing_email”) // Checkout page ]; emailFields.forEach(function (emailField) { if (emailField) { emailField.addEventListener(“input”, function () { if (emailField.value.includes(“‘”)) { alert(“Error: Email addresses cannot contain apostrophes.”); emailField.value = emailField.value.replace(/’/g, “”);…Continue reading

Play/Pause Button for hero videos {javascript}

function toggleVideo() { const video = document.querySelector(‘video’); const playPauseBtn = document.getElementById(‘playPauseBtn’); if (!video || !playPauseBtn) { console.warn(‘Video or button not found’); return; } if (video.paused) { video.play(); playPauseBtn.classList.remove(‘play’); playPauseBtn.setAttribute(‘aria-label’, ‘Pause video’); } else { video.pause(); playPauseBtn.classList.add(‘play’); playPauseBtn.setAttribute(‘aria-label’, ‘Play video’); }…Continue reading

Docsbot with custom data

DocsBotAI.init( { id: ”, supportCallback: function ( event, history ) { event.preventDefault(); hideDocsBot(); }, identify: { name: yourtheme.user.name, email: yourtheme.user.email, userid: yourtheme.user.id } } );Continue reading

Dynamic Card Link Updater – Tools und Plugins calculation form

jQuery(document).ready(function ($) { // Get URL parameters from the current page URL var urlParams = new URLSearchParams(window.location.search); // Populate the card titles with corresponding links from the URL $(‘.link_to_homepage .card_title’).html(`Link to homepage`); $(‘.login_link .card_title’).html(`Login Link`); $(‘.link_to_the_features_page .card_title’).html(`Link to the Features…Continue reading

Videoteca – Capitoli

// configurazione.js – File di configurazione CAPITOLI // Dati dei capitoli correlati const capitoliData = [ { titolo: ‘Endometriosi e dolore pelvico’, thumbnail: ‘https://placehold.co/300×180’, url: ‘/endometriosi-dolore-pelvico.html’, relatore1: { nome: ‘Dott. Marco Rossi’, profiloUrl: ‘/profilo-rossi.html’ }, relatore2: { nome: ‘Dott.ssa Anna…Continue reading