var $containNavAfter=$(".afterbg"),$contain=$(".contain");$(".contain-nav").on("click","span",function(){$containNavAfter.css("transform","translateX("+this.offsetLeft+"px)");$(".contain-nav .tabs-nav").removeClass("nav-afterbg");$(this).addClass("nav-afterbg");var a=$(this).attr("data-type"),n=$(this).siblings("span");$(this).find("em").css("color","#3C7CF3"),n.find("em").css("color","#021C31"),$(this).find("img").attr("src","/wp-content/themes/wft/static/img/dlDetails/image/nav/"+a+"-active.png?123");for(var o=0;o<n.length;o++){var i=$(n[o]).attr("data-type");$(n[o]).find("img").attr("src","/wp-content/themes/wft/static/img/dlDetails/image/nav/"+i+".png?123");}
var t=$(this).index();$contain.find(".main").siblings().removeClass("display-block").addClass("display-none").eq(t).addClass("display-block"),window.localStorage.setItem("selectType",a);});var $qrcodeWrapper=$(".qr-code-wrapper"),$qrcodeContain=$(".qr-code-contain");$qrcodeWrapper.hover(function(){$qrcodeContain.stop().slideDown(200);},function(){$qrcodeContain.stop().slideUp();});var $apkDownloadWrapper=$(".apk-download-wrapper"),$apkDownloadPopup=$(".apk-download-popup");$apkDownloadWrapper.hover(function(){$apkDownloadPopup.stop().slideDown(200);},function(){$apkDownloadPopup.stop().slideUp();});var $verifyApkBtn=$("#verify-apk-btn"),$verifyApkDetailsPop=$("#verify-apk-details-pop"),$verifyApkBtnIcon=$("#verify-apk-btn-icon");$verifyApkBtn.on("click",function(a){var n=$verifyApkDetailsPop.is(":visible");a.stopPropagation(),n?($verifyApkDetailsPop.stop().slideUp(),$verifyApkBtnIcon.removeClass("active")):($verifyApkDetailsPop.stop().slideDown(200),$verifyApkBtnIcon.addClass("active"));}),$verifyApkDetailsPop.on("click",function(a){a.stopPropagation();}),$(document).on("click",function(){$verifyApkDetailsPop.stop().slideUp(),$verifyApkBtnIcon.removeClass("active");}),$(function(){const isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);const isAndroid=/Android/i.test(navigator.userAgent);const isApple=/iPad|iPhone|iPod/i.test(navigator.userAgent);let a=window.localStorage.getItem("selectType")||"android";if(isMobile&&isAndroid){a="android";}else if(isMobile&&isApple){a="ios";}else{a="pc";}
let n=$(".contain-nav span[data-type="+a+"]");let o=0;if(!$(n)[0]){return;}
o=$(n)[0].offsetLeft;$containNavAfter.css("transform","translateX("+o+"px)");$(".contain-nav .tabs-nav").removeClass("nav-afterbg");n.addClass("nav-afterbg");var i=$(n).siblings("span");$(n).find("em").css("color","#3C7CF3"),i.find("em").css("color","#021C31"),$(n).find("img").attr("src","/wp-content/themes/wft/static/img/dlDetails/image/nav/"+a+"-active.png?123");for(var t=0;t<i.length;t++){var e=$(i[t]).attr("data-type");$(i[t]).find("img").attr("src","/wp-content/themes/wft/static/img/dlDetails/image/nav/"+e+".png?123");}
var s=$(n).index();$contain.find(".main").siblings().removeClass("display-block").addClass("display-none").eq(s).addClass("display-block"),window.localStorage.removeItem("selectType");});