SaleIQ chat bug fix (Mihai)
(function() { let originalTitle = document.title; Object.defineProperty(document, ‘title’, { get: function() { // Remove ‘>’ from the title when accessed return originalTitle.replace(/>/g, ”); } }); })();Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
(function() { let originalTitle = document.title; Object.defineProperty(document, ‘title’, { get: function() { // Remove ‘>’ from the title when accessed return originalTitle.replace(/>/g, ”); } }); })();Continue reading
// following function is copy/paste from here: https://github.com/imTigger/webapp-hardware-bridge/blob/master/demo/websocket-printer.js function WebSocketPrinter(options) { let urlSilentPrintServer; if (LOCAL_SILENT_PRINT_SERVER) { urlSilentPrintServer = “wss://127.0.0.1:12212/printer”; } else { urlSilentPrintServer = “wss://192.168.1.46:12212/printer”; } var defaults = { url: urlSilentPrintServer, onConnect: function () { console.log(‘PrintingRouter connected to ‘+urlSilentPrintServer);…Continue reading
(function ($) { $(document).ready(function () { const processBlurbs = () => { const $blurbs = $(“.et_pb_blurb.et_clickable”); const total = $blurbs.length; // Add role=”list” to container row $(“.dle-services-12-row”).attr(“role”, “list”); $blurbs.each(function (index) { const $blurb = $(this); const $h3 = $blurb.find(“h3”).first(); //…Continue reading
jQuery(document).ready(function( $ ){ var checkCategory = jQuery(“body.archive.tax-product_cat .product-category”); if(checkCategory.length > 0){ jQuery(“body”).addClass(“only-products-cat”); } });Continue reading
jQuery(document).ready(function( $ ){ var checkCategory = jQuery(“body.archive.tax-product_cat .product-category”); if(checkCategory.length > 0){ jQuery(“body”).addClass(“only-products-cat”); } });Continue reading
jQuery(document).ready( function($) { $(‘#main-content’) .attr(‘role’, ‘main’) .attr(‘tab-index’, ‘-1’); });Continue reading
jQuery( document ).ready( function($) { $(‘.hide-accessible’).attr(‘aria-hidden’, ‘true’); });Continue reading
// Delayed scroll to hash (e.g., #book-call) after Calendly and Zoho Forms load document.addEventListener(“DOMContentLoaded”, function () { const targetHash = window.location.hash; function scrollToHash() { if (targetHash) { const el = document.querySelector(targetHash); if (el) { el.scrollIntoView({ behavior: “smooth”, block: “start” });…Continue reading
document.addEventListener(“DOMContentLoaded”, function () { const elements = document.querySelectorAll(‘.primary_address’); elements.forEach(function (el) { const address = el.textContent.trim(); if (address !== ”) { const mapsUrl = ‘https://www.google.com/maps/dir/?api=1&destination=’ + encodeURIComponent(address); el.innerHTML = ‘‘ + address + ‘‘; } }); });Continue reading
// Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-24455 // Wait for the DOM to fully load before executing the script document.addEventListener(‘DOMContentLoaded’, function() { // Select the tooltip container element const tooltipContainer = document.querySelector(‘.tooltip-container’); // Select the tooltip text element within the tooltip…Continue reading