Type: js
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
return true
return true;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
floating-monsterlink-2.js
// Floating MonsterLink Style 2 jQuery(document).ready(function ($) { //* Animate Floating MonsterLink into view on page load $(‘.floating-monsterlink.style2’).addClass(‘show’); //* Animate out of view function function closeFloatingMonsterLink(e) { e.preventDefault(); $(‘.floating-monsterlink.style2’).removeClass(‘show’); } //* Triggers that run closeFloatingMonsterLink function // run closeFloatingMonsterLink when…Continue reading