Untitled
unknown
plain_text
2 years ago
7.4 kB
2
Indexable
(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); } function onLoadJqueryLibrary(trigger, delayInterval, delayTimeout) { var interval = setInterval(function() { if (window.jQuery && window.jQuery.fn) { clearInterval(interval); trigger(); } }, delayInterval); setTimeout(function() { clearInterval(interval); }, delayTimeout); } function waitForSlick(trigger, delayInterval, delayTimeout) { var interval = setInterval(function () { if ( window.jQuery && window.jQuery.fn && window.jQuery.fn.slick ) { clearInterval(interval); trigger(); } }, delayInterval); setTimeout(function () { clearInterval(interval); }, delayTimeout); } function addSlickScript() { var linkEl = document.createElement('link'); linkEl.rel = 'stylesheet'; linkEl.type = 'text/css'; linkEl.href = 'https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css'; document.head.insertAdjacentElement('beforeend', linkEl); var scriptEl = document.createElement('script'); scriptEl.type = "text/javascript"; scriptEl.src = 'https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js'; document.head.insertAdjacentElement('beforeend', scriptEl); } var Slider =''+ '<h2 class="eg-slider-heading">As seen on</h2>'+ ' <div class="egswiper">'+ ' <div class="swiper-container container">'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/06/Forbes-logo.svg" alt="Forbes-logo">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/WashingtonPost-1.webp" alt="w-post">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/06/Inc5000.svg" alt="Inc5000">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/Entrepreneur_logo.png" alt="Entrepreneur">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/U.S._News__World_Report_logo.svg.png" alt="US-news">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/Associated_Press.png" alt="Associated-Press">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/time_logo.png" alt="time-logo">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/Yahoo_Finance_logo_2021.png" alt="YahooFinance">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/B2C_adminBar_color.png" alt="B2C">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/thelondoneconomic.jpg" alt="thelondoneconomic">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/yourmoney.png" alt="yourmoney">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/The-Street-Logo.png" alt="the-street">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://expogrowth.in/wp-content/uploads/2022/07/Law-logo.webp" alt="law-com">'+ ' </div>'+ ' </div>'+ ' <div class="eg-wrapper-outer">'+ ' <div class="eg-wrapper">'+ ' <img src="https://thespanishgroup.org/wp-content/uploads/2022/05/hrcom-logo.png" alt="hrcom-logo">'+ ' </div>'+ ' </div>'+ ' </div>'+ ' </div>'; function init() { $ = window.jQuery; $('#processinfo.infographic_section').after(Slider); waitForSlick(function () { window.jQuery('.swiper-container').slick({ slidesToShow: 6, slidesToScroll: 1, autoplay: true, autoplaySpeed: 0, speed: 3000, pauseOnHover: true, cssEase: 'linear', responsive: [ { breakpoint: 699, settings: { slidesToShow: 4, slidesToScroll: 1, }, }, { breakpoint: 499, settings: { slidesToShow: 2, slidesToScroll: 1, }, }, ], }); }, 50, 10000); window.dispatchEvent(new Event('resize')); } onLoadJqueryLibrary(function() { $ = window.jQuery; addSlickScript(); waitForElement('#processinfo.infographic_section', init, 50, 25000); }, 50, 10000); } catch (e) { if (debug) console.log(e, "error in Test" + variation_name); } })();
Editor is loading...