$(document).ready(function () { $(".our-app-slider").slick({ arrows: !1, slidesToShow: 2, slidesToScroll: 2, responsive: [{ breakpoint: 768, settings: { slidesToShow: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }), $(".technologies-ny").slick({ slidesToShow: 5, slidesToScroll: 1, speed: 2e3, arrows: !1, autoplay: !0, autoplaySpeed: 0, cssEase: "linear", responsive: [{ breakpoint: 768, settings: { slidesToShow: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }), $(".toggle-btn").click(function () { $(this).parents('.acc-head').next().slideToggle(), $(this).parents(".acc-wrapper").toggleClass("active") }), $(".dubai-testimonials").slick({ arrows: !1, slidesToShow: 1, slidesToScroll: 1, autoplay: !0, responsive: [{ breakpoint: 768, settings: { slidesToShow: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }); var e = $("#chooseSlider"), i = $("#choose-bar"), s = $("#chooseLable"); e.on("beforeChange", function (e, o, t, n) { var r = n / (o.slideCount - 1) * 100; i.css("background-size", r + "% 100%").attr("aria-valuenow", r), s.text(r + "% completed") }), e.slick({ slidesToShow: 3, slidesToScroll: 1, speed: 400, autoplay: !0, autoplaySpeed: 2500, responsive: [{ breakpoint: 768, settings: { slidesToShow: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }); var o = $("#majorSlider"), t = $("#majorBar"), n = $("#majorLabel"); o.on("beforeChange", function (e, i, s, o) { var r = o / (i.slideCount - 1) * 100; t.css("background-size", r + "% 100%").attr("aria-valuenow", r), n.text(r + "% completed") }), o.slick({ slidesToShow: 2, slidesToScroll: 1, speed: 400, autoplay: !0, autoplaySpeed: 2500, responsive: [{ breakpoint: 768, settings: { slidesToShow: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }); $(".cm-popup-services-options").length > 0 && ($(".cm-select-pop-field select").remove(), $(".cm-popup-services-options").detach().appendTo(".cm-select-pop-field")); $(".cm-header-top").outerHeight(); setTimeout(() => (() => { let e = $(".cm-header-wrapper").outerHeight(); $(".cm-header-container").css("height", e) })(), 500), $("body").click(function () { $(this).removeClass("cm-form-active") }), $(".cm-header-cta a, .cm-body-cta, .ft-get-touch").click(function (e) { e.stopPropagation(), e.preventDefault(), $(this).attr("data-service") && $(".cm-header-contact-form select").val($(this).attr("data-service")), $("body").addClass("cm-form-active") }), $(".cm-header-contact-form-inner").click(function (e) { e.stopPropagation() }), $(".cm-menu-wrapper > ul > li.cm-mega-menu .cm-submenu-lv-1 .cm-menu-heads a").hover(function () { let e = $(this).attr("data-mm-id"); $(this).addClass("mm-active"), $(this).siblings().removeClass("mm-active"); let i = $(this).parent(".cm-menu-heads").siblings(".cm-menu-links").children(".cm-mm-" + e); i.addClass("mm-active"), i.siblings().removeClass("mm-active") }), $(".custom-menu-primary ul li.cm-item-has-children > a").after('
'), $("body").click(function (e) { $(this).removeClass("menu-open"), $(".child-trigger").removeClass("child-open"), $(".cm-menu-children-wrapper").slideUp(250) }), $(".menu-trigger").click(function (e) { return e.stopPropagation(), $("body").toggleClass("menu-open"), $(".child-trigger").removeClass("child-open"), $(".cm-menu-children-wrapper").slideUp(250), !1 }), $(".custom-menu-primary .cm-menu-wrapper").click(function (e) { e.stopPropagation() }), $(".child-trigger").click(function () { return $(this).parent().siblings(".cm-item-has-children").find(".child-trigger").removeClass("child-open"), $(this).parent().siblings(".cm-item-has-children").find(".cm-menu-children-wrapper").slideUp(250), $(this).next(".cm-menu-children-wrapper").slideToggle(250), $(this).next(".cm-menu-children-wrapper").children(".cm-item-has-children").find(".cm-menu-children-wrapper").slideUp(250), $(this).next(".cm-menu-children-wrapper").children(".cm-item-has-children").find(".child-trigger").removeClass("child-open"), $(this).toggleClass("child-open"), !1 }), $(".cm-hero-slider-container").slick({ infinite: !0, fade: !0, autoplay: !0, autoplaySpeed: 5e3 }), $("#cm-footer-logo-wrapper").slick({ infinite: !0, autoplay: !0, dots: !1, arrows: !1, slidesToShow: 5, slidesToScroll: 1, responsive: [{ breakpoint: 992, settings: { slidesToShow: 4, variableWidth: !1 } }, { breakpoint: 768, settings: { slidesToShow: 3, variableWidth: !1 } }, { breakpoint: 480, settings: { slidesToShow: 2, variableWidth: !1 } }] }), $(".cm-home-offer-slider").slick({ dots: !1, arrows: !0, infinite: !0, fade: !0, speed: 500, slidesToShow: 1, slidesToScroll: 1 }), $(".cm-home-client-slider").slick({ infinite: !0, autoplay: !0, autoplaySpeed: 5e3, slidesToShow: 3, slidesToScroll: 1, centerMode: !0, centerPadding: "0", responsive: [{ breakpoint: 767, settings: { slidesToShow: 1, slidesToScroll: 1, centerMode: !1 } }] }), $(".cm-about-reviews-slider").slick({ infinite: !0, slidesToShow: 3, slidesToScroll: 3 }), $(".cm-about-serve-slider").slick({ infinite: !0, slidesToShow: 5, slidesToScroll: 5, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 4, slidesToScroll: 4 } }, { breakpoint: 900, settings: { slidesToShow: 3, slidesToScroll: 3 } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 450, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), $(".cm-ad-work-slider").slick({ centerMode: !0, centerPadding: "0px", slidesToShow: 5, dots: !0, arrows: !1, autoplay: !0, autoplaySpeed: 5e3, responsive: [{ breakpoint: 1300, settings: { slidesToShow: 3 } }, { breakpoint: 480, settings: { slidesToShow: 3 } }, { breakpoint: 430, settings: { slidesToShow: 1 } }] }), $(".cm-project-slider").slick({ infinite: !0, autoplay: !0, dots: !1, arrows: !0, slidesToShow: 2, slidesToScroll: 1, responsive: [{ breakpoint: 768, settings: { slidesToShow: 4 } }, { breakpoint: 480, settings: { slidesToShow: 1 } }] }), $(".cm-serv-review-slider").slick({ infinite: !0, dots: !0, arrows: !1, slidesToShow: 2, slidesToScroll: 1, responsive: [{ breakpoint: 768, settings: { slidesToShow: 1 } }] }), $(window).scroll(function () { $(".cm-home-planning-container ").hasClass("active-section") && $(".cm-anim-circle").each(function () { let e = $(this).find("circle"), i = 104 * Math.PI; e.css({ "stroke-dasharray": `${i} ${i}`, "stroke-dashoffset": `${i}` }), function (s) { const o = i - s / 100 * i; e.css("stroke-dashoffset", o) }(e.attr("data-percent")) }) }); const r = function (e, i) { let s = !0; return function () { let o = this, t = arguments; s && (e.apply(o, t), s = !1, setTimeout(() => s = !0, i)) } }(function () { $(".cm-section").each(function () { let e = $(this).offset().top, i = $(window).scrollTop(), s = $(window).height(); e - i + .1 * s < s && $(this).addClass("active-section") }) }, 300); function c() { $(document).scrollTop() > 10 ? $(".cm-header-container").addClass("sticky") : $(".cm-header-container").removeClass("sticky") } $(".cm-more-tech span").click(function () { $(this); $(".cm-home-tech-container .cm-tech-item").slice(-3).each(function () { $(this).removeClass("tech-hidden") }), $(this).parent().remove() }), setTimeout(() => c(), 200), $(window).scroll(function () { c(), r(), $(this).scrollTop() ? $("#backToTop").fadeIn() : $("#backToTop").fadeOut() }), $(window).resize(r), window.innerWidth > 768 && (setTimeout(() => { AOS.refresh() }, 500), AOS.init({ once: !0 })), $("#backToTop").click(function () { $("html, body").animate({ scrollTop: 0 }, 1e3) }); var a, l, d, m = $(".grid").isotope({ itemSelector: ".element-item", layoutMode: "fitRows", getSortData: { name: ".name", symbol: ".symbol", weight: function (e) { var i = $(e).find(".weight").text(); return parseFloat(i.replace(/[\(\)]/g, "")) } } }); $(".element-item .cm-job-position").click(function () { $(this).next(".cm-content").slideToggle(), setTimeout(() => $(".grid").isotope("reloadItems").isotope(), 500) }), $(".cm-career-select").click(function () { $(this).next(".cm-career-options").slideToggle() }), $("#filters").on("click", "button", function () { var e = $(this).attr("data-filter"); $(this).addClass("is-checked"), $(this).siblings().removeClass("is-checked"), $(".cm-career-select p").text($(this).text()), $(".cm-career-options").slideUp(), m.isotope({ filter: e }), m.data("isotope").filteredItems.length ? $(".cm-empty-msg").hide() : $(".cm-empty-msg").show() }), $("body").click(function () { $(this).removeClass("cm-jd-pop-active"), $(".cm-jd-container .cm-jd-inner").html(""), $("body").removeClass("cm-job-form-active"), $('.cm-job-form-container input[name*="position"]').val("") }), $(".cm-career-wrapper .element-item").each(function () { $(this).find(".cm-job-details").click(function (e) { e.stopPropagation(), $("body").addClass("cm-jd-pop-active"); let i = $(this).parent().siblings(".cm-content").html(); $(".cm-jd-container .cm-jd-inner").append(i) }) }), $(".cm-jd-close-btn").click(function () { $("body").removeClass("cm-jd-pop-active"), $(".cm-jd-container .cm-jd-inner").html("") }), $(".cm-jd-inner").click(function (e) { e.stopPropagation() }), $(".cm-job-apply").click(function (e) { e.stopPropagation(), $("body").addClass("cm-job-form-active"); let i = $(this).parent().siblings(".cm-job-position").text(); console.log(i), $('.cm-job-form-container input[name*="position"]').val(i) }), $(".cm-job-form-inner").click(function (e) { e.stopPropagation() }), $.validator.addMethod("regex", function (e, i, s) { var o = new RegExp(s); return this.optional(i) || o.test(e) }, "Please check your input."), $("#get_in_touch").validate({ rules: { name: "required", email: { required: !0, email: !0 }, company: "required", service: "required", phone: "required" }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $("#get_in_touch_banner").validate({ rules: { name: "required", email: { required: !0, email: !0 }, company: "required", service: "required", phone: "required" }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $("#get_in_touch_body").validate({ rules: { name: "required", email: { required: !0, email: !0 }, company: "required", service: "required", phone: "required" }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $("#contact_form").validate({ rules: { name: "required", email: { required: !0, email: !0 }, company: "required", service: "required", phone: "required" }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $("#sub").validate({ rules: { email: { required: !0, email: !0 } }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $("#career_form").validate({ rules: { name: "required", email: { required: !0, email: !0 }, position: "required", myfile: { required: !0, accept: "application/pdf, .doc,.docx" } }, errorPlacement: function (e, i) { return !0 }, submitHandler: function (e) { e.submit() } }), $(".cm-parallax-wrapper").length > 0 && window.addEventListener("scroll", (a = function () { var e = window.pageYOffset, i = document.querySelector(".cm-bg-parallax"), s = .5 * e + "px"; i.style.transform = "translateY(" + s + ")" }, l = 14, d = Date.now(), function () { d + l - Date.now() < 0 && (a(), d = Date.now()) })), $(".cm-faq-header").click(function () { $(this).next(".cm-faq-content").slideToggle(), $(this).parent().toggleClass("cm-faq-active"), $(this).parent().siblings().find(".cm-faq-content").slideUp(), $(this).parent().siblings().removeClass("cm-faq-active") }), $(".cm-industry-choose-item").css("padding-top", $(".cm-industry-choose-right-col .cm-ind-heading").outerHeight() + 150 + "px"), $(".cm-react-slider-1").slick({ dots: !1, arrows: !0, infinite: !0, speed: 500, slidesToShow: 1, adaptiveHeight: !0 }), $(".cm-slider-clients").slick({ dots: !1, arrows: !0, infinite: !0, speed: 500, slidesToShow: 2, slidesToScroll: 1, adaptiveHeight: !0, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 600, settings: { slidesToShow: 1, slidesToScroll: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } }] }), $(".cm-slider-clients-kotlin").slick({ centerMode: !0, centerPadding: "80px", slidesToShow: 3, responsive: [{ breakpoint: 768, settings: { arrows: !1, centerMode: !1, centerPadding: "40px", slidesToShow: 1 } }, { breakpoint: 480, settings: { arrows: !1, centerMode: !1, centerPadding: "10px", slidesToShow: 1 } }] }), $(".project-crm").slick() });
$(document).ready(function () {
var countrySelector = $('#countrySelector')
countrySelector.on('change', function () {
var countryVal = $(this).val()
var baseUrl = window.location.origin
$(location).attr('href', `${baseUrl}/${countryVal}`)
if (countryVal === 'india') {
$(location).attr('href', `${baseUrl}`)
}
})
var pathName = location.pathname.split('/')[1]
countrySelector.val(pathName)
})
$(document).ready(function () {
$(window).scroll(function () {
if ($(window).scrollTop() >= $('header').height()) {
$('header').addClass('header-sticky')
} else {
$('header').removeClass('header-sticky')
}
})
$('.drop_down').hover(function () {
$(this).find('.tech-dev:not(:first-of-type)').addClass('hover-after')
$(this).addClass('show_dropdown').siblings().removeClass('show_dropdown')
$('.tab-bg').css({
width: $(this).find('.tech-tab li:first-of-type').outerWidth(),
height: $(this).find('.tech-tab li:first-of-type').outerHeight(),
top: $(this).find('.tech-tab li:first-of-type').position().top,
left: $(this).find('.tech-tab li:first-of-type').position().left
})
// $(this).find('.submenu-he').css({ height: `${$(this).find('.submenu').outerHeight()}px` })
})
$('.tech-tab li').hover(function (e) {
let wi = $(this).outerWidth()
let hi = $(this).outerHeight()
let top = $(this).position().top
let left = $(this).position().left
let tab_id = $(this).attr('data-id')
$('.tab-bg').css({ width: wi, height: hi, top: top, left: left })
$('#' + tab_id).removeClass('hover-after').nextAll().addClass('hover-after')
$('#' + tab_id).removeClass('hover-before').prevAll().addClass('hover-before')
});
$(document).on('mouseleave', '.drop_down', function (e) {
$(".drop_down").removeClass('show_dropdown');
$('.tech-dev').removeClass('hover-before hover-after')
console.log(e)
});
$('.humburger-toggle').click(function () {
$(this).toggleClass('active')
$('.mobileMenu-box').toggleClass('show-menu')
$('body').toggleClass('overflow')
})
$('.mobile_trigger').click(function () {
$(this).parents('.mobile-dropdown').addClass('submenu-active')
})
$('.back-btn').click(function () {
$(this).parents('.mobile-menu').find('li').removeClass('submenu-active')
$(this).parents('.mobile-menu').find('.mobile-submenu-child').slideUp();
})
$('.mobile-dropdown-children .mobile_trigger').click(function () {
$(this).next().slideToggle().parents('.mobile-dropdown-children').siblings().find('.mobile-submenu-child').slideUp();
$(this).parents('.mobile-dropdown-children').toggleClass('submenu-active').siblings().removeClass('submenu-active')
})
$('.expertise-slidder').slick({
dots: false,
infinite: true,
arrows: true,
slidesToShow: 2,
slidesToScroll: 1,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
dots: false
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
})