Untitled
unknown
plain_text
2 years ago
4.2 kB
2
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; font-weight: 700; font-family: inherit; min-height: 45px; box-sizing: border-box; border-radius: 25px; margin-top: auto !important; } .swiper--testimonial .swiper__title { margin-bottom: 20px; } 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; } /* New CSS */ html body .swiper--testimonial .swiper__media { text-align: center; display: flex; align-items: center; justify-content: center; min-height: 118px; height: 100%; } html body .swiper--testimonial .swiper__media-image { max-width: 254px; margin: 0 auto; text-align: center; max-height: 119px; } html body .swiper--testimonial .swiper__media-image img[src="https://images.production.cdn.mutinyhq.io/250630c5-f5b6-4827-ab69-8ab281807307/04%2520_%2520smartcare.png"] { max-width: 225px; } @media screen and (max-width:1200px) { html body .swiper--testimonial .swiper__media-image img[src="https://images.production.cdn.mutinyhq.io/250630c5-f5b6-4827-ab69-8ab281807307/04%2520_%2520smartcare.png"], html body .swiper--testimonial .swiper__media-image { max-width: 200px !important; } html body .swiper--testimonial .swiper__cta { padding: 0.8rem 0 !important; width: 100%; max-width: 185px; } } @media screen and (max-width:1200px) { html body .swiper--testimonial .swiper__media-image img[src="https://expogrowth.in/wp-content/uploads/2023/11/04-_-smartcare.png"], html body .swiper--testimonial .swiper__media-image { max-width: 200px !important; } html body .swiper--testimonial .swiper__cta { padding: 0.8rem 0 !important; width: 100%; max-width: 185px; } }'));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://www.lytx.com/getmedia/ab54bf3d-e08c-44a6-880e-3884cd74ca04/01-_-ad_transport_express_v2.png", "1":"https://www.lytx.com/getmedia/df4328f6-6147-4dda-acd0-858b591c0ed1/02-_-calark_v2.png", "2":"https://www.lytx.com/getmedia/7c6f4abe-b36d-4ce3-9ea6-e2f8fc34c306/03-_-nationalgrid_v2.png", "3":"https://www.lytx.com/getmedia/b6aed429-90c3-4f92-96a1-6757ae2529bd/04-_-smartcare_v2.png", "4":"https://www.lytx.com/getmedia/39138aed-bb85-468b-8c59-364db6206e43/05-_-usmc_v2.png", "5":"https://www.lytx.com/getmedia/7f3005db-05e2-428d-9e94-e0eb0cb376d2/06-_-oc_v2.png" } function init() { document.querySelectorAll('.swiper.swiper--testimonial .swiper-slide[data-swiper-slide-index]').forEach(function(val) { var icon = data[val.getAttribute('data-swiper-slide-index')]; if(icon) val.querySelector('.swiper__media-image').src = icon; }); window.dispatchEvent(new Event('resize')); } waitForElement(".swiper.swiper--testimonial .swiper-slide[data-swiper-slide-index]", init, 1000, 20000); } catch (e) { if (debug) console.log(e, "error in Test" + variation_name); } })(); })();
Editor is loading...
Leave a Comment