MFP > Live Chat

window.__lc = window.__lc || {}; window.__lc.license = 18939015; window.__lc.integration_name = “manual_channels”; window.__lc.product_name = “livechat”; ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:”2.0″,on:function(){i([“on”,c.call(arguments)])},once:function(){i([“once”,c.call(arguments)])},off:function(){i([“off”,c.call(arguments)])},get:function(){if(!e._h)throw new Error(“[LiveChatWidget] You can’t use getters before load.”);return i([“get”,c.call(arguments)])},call:function(){i([“call”,c.call(arguments)])},init:function(){var n=t.createElement(“script”);n.async=!0,n.type=”text/javascript”,n.src=”https://cdn.livechatinc.com/tracking.js”,t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))Continue reading

Add aria-label to Divi Social Links Module

jQuery( document ).ready( function( $ ) { $( ‘.et_pb_social_media_follow .et_pb_social_network_link a.icon’ ).each( function( index ) { var social_title_attr = $( this ).attr(‘title’); $( this ).attr(‘aria-label’, social_title_attr); }); });Continue reading

JavaScript: Real-Time Updates for MyCred Balance

document.addEventListener(“DOMContentLoaded”, () => { const logPrefix = “[MyCred]”; // Ensure MyCredData is defined if (typeof MyCredData === “undefined”) { console.error(`${logPrefix} MyCredData is not defined. Ensure it’s properly localized in PHP.`); return; } console.log(`${logPrefix} MyCredData initialized:`, MyCredData); let userCredits = MyCredData.points…Continue reading

Javascript: Glambot V2

document.addEventListener(“DOMContentLoaded”, () => { if (typeof MyCredData === “undefined”) { console.error(“[MyCred] MyCredData is not defined. Ensure it’s properly localized in PHP.”); return; } console.log(“[MyCred] MyCredData initialized:”, MyCredData); const chatCost = 1; // Fixed cost to unlock chat const timerKey =…Continue reading

Javascript: Prompt V3

document.addEventListener(‘DOMContentLoaded’, () => { console.log(“DOM fully loaded and parsed.”); // DOM Elements const formElement = document.querySelector(‘#wpforms-3650’); const creativeInput = document.querySelector(‘#wpforms-3650-field_1’); const promptBoosterInput = document.querySelector(‘#wpforms-3650-field_21’); if (!formElement || !creativeInput || !promptBoosterInput) { console.error(“Form or required fields not found!”); return; } console.log(“Form…Continue reading

“Lazy Load Images”.( For Dom Size)

document.addEventListener(“DOMContentLoaded”, function() { const lazyLoadImages = () => { const images = document.querySelectorAll(‘img.lazy’); const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { if (entry.isIntersecting) { const img = entry.target; img.src = img.dataset.src; img.classList.remove(‘lazy’); observer.unobserve(img); } }); }); images.forEach(img…Continue reading

“Lazy Load Images”.

document.addEventListener(“DOMContentLoaded”, function() { const lazyLoadImages = () => { const images = document.querySelectorAll(‘img.lazy’); const observer = new IntersectionObserver((entries, observer) => { entries.forEach(entry => { if (entry.isIntersecting) { const img = entry.target; img.src = img.dataset.src; img.classList.remove(‘lazy’); observer.unobserve(img); } }); }); images.forEach(img…Continue reading