t> $(function () { var appDescription = $(".faq-list").addClass("limit-height too-height"); $(".desc-show-more").css("display","block"); var time,dot = "..."; (function setTimeout() { window.clearTimeout(time); if (dot == "...") { dot = "."; } else { dot += "."; } time = window.setTimeout(function(){ $("#dot").text(dot); setTimeout(); },500); })(); var jinzhi=0; document.getElementsByClassName("fixed")[0].addEventListener("touchmove",function(e){ if(jinzhi==0){ e.preventDefault(); e.stopPropagation(); } },false); var related_app = new Swiper('.related_app', { slidesPerView: "auto", slidesPerColumn : 2, onInit: function(swiper){ let _width = parseInt($(swiper.wrapper).css("width")) + 1; $(swiper.wrapper).css("width",_width + "px"); }, onAfterResize: function(swiper){ let _width = parseInt($(swiper.wrapper).css("width")) + 1; $(swiper.wrapper).css("width",_width + "px"); } }); $(".desc-show-more").click(function() { if ($(".faq-list").hasClass("limit-height")) { $(this).addClass("active"); $(".faq-list").removeClass("limit-height"); $(".show-more-end").css("display","none"); $(this).find("span").text("कम दिखाएं"); } else { $(this).removeClass("active"); $(".faq-list").addClass("limit-height"); $(".show-more-end").css("display","block"); $(this).find("span").text("और दिखाएं"); } }); $("#downloadBtn1").click(function () { $(this).css("display","none"); $(".download-content").css("display","block"); }); $(".nav-list-icon").on("click",function () { if ($(this).hasClass("active")) { $(".more-language").css("display","none"); $(this).removeClass("active"); } else { $(".more-language").css("display","block"); $(this).addClass("active"); } }); $("body").click(function(e) { if ($(e.target).hasClass("nav-list-icon") || $(e.target).parent().hasClass("nav-list-icon")) { return; } if ($(".nav-list-icon").hasClass("active")) { $(".more-language").css("display","none"); $(".nav-list-icon").removeClass("active"); } }); $(".more-language").on("click","a",function () { var exp = new Date(); exp.setFullYear(exp.getFullYear()+100); var preferred_lang = $(this).attr("data-lang"); if (preferred_lang == "cn") return; document.cookie = "preferred_lang="+preferred_lang+";path=/;domain=.memuplay.com;expires=" + exp.toGMTString(); }); })