Untitled Snippet

function decodeSerial() { let serial = document.getElementById(“serialNumberInput”).value; let vserial = serial.replace(/\s/g, ”); let vserialtype = “”; let vyear = “”; let vmonth = “”; let vampmonth = “”; let vtype = “”; let vstyle = “”; let vweek = “”;…Continue reading

JS [Category Posts]: Remove Vendor Query Loop Based on Post Location if Empty

document.addEventListener(‘DOMContentLoaded’, (event) => { // Check if there’s a div with the class ‘wpgb-card-wrapper’ and “Sorry, no content found” text const cardWrapper = Array.from(document.querySelectorAll(‘.wpgb-card-wrapper’)).find(div => div.textContent.trim() === “Sorry, no content found.”); // If the div is found, remove the element…Continue reading