Untitled
unknown
plain_text
a year ago
2.1 kB
2
Indexable
Never
.eg-capterra-badges { display: flex; flex-direction: row; justify-content: center; align-items: center; } .eg-badge>img { width: 100%; max-width: 82px; } .eg-badge { margin-left: 20px; } html body>main>div:last-of-type .section-title>img { display: none; } @media only screen and (max-width:767px) { .eg-badge>img { width: 100%; max-width: 80px; } } @media only screen and (min-width:767px) and (max-width:1024px) { .eg-badge>img { width: 100%; max-width: 100px; } } (function () { try { /* main variables */ var debug = 0; var variation_name = ""; var $; /* all Pure helper functions */ function waitForElement(selector, trigger, delayInterval, delayTimeout) { var interval = setInterval(function () { if ( document && document.querySelector(selector) && document.querySelectorAll(selector).length > 0 ) { clearInterval(interval); trigger(); } }, delayInterval); setTimeout(function () { clearInterval(interval); }, delayTimeout); } let egbadges = ` <div class="eg-capterra-badges"> <div class="eg-badge"> <img src="https://www.vanderkraken.com/wp-content/uploads/2023/09/Image1.png" alt=""> </div> <div class="eg-badge"> <img src="https://www.vanderkraken.com/wp-content/uploads/2023/09/Image3.png" alt=""> </div> <div class="eg-badge"> <img src="https://www.vanderkraken.com/wp-content/uploads/2023/09/Image5.png" alt=""> </div> </div>` /* Variation Init */ function init() { if (!document.querySelector(".eg-capterra-badges")) { document.querySelector("html body > main > div:last-of-type .section-title").insertAdjacentHTML("beforeend", egbadges); } } /* Initialize variation */ waitForElement('html body > main > div:last-of-type .section-title', init, 50, 15000); } catch (e) { if (debug) console.log(e, "error in Test" + variation_name); } })();