mailpoet close css

/* 弹窗的基本样式 */ .mp_form_popup1 { transition: all 0.3s ease; /* 为弹窗的过渡动画添加平滑效果 */ position: fixed; bottom: 20px; /* 放置在屏幕底部 */ right: 20px; /* 放置在屏幕右侧 */ z-index: 9999; width: 300px; height: 400px; background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);…Continue reading

MFP > Scroll Blur

“use strict” // Determine if an element is in the visible viewport function isInViewport(rect) { var html = document.documentElement; return ( rect.top >= 0 && rect.left >= 0 && rect.bottom 40 ) op = op * .75; if (op >…Continue reading

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

Javascript: Frontend Dynamic Rendering

document.addEventListener(‘DOMContentLoaded’, () => { const galleryContainer = document.getElementById(‘user-gallery’); const applyFilterButton = document.getElementById(‘apply-filters’); const clearFiltersButton = document.getElementById(‘clear-filters’); const radioButtons = document.querySelectorAll(‘.filters-container input[type=”radio”]’); /** * Updates the gallery container with a message or content. * @param {string} message The message or HTML…Continue reading

Javascript Part 1: Filter and Gallery Setup – v2

document.addEventListener(‘DOMContentLoaded’, () => { const galleryContainer = document.getElementById(‘user-gallery’); const applyFilterButton = document.getElementById(‘apply-filters’); const clearFiltersButton = document.getElementById(‘clear-filters’); const radioButtons = document.querySelectorAll(‘.filters-container input[type=”radio”]’); /** * Updates the gallery container with a message or content. * @param {string} message The message or HTML…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