3D Viewer Tracking

document.addEventListener(‘DOMContentLoaded’, function() { const viewerCanvas = document.querySelector(‘.userInput canvas’); if (!viewerCanvas) return; // track when user starts grabbing viewerCanvas.addEventListener(‘mousedown’, function() { if (typeof gtag === ‘function’) { gtag(‘event’, ‘grab_start_3d’, { event_category: ‘Viewer 3D’, event_label: ‘mousedown’ }); } }); // track when…Continue reading

trigger monsterlink of an external link

jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When any link contains ‘external’ in the rel attribute $(‘a[rel*=external]’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading

trigger spesific monsterlink on hover

jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; // When hovering over any element with the ‘.content’ class – change as you require $(‘.content’).on(‘mouseover’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading

trigger monsterlink on hover

jQuery(document).ready(function($){ // Change ‘rt78pcbzrddo1y7w0yq3’ to match your specific campaign slug var campaignSlug = ‘rt78pcbzrddo1y7w0yq3’; $(‘body’).on(‘mouseover’, ‘[href=”https://app.monstercampaigns.com/c/’ + campaignSlug + ‘/”]’, function() { window[‘om’ + campaignSlug].startShow(); }); });Continue reading

Remove Decimal Points In Suggested (US)

document.addEventListener(‘DOMContentLoaded’, function () { // Select all span elements inside the ul with the class ‘donation-amounts’ const amountSpans = document.querySelectorAll(‘.donation-amounts span.amount’); amountSpans.forEach(span => { // Get the current text content let value = span.textContent; // Find the index of the…Continue reading

Mobile Menü Links aria anpassen

jQuery(document).ready(function() { const items = document.querySelectorAll(‘.mobile-navigation .dt-mobile-menu-icon’); items.forEach(item => { item.setAttribute(‘aria-label’, ‘Menü öffnen’); }); // Ergänzung: MutationObserver für nachträglich eingefügte Menü-Icons const observer = new MutationObserver((mutationsList) => { mutationsList.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1) { //…Continue reading

Blog: Post Details Link aria-Label anpassen

// Blog: Link zum Artikel aria-label anpassen: “Weiterlesen über” + Artikeltitel jQuery(document).ready(function($) { $(“.post-details.details-type-link”).each(function() { let ariaLabel = $(this).attr(“aria-label”); if (ariaLabel && ariaLabel.startsWith(“Read more about “)) { let newLabel = ariaLabel.replace(“Read more about “, “Weiterlesen über “); $(this).attr(“aria-label”, newLabel); }…Continue reading

Post Thumbail Rollover Link entfernen, weil redundant + Datums-Link + Fancy-Catgory-Link

// Post Thumbail Rollover Link entfernen, weil redundant // + Datums-Link jQuery(document).ready(function() { jQuery(“.post-thumbnail-rollover, .fancy-date a, .fancy-categories a, .single-related-posts .mini-post-img a, .blog-media.wf-td a”).each(function() { var anchor = jQuery(this); var newSpan = jQuery(““); // Ersetze das durch ein newSpan.attr(“class”, anchor.attr(“class”)); //…Continue reading