PageSourceSearch

https://www.eliteassociates.com/app/public/js/main.js

js eliteassociates.com collected 2026-10-04 23:11:38 UTC 20,821 bytes, 2 lines download raw bytes

1import{MetaSwiper,SafariSwiper}from"./meta-settings.js";let matherialInputs=document.querySelectorAll(".input-wrap input"),matherialTextareas=document.querySelectorAll(".input-wrap textarea");function setInputsListeners(){[...matherialInputs,...matherialTextareas].forEach(l=>{l.addEventListener("input",e=>{var e=e.target,t=l.closest(".input-wrap");e.value.length?t.classList.add("not-empty"):t.classList.remove("not-empty")})})}setInputsListeners();let contentElement=document.querySelector(".job__content.content-element");if(contentElement){let e=contentElement.querySelectorAll("style"),t=(e.forEach(e=>e.remove()),contentElement.querySelectorAll("*"));t.forEach(e=>{e.removeAttribute("class"),e.removeAttribute("style")})}AOS.init({once:!0,duration:500});let isTablet=window.matchMedia("(max-width: 769px)").matches,header=document.getElementsByClassName("header")[0],burger=document.getElementsByClassName("burger")[0];function headerSticky(){let l=window.pageYOffset;window.onscroll=()=>{var e=window.pageYOffset,t=header.scrollHeight;0<window.scrollY&&(l>e?(header.style.top=0,header.classList.add("scrolled")):header.style.top="-".concat(t+3,"px")),0===window.scrollY&&header.classList.remove("scrolled"),l=e},0!==window.scrollY&&header.classList.add("scrolled")}$(".js-custom-select").select2(),$(".js-custom-select").map(function(){$(this).select2()}),burger.addEventListener("click",()=>{header.classList.toggle("scrolled"),0===window.scrollY&&header.classList.remove("scrolled")}),0!==window.scrollY&&header.classList.add("scrolled"),$(".archived-btn")&&$(".archived-btn").click(function(){$(".archived-btn").addClass("hide")}),headerSticky();let heroPageInput=document.querySelector(".heading-section__form .main-input");if(heroPageInput){let e=!0,t=document.querySelector(".input-job-list"),l=document.querySelector(".hero-page-typeit"),o=t.value.split(",").filter(e=>e).map(e=>e.charAt(0).toUpperCase()+e.slice(1)),n=(window.onload=function(){heroPageInput.value&&(heroPageInput.value="")},new TypeIt(".hero-page-typeit",{waitUntilVisible:!0,speed:75,loop:!0}));switch(o.length){case 1:n.type(o[0]).pause(1e3).delete(o[0].length).go();break;case 2:n.type(o[0]).pause(1e3).delete(o[0].length).type(o[1]).pause(1e3).delete(o[1].length).go();break;case 3:n.type(o[0]).pause(1e3).delete(o[0].length).type(o[1]).pause(1e3).delete(o[1].length).type(o[2]).pause(1e3).delete(o[2].length).go();break;case 4:n.type(o[0]).pause(1e3).delete(o[0].length).type(o[1]).pause(1e3).delete(o[1].length).type(o[2]).pause(1e3).delete(o[2].length).type(o[3]).pause(1e3).delete(o[3].length).go();break;case 5:n.type(o[0]).pause(1e3).delete(o[0].length).type(o[1]).pause(1e3).delete(o[1].length).type(o[2]).pause(1e3).delete(o[2].length).type(o[3]).pause(1e3).delete(o[3].length).type(o[4]).pause(1e3).delete(o[4].length).go()}5<o.length&&n.type(o[0]).pause(1e3).delete(o[0].length).type(o[1]).pause(1e3).delete(o[1].length).type(o[2]).pause(1e3).delete(o[2].length).type(o[3]).pause(1e3).delete(o[3].length).type(o[4]).pause(1e3).delete(o[4].length).go(),heroPageInput.addEventListener("focus",()=>{e&&(l.style.display="none",n.freeze(),e=!1)}),heroPageInput.addEventListener("focusout",()=>{heroPageInput.value||(l.style.display="",n.unfreeze(),n.go(),e=!0)})}var contentLinks=document.querySelectorAll(".content-element a");0<contentLinks.length&&contentLinks.forEach(e=>e.setAttribute("target","_blank"));let popupSitesRef=document.querySelectorAll(".popup-site"),articleContentBlock=(popupSitesRef.length&&popupSitesRef.forEach(l=>{l.addEventListener("click",e=>{var t;e.target===l&&(l.classList.remove("open"),document.querySelector(".fixed-btn"))&&(e=document.querySelector(".fixed-btn-open"),t=document.querySelector(".fixed-btn-close"))&&(e&&(e.style.opacity="1",e.style.pointerEvents="all"),t.style.opacity="0",t.style.pointerEvents="none")})}),document.querySelector(".article-content"));if(articleContentBlock){let e=articleContentBlock.querySelectorAll(".content-element img");e.forEach((e,t)=>{t%2==0?e.classList.add("odd"):e.classList.add("even")})}let mobHeader=document.querySelector(".mobile-header"),mobileMenuStartPoint=+getComputedStyle(document.documentElement).getPropertyValue("--mobile-menu-start-point"),isMobileMenuEnable=$(window).outerWidth()<=mobileMenuStartPoint||$(".header-mobile").length;if(header.querySelector(".menu-item.dropdown")){let e=document.querySelectorAll(".mobile-header .mobile-menu .menu-item.dropdown");e.forEach((t,e)=>{t.querySelector(".dropdown-toggle");var l=t.querySelector(".dropdown-toggle__icon");let o=t.querySelector(".dropdown-menu");t.classList.add("no-opened"),t.addEventListener("click",e=>{t.classList.contains("no-opened")&&(e.preventDefault(),t.classList.remove("no-opened")),mobHeader.querySelector(".menu-item.dropdown.active")&&(mobHeader.querySelector(".menu-item.dropdown.active").classList.add("no-opened"),mobHeader.querySelector(".menu-item.dropdown.active").classList.remove("active"),mobHeader.querySelector(".dropdown-menu.active").classList.remove("active")),t.classList.add("active"),o.classList.add("active")}),null!=l&&l.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),mobHeader.querySelector(".menu-item.dropdown.active")&&(mobHeader.querySelector(".menu-item.dropdown.active").classList.add("no-opened"),mobHeader.querySelector(".menu-item.dropdown.active").classList.remove("active"),mobHeader.querySelector(".dropdown-menu.active").classList.remove("active"))})})}function menuToggle(){$(".menu-toggle").toggleClass("active"),$(".header").toggleClass("active"),$(".mobile-header").toggleClass("active"),$(".header-close-wrapper").toggleClass("active"),scrollLock.getScrollState()?scrollLock.disablePageScroll(mobHeader):scrollLock.enablePageScroll()}function updateMenu(){(isMobileMenuEnable=$(window).outerWidth()<=mobileMenuStartPoint||$(".mobile-header").length)||($(".dropdown-menu").css("display",""),$(".header-close-wrapper").removeClass("active"),$(".menu-item.active").removeClass("active"),$(".navbar-nav").removeClass("active"),$(".menu-toggle").removeClass("active"),scrollLock.enablePageScroll())}$(window).on("resize orientationchange",updateMenu),$(".menu-toggle").
1click(menuToggle);let headerCloseWrapper=document.getElementsByClassName("header-close-wrapper")[0],secondHeader=(headerCloseWrapper&&headerCloseWrapper.addEventListener("click",e=>{e.target.closest(".mobile-header")||menuToggle()}),document.querySelector(".header.white"));if(secondHeader){let o=secondHeader.getElementsByClassName("menu")[0],e=o.querySelectorAll(".menu-item"),n=o.querySelector("span"),t=o.querySelector(".menu-item.active");function backgroundMenuPositionFunc(e,t){var l=o.getBoundingClientRect(),e=e.getBoundingClientRect(),l=e.left-l.left,e=e.width;t?n.style.setProperty("--span-transition","0.5s cubic-bezier(0.75, 0, 0, 1)"):n.style.setProperty("--span-transition","opacity 0.5s ease, visibility 0s 0s"),n.style.setProperty("--width-span","".concat(e,"px")),n.style.setProperty("--left-position-span","".concat(l,"px"))}if(t)backgroundMenuPositionFunc(t,!0),n.classList.add("active"),e.forEach(e=>{e.addEventListener("mouseenter",function(e){backgroundMenuPositionFunc(e.target,!0)}),o.addEventListener("mouseleave",function(e){backgroundMenuPositionFunc(t,!0)})});else{let t=!1;e.forEach(e=>{e.addEventListener("mouseenter",function(e){backgroundMenuPositionFunc(e.target,t),n.classList.add("active"),t=!0})}),o.addEventListener("mouseleave",function(e){n.classList.remove("active"),t=!1,n.style.setProperty("--span-transition","opacity 0.5s ease, visibility 0s 0.5s")})}}function parallaxEffect(i){function e(e){var t=window.innerWidth/2,l=e.clientX,e=e.clientY;let o="".concat(1-.005*(l-t),"%"),n="".concat(1-.005*(e-t),"%");i.forEach((e,t)=>{e.style.transform="translate(".concat(o,", ").concat(n,")")})}document.addEventListener("mousemove",e),window.matchMedia("(max-width: 551px)").matches&&document.removeEventListener("mousemove",e)}let parallaxItems=document.querySelectorAll(".parallax"),firstMainSection=(parallaxEffect(parallaxItems),document.querySelector(".first-section"));if(firstMainSection){let e=firstMainSection.querySelector(".statistics__bg-img");window.addEventListener("scroll",()=>{window.scrollY>firstMainSection.clientHeight?e.classList.add("active"):e.classList.remove("active")})}let countriesSection=document.getElementsByClassName("countries")[0];if(countriesSection){let l=countriesSection.querySelectorAll(".countries__tab"),e=countriesSection.querySelectorAll(".countries__tab-content"),o=countriesSection.querySelector(".countries__tab.active"),n=new Swiper(".countries__tab-content-swiper",{spaceBetween:0,slidesPerView:1,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0}}),t=new Swiper(".countries__tab-list-mob",{slidesPerView:"auto",enabled:!0,centeredSlides:!0,navigation:{nextEl:".countries__tab-list-mob-nav.next",prevEl:".countries__tab-list-mob-nav.prev"},breakpoints:{768:{enebled:!1}}}),i=((n.controller.control=t).controller.control=n,(e,t,l)=>{t=document.querySelector(t),l=document.querySelector(l);t.style.left=e.offsetLeft+"px",l.style.left=e.offsetLeft+e.offsetWidth+"px"}),s=e=>{var t=e.dataset.slideId;e.classList.add("active"),n.slideTo(Number(t))};if(!isTablet){i(o,".countries__tabs-left-bg",".countries__tabs-right-bg");let t=e=>{l.forEach(e=>{e.classList.remove("active")}),s(e),i(e,".countries__tabs-left-bg",".countries__tabs-right-bg")};l.forEach(e=>{e.querySelector(".countries__tab-btn").addEventListener("click",()=>{t(e)})})}}window.addEventListener("DOMContentLoaded",e=>{let t=document.querySelector(".our-values");if(t){var l=window.matchMedia("(max-width: 500px)").matches;let n=t.querySelectorAll(".values-list__item"),i=o(n),s=null,r=[],a=t.querySelector(".values-list").offsetWidth,c=0;l?n.forEach((e,t)=>{e.addEventListener("click",()=>{t===s?(e.classList.remove("active"),s=null):(null!==s&&n[s].classList.remove("active"),s=t,e.classList.add("active"))})}):n.forEach((e,o)=>{e.addEventListener("click",()=>{if(o===s){e.classList.remove("active");for(let e=0;e<r.length;e++)r[e].style.flexBasis="".concat(Math.floor(a/r.length-2),"px"),s=null}else{if(null!==s){n[s].classList.remove("active");for(let e=0;e<r.length;e++)r[e].style.flexBasis="".concat(Math.floor(a/r.length-2),"px")}s=o,e.classList.add("active");let t=0;for(let e=0;e<i.length;e++)if(t+=i[e].length,o<t){c=(o-(t-i[e].length))%i[e].length,r=i[e];break}var l=a/r.length;for(let e=0;e<r.length;e++)e===c?r[e].style.flexBasis="".concat(Math.floor(1.3*l),"px"):r[e].style.flexBasis="".concat(Math.floor(l-.3*l/(r.length-1)-2),"px")}})}),window.addEventListener("resize",()=>{var e=t.querySelector(".values-list__item.active");null!=e&&e.classList.remove("active"),s=null,a=t.querySelector(".values-list").offsetWidth,i=o(n),n.forEac
1h(e=>e.style.flexBasis="")})}function o(t){var l=[];let o=[];for(let e=0;e<t.length;e++)0<e&&t[e].getBoundingClientRect().top!==t[e-1].getBoundingClientRect().top&&(l.push(o),o=[]),e===t.length-1&&l.push(o),o.push(t[e]);return l}});var fileItem=document.querySelectorAll(".file-item");function uploadFile(e,t){new FileReader;t.setAttribute("placeholder","".concat(e.name))}function toggleButton(e,t,l){e.classList.contains("open")?e.querySelector("span").innerHTML=l:e.querySelector("span").innerHTML=t}fileItem.length&&fileItem.forEach(e=>{let t=e.querySelector(".file-text"),l=e.querySelector(".file-input");l.addEventListener("change",()=>{uploadFile(l.files[0],t)})});let articleSection=document.querySelector(".five-minutes");if(articleSection){let e=articleSection.querySelector(".five-minutes__btn"),t=articleSection.querySelector(".article-block__close"),l=articleSection.querySelector(".close-text"),o=articleSection.querySelector(".article-block"),n=articleSection.querySelector(".five-minutes__btn-archived"),s=articleSection.querySelector(".archive-block");function handleToggleArticle(){null!=n&&n.classList.remove("open"),s&&(closeAllArchived(),s.classList.remove("open"),s.style.maxHeight=null),e.classList.toggle("open"),o.classList.toggle("open"),o.style.maxHeight=null,o.classList.contains("open")&&(o.style.maxHeight=o.scrollHeight+"px"),toggleButton(e,"VIEW FULL ‘5 minutes with…’","CLOSE ‘5 minutes with…’")}function handleToggleArchive(){closeAllArchived(),e.classList.remove("open"),o.classList.remove("open"),o.style.maxHeight=null,n.classList.toggle("open"),s.classList.toggle("open"),(s.style.maxHeight=null)!=s&&s.classList.contains("open")&&(s.style.maxHeight=s.scrollHeight+"px")}null!=n&&n.addEventListener("click",handleToggleArchive),e.addEventListener("click",handleToggleArticle),t.addEventListener("click",handleToggleArticle),l.addEventListener("click",handleToggleArticle);let i=null==s?void 0:s.querySelectorAll(".archive-block__item");function closeAllArchived(o){i.forEach(e=>{var t=e.querySelector(".five-minutes__btn"),l=e.querySelector(".article-block");o!==e&&(t.classList.remove("open"),l.classList.remove("open"),l.style.maxHeight=null)})}if(i&&i.forEach(e=>{let t=e.querySelector(".five-minutes__btn");var l=e.querySelector(".article-block__close"),o=e.querySelector(".close-text");let n=e.querySelector(".article-block");function i(){closeAllArchived(e),t.classList.toggle("open"),n.classList.toggle("open"),n.style.maxHeight=null,n.classList.contains("open")&&(n.style.maxHeight=n.scrollHeight+"px",s)&&(s.style.maxHeight=n.scrollHeight+s.scrollHeight+"px"),toggleButton(t,"VIEW FULL ‘5 minutes with…’","CLOSE ‘5 minutes with…’")}t.addEventListener("click",i),l.addEventListener("click",i),o.addEventListener("click",i)}),window.addEventListener("resize",()=>{o.classList.contains("open")&&(o.style.maxHeight=o.scrollHeight+"px"),s&&s.classList.contains("open")&&(s.style.maxHeight=s.scrollHeight+"px")}),s){let t=s.querySelector(".archive-block__swiper-nav"),e=new Swiper(".archive-block__swiper",{slidesPerView:1,spaceBetween:50,rewind:!0,navigation:{nextEl:".archive-block__swiper-btn.next",prevEl:".archive-block__swiper-btn.prev"},on:{init:e=>{t.style.top=e.slides[e.realIndex].scrollHeight/2+"px"},slideChange:e=>{closeAllArchived(),t.style.top=e.slides[e.realIndex].scrollHeight/2+"px"}}});window.addEventListener("resize",()=>{t.style.top=e.slides[e.realIndex].scrollHeight/2+"px"})}}function setPlyr(){document.querySelectorAll(".player").forEach(e=>{var t=e.querySelector("#player");let l=new Plyr(t,{controls:["play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"]});t=e.querySelector(".plyr");let o=e.querySelector(".text-with-video__video-play-btn");t.classList.add("!absolute","inset-0","w-full","h-full"),o.addEventListener("click",()=>{l.play()}),l.on("pause",()=>{o.style.display="block"}),l.on("play",()=>{o.style.display="none"})})}setPlyr();let productsSection=document.querySelector(".products");if(productsSection&&window.matchMedia("(max-width: 551px)").matches){let e=productsSection.querySelector(".products-list"),t=[...productsSection.querySelectorAll(".products-list__item")],l=productsSection.querySelector(".products-btn"),o=t.filter((e,t)=>
1t<3).reduce((e,t)=>e+t.scrollHeight,0);3<t.length&&(e.style.maxHeight=o+40+"px"),l.addEventListener("click",()=>{l.classList.toggle("open"),l.classList.contains("open")?e.style.maxHeight=e.scrollHeight+"px":e.style.maxHeight=o+60+"px",toggleButton(l,"Open Products","Close Products")}),window.addEventListener("resize",()=>{o=t.filter((e,t)=>t<3).reduce((e,t)=>e+t.scrollHeight,0),3<t.length&&(e.style.maxHeight=o+40+"px")})}let testimonialsSection=document.querySelector(".testimonials-section");if(testimonialsSection){let e=MetaSwiper(".testimonials-swiper",{observer:!0,slidesPerView:"auto",spaceBetween:50,centeredSlides:!0,loop:!0,speed:800,navigation:{nextEl:".testimonials-btn.swiper-button-next",prevEl:".testimonials-btn.swiper-button-prev"},pagination:{clickable:!0,dynamicMainBullets:4,dynamicBullets:!0,el:".testimonials-swiper .swiper-pagination"},autoplay:{enabled:!0,disableOnInteraction:!1,pauseOnMouseEnter:!0}})}let quotesSection=document.querySelector(".quotes");if(quotesSection){let e=new Swiper(".quotes__slider",{loop:!0,navigation:{nextEl:".quotes__slider-btn.next",prevEl:".quotes__slider-btn.prev"},pagination:{clickable:!0,el:".quotes__slider-pagination"}})}let jobSearchFilterMob=document.querySelector(".jobs-search__filters-mob");if(jobSearchFilterMob){let e=new Swiper(".jobs-search__filters-swiper",{spaceBetween:30,slidesPerView:"auto",freeMode:!0,navigation:{nextEl:".jobs-search__filters-swiper-btn.next",prevEl:".jobs-search__filters-swiper-btn.prev"}})}let jobSearchArticleListMob=document.querySelector(".jobs-search__articles-list-wrap.mob");if(jobSearchArticleListMob){let e=new Swiper(".jobs-search__articles-list-wrap.mob .jobs-search__articles-list",{spaceBetween:30,slidesPerView:"auto",navigation:{nextEl:".jobs-search__filters-swiper-btn.next",prevEl:".jobs-search__filters-swiper-btn.prev"}})}window.addEventListener("load",videoScroll),window.addEventListener("scroll",videoScroll);let socialsSection=document.querySelector(".feed-socials");if(socialsSection){let e=new Swiper(".insta-slider",{slidesPerView:"auto",grid:{rows:2},slidesPerColumn:3,spaceBetween:16,navigation:{nextEl:".insta-slider__btn"}})}function videoScroll(){if(0<document.querySelectorAll("video[autoplay]").length){var t=window.innerHeight,l=document.querySelectorAll("video[autoplay]");for(let e=0;e<l.length;e++){var o=l[e],n=o.clientHeight,i=o.getBoundingClientRect().top;i<=t-.5*n&&0-.5*n<=i?o.play():o.pause()}}}let bannersSwiperDOM=document.querySelector(".banners-slider");if(bannersSwiperDOM){let e=bannersSwiperDOM.querySelectorAll(".swiper-slide").length,t=new Swiper(bannersSwiperDOM,{slidesPerView:1,spaceBetween:16,rewind:!0,autoplay:{delay:2500,disableOnInteraction:!1,pauseOnMouseEnter:!0},loop:!0,loopedSlides:6,navigation:{prevEl:".banners-swiper__btn.prev",nextEl:".banners-swiper__btn.next"}})}$(document).ready(function(){var e,t,l,o=document.getElementsByClassName("opportunities-slider")[0],o=(o&&(o=o.querySelectorAll(".swiper-slide").length,new Swiper(".opportunities-slider",{spaceBetween:50,slidesPerView:1,speed:1e3,allowTouchMove:o<=3&&1025<window.innerWidth,loop:1<o,navigation:{nextEl:".opportunities-button-next",prevEl:".opportunities-button-prev"},effect:"creative",creativeEffect:{prev:{opacity:0,translate:["-100%",0,0],scale:.7},next:{opacity:0,translate:["100%",0,0],scale:.7}}})),document.querySelector(".news-list-archive-swiper"));o&&(e=o.querySelector(".swiper"),t=o.querySelector(".swiper-button-next"),o=o.querySelector(".swiper-button-prev"),l=e.querySelectorAll(".swiper-slide").length,new Swiper(e,{slidesPerView:3,speed:1e3,navigation:{nextEl:t,prevEl:o},breakpoints:{280:{slidesPerView:1,spaceBetween:25,loop:1<l},1026:{slidesPerView:3,spaceBetween:25,loop:3<l},1200:{slidesPerView:3,spaceBetween:55,loop:3<l},1400:{slidesPerView:3,spaceBetween:70,loop:3<l}}})),$("body").on("click",".toggle-list-archive-swiper",function(){$(this).parent().next(".news-list-archive-swiper").stop().slideToggle(800)})});let valuesSwiperDOM=document.querySelector(".values-list-swiper");if(valuesSwiperDOM){let e=new Swiper(valuesSwiperDOM,{slidesPerView:1,navigation:{prevEl:".values-list-swiper__btn.prev",nextEl:".values-list-swiper__btn.next"}})}let jobFilterWrap=document.querySelector(".jobs-search__filter-list");if(jobFilterWrap){let e=jobFilterWrap.querySelectorAll(".jobs-search__filter-item");
1e.forEach(e=>{e=e.querySelectorAll(".jobs-search__filter-option-wrap");let r=document.querySelector(".jobs-search__filter-result");function a(t,e,l,o,n){var i=document.createElement("DIV");let s=document.createElement("BUTTON");i.classList.add("jobs-search__filter-result-item"),i.id=t,i.textContent=e,s.classList.add("icon-close"),s.classList.add("jobs-search__filter-result-item-remove"),s.type="button",s.dataset.name=l,s.dataset.value=o,s.addEventListener("click",function e(){n.checked=!1,n.onchange(),c(t),s.removeEventListener("click",e)}),i.appendChild(s),r.appendChild(i)}function c(e){document.getElementById(e).remove()}function d(e){return e.toLowerCase().trim().split(" ").join("-")}e.forEach(s=>{var e,t=s.querySelector(".jobs-search__filter-option-checkbox");t.checked&&(e=s.querySelector(".jobs-search__filter-option").textContent,a(d(e),e,t.name,t.value,t)),s.addEventListener("change",e=>{var t=s.querySelector(".jobs-search__filter-option").textContent,l=d(t),{name:o,value:n,checked:i}=e.target;i?a(l,t,o,n,e.target):c(l)})})})}if(document.querySelector(".fixed-btn")){let e=document.querySelector(".fixed-btn-open"),t=document.querySelector(".fixed-btn-close");t&&t.addEventListener("click",function(){e&&(e.style.opacity="1",e.style.pointerEvents="all"),t.style.opacity="0",t.style.pointerEvents="none",closeCustomPopup("#charity_popup")})}
2//# sourceMappingURL=main.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.