Untitled
unknown
plain_text
2 years ago
2.6 kB
14
Indexable
(function(){
var style=document.createElement('style');style.type='text/css';style.appendChild(document.createTextNode('html body .swiper--testimonial .swiper__cta { background: rgba(0,0,0,.0) !important; color: #fff !important; border: 1px solid#fff !important; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; padding: .8rem 2.5rem; font-size: 14px; max-height: 45px; min-height: 45px; box-sizing: border-box; border-radius: 25px } html body .swiper--testimonial .swiper__cta:hover { background: #fff !important; color: #009cde !important; text-decoration: none; } html body .swiper--testimonial .swiper__cta:after { display: none; }'));document.head.appendChild(style);
(function() {
var debug = 0;
var variation_name = "";
try {
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);
}
var data = {
"0":"https://expogrowth.in/wp-content/uploads/2023/11/01-_-AD_Transport_Express.png",
"1":"https://expogrowth.in/wp-content/uploads/2023/11/02-_-calark.png",
"2":"https://expogrowth.in/wp-content/uploads/2023/11/03-_-nationalgrid.png",
"3":"https://expogrowth.in/wp-content/uploads/2023/11/04-_-smartcare.png",
"4":"https://expogrowth.in/wp-content/uploads/2023/11/05-_-USMC.png",
"5":"https://expogrowth.in/wp-content/uploads/2023/11/06-_-OC.png"
}
function init() {
document.querySelectorAll('.swiper.swiper--testimonial .swiper-slide').forEach(function(val) {
var icon = data[val.getAttribute('data-swiper-slide-index')];
val.querySelector('.swiper__media-image').src = icon;
});
window.dispatchEvent(new Event('resize'));
}
waitForElement(".swiper.swiper--testimonial .swiper-slide", init, 50, 25000);
} catch (e) {
if (debug) console.log(e, "error in Test" + variation_name);
}
})();
})();Editor is loading...
Leave a Comment