function videoModal() { if ($('.popup-controller').length > 0) { var videoTemplate = '
'; $('body').append(videoTemplate); } $(document).on('click', '.popup-controller', function () { var videoURL = $(this).data('video'); var videoControl = "?rel=0&autoplay=1&showinfo=0&autohide=1&mute=1"; $('body').addClass('lock'); $('.z-video-modal').fadeIn(); $('.z-video-box').append(''); setTimeout(function () { $('.z-video-modal').addClass('click-out'); }, 500); }); $(document).on('click', '.z-video-close', function () { $('.z-video-modal').fadeOut(); $('body').removeClass('lock'); $('.z-video-iframe').remove(); $('.z-video-modal').removeClass('click-out'); }); $(document).on('click', '.click-out', function () { $('.z-video-modal').fadeOut(); $('body').removeClass('lock'); $('.z-video-iframe').remove(); $('.z-video-modal').removeClass('click-out'); }); $(document).keyup(function (e) { if (e.keyCode === 27) { $('.z-video-modal').fadeOut(); $('body').removeClass('lock'); $('.z-video-iframe').remove(); $('.z-video-modal').removeClass('click-out'); } }); } function subfeature() { var wW = $(window).outerWidth(); var feaTable = $('.feature-ss-table'); var feaCon = '.feature-ss-content'; var feaSubCon = '.feature-ss-subcontent'; var feaMedia = '.feature-ss-media'; feaTable.each(function () { var that = $(this); if (wW < 992) { if (that.hasClass('media-right')) { if (that.hasClass('sub-features')) { that.find(feaCon).after(that.find(feaMedia)); that.find(feaMedia).after(that.find(feaSubCon)); } else { that.find(feaCon).after(that.find(feaMedia)); } } else if (that.hasClass('media-left')) { that.find(feaCon).after(that.find(feaMedia)); } else if (that.hasClass('media-bottom') || that.hasClass('media-top')) { that.find(feaCon).after(that.find(feaMedia)); } } else { if (that.hasClass('media-right')) { if (that.hasClass('sub-features')) { that.find(feaSubCon).after(that.find(feaCon)); that.find(feaMedia).appendTo(that.find(feaCon)); } else { that.find(feaCon).after(that.find(feaMedia)); } } else if (that.hasClass('media-left')) { if (that.hasClass('sub-features')) { that.find(feaCon).after(that.find(feaSubCon)); that.find(feaMedia).appendTo(that.find(feaCon)); } else { that.find(feaCon).before(that.find(feaMedia)); } } else if (that.hasClass('media-bottom')) { if (that.hasClass('sub-features')) { that.find(feaSubCon).after(that.find(feaMedia)); } else { that.find(feaCon).after(that.find(feaMedia)); } } else if (that.hasClass('media-top')) { if (that.hasClass('sub-features')) { that.find(feaSubCon).before(that.find(feaMedia)); } else { that.find(feaCon).after(that.find(feaMedia)); } } } }); } function featuresSectionRearrange() { var wW = $(window).outerWidth(); if (4 == featuresBox.length) $(".features-box-wrap").addClass("features-box-col2"), $(featuresSectionElements[0]).appendTo($(".features-box-column-1")), $(featuresSectionElements[2]).appendTo($(".features-box-column-1")), $(featuresSectionElements[1]).appendTo($(".features-box-column-2")), $(featuresSectionElements[3]).appendTo($(".features-box-column-2")), $(".features-box-column-3").remove(); else if (3 == featuresBox.length || featuresBox.length > 4) if (wW > 991) featuresBoxMoved = !1, $(".features-box-wrap").addClass("features-box-col3"), jQuery.each(featuresSectionElementsArranged1, function (e, t) { $(t).appendTo($(".features-box-column-1")) }), jQuery.each(featuresSectionElementsArranged2, function (e, t) { $(t).appendTo($(".features-box-column-2")) }), jQuery.each(featuresSectionElementsArranged3, function (e, t) { $(t).appendTo($(".features-box-column-3")) }), $(".features-box-wrap").find(".features-box").css("height", "auto"); else if (0 == featuresBoxMoved && (featuresBoxMoved = !0, jQuery.each(featuresSectionElements, function (e, t) { $(t).appendTo($(".features-box-wrap")) })), wW > 767) { var e = 0; $(".features-box-wrap .features-box").each(function (t, a) { e < $(this).children("div").height() && (e = $(this).children("div").height()) }), $(".features-box-wrap .features-box").height(e) } else featuresBoxMoved = !1, $(".features-box-wrap").find(".features-box").css("height", "auto") } function featuresSectionArray() { $(".features-box-wrap").find(".features-box").each(function (e, t) { featuresSectionElements.push($(this)) }), (3 == featuresBox.length || featuresBox.length > 4) && $(".features-box-wrap").find(".features-box").each(function (e, t) { var a = (e + 1) % 3; 1 == a && featuresSectionElementsArranged1.push($(this)), 2 == a && featuresSectionElementsArranged2.push($(this)), 0 == a && featuresSectionElementsArranged3.push($(this)) }), featuresSectionRearrange() } function getParameterByName(e, t) { t || (t = window.location.href), e = e.replace(/[\[\]]/g, "\\$&"); var a = new RegExp("[?&]" + e + "(=([^]*)|&|#|$)").exec(t); return a ? a[2] ? decodeURIComponent(a[2].replace(/\+/g, " ")) : "" : null } $(document).ready(function () { //videoModal(); subfeature(); $('.integration-visual-wrap li').each(function () { var that = $(this); if (that.find('a').length) { var link = that.find('a').attr('href'); var linkText = that.find('a').text(); that.find('a').remove(); that.find('div').wrap(''); that.find('div').text(linkText); } }); }); function customeCallWatchBtn() { var wW = $(window).outerWidth(); if (wW > 992 && $(".zp-home-left .watch-btn").length && !$(".main-container-wrapper").hasClass("umain")){ $(".zp-home-left .watch-btn").css("display", "inline-block"); } else if (wW <= 992 && $(".zp-home-left .watch-btn").length && !$(".main-container-wrapper").hasClass("umain")) { $(".zp-home-left .watch-btn").css("display", "none"); } } $(window).on('load', function () { setTimeout(function () { $(window).resize(function(){ customeCallWatchBtn(); }); }, 1000); $(".zp-home-banner-wrap").addClass("zp-home-banner-wrap-before") }); $(document).ready(function (e) { /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()) ? /iphone|ipad/i.test(navigator.userAgent.toLowerCase()) ? $(".apps-download-links-wrap a.app-store").length ? $(".apps-download-links-wrap a.app-store").css("display", "inline-block") : $(".apps-download-links-wrap").css("display", "none") : /android/i.test(navigator.userAgent.toLowerCase()) && ($(".apps-download-links-wrap a.g-play").length ? $(".apps-download-links-wrap a.g-play").css("display", "inline-block") : $(".apps-download-links-wrap").css("display", "none")) : 0 == $(".apps-download-links-wrap a.app-store").length && 0 == $(".apps-download-links-wrap a.g-play").length ? $(".apps-download-links-wrap, .apps-download-links-wrap a").css("display", "none") : ($(".apps-download-links-wrap a.app-store").length && $(".apps-download-links-wrap a.app-store").css("display", "inline-block"), $(".apps-download-links-wrap a.g-play").length && $(".apps-download-links-wrap a.g-play").css("display", "inline-block")), /webOS|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && $(".zp-home-banner-wrap .apps-download-links-wrap").hide(); }); var featuresBoxMoved = !1, featuresBox, featuresSectionElements = [], featuresSectionElementsArranged1 = [], featuresSectionElementsArranged2 = [], featuresSectionElementsArranged3 = []; $(document).ready(function (e) { featuresBox = $(".features-box-wrap").find(".features-box"), featuresSectionArray() }), $(window).resize(function () { featuresSectionRearrange() }), $(window).on('scroll', function () { var e = 170; if ($(".trust-brands-wrap").length) { if (($(window).scrollTop() + $(window).height() / 1.1) > $(".trust-brands-wrap").offset().top) { $(".trust-brands-wrap li").each(function () { var t = $(this); e += 170, setTimeout(function () { t.css({ opacity: "1", transform: "scale(1,1)", "webkit-transform": "scale(1,1)" }); }, e); }); } } }); $(window).on('resize', function () { subfeature(); }); if (typeof isMobile != 'undefined' && isMobile) { $('.apps-download-links-wrap.web').hide(); $('.apps-download-links-wrap.mobile>a').css('display', 'inline-block'); $('.apps-download-links-wrap.mobile').show(); } else { $('.apps-download-links-wrap.web>a').css('display', 'inline-block'); $('.apps-download-links-wrap.web').show(); $('.apps-download-links-wrap.mobile').hide(); } if (/iphone|ipad/i.test(navigator.userAgent.toLowerCase())) { $('.apps-download-links-wrap.mobile>a').css('display', 'none'); $('.apps-download-links-wrap.mobile .app-store').css('display', 'inline-block'); } else if (/android/i.test(navigator.userAgent.toLowerCase())) { $('.apps-download-links-wrap.mobile>a').css('display', 'none'); $('.apps-download-links-wrap.mobile .g-play').css('display', 'inline-block'); } else if (/WPDesktop/i.test(navigator.userAgent.toLowerCase())) { $('.apps-download-links-wrap.mobile>a').css('display', 'none'); $('.apps-download-links-wrap.mobile .windows-app').css('display', 'inline-block'); }