height: 160, text: iosUrl, typeNumber: -1, correctLevel: 2, background: "#ffffff", foreground: "#000000" }); } function isH5() { var ua = navigator.userAgent; if (ua.indexOf("Mobile") > -1 || ua.indexOf("Android") > -1 || ua.indexOf("iPhone") > -1 || ua.indexOf("iPad") > -1) { return true; } else { return false; } } const pcState = isH5() $(".cms_apk_download").click(() => { if (isH5()) { window.location.href = "" } else { } }) $(".cms_ios_download").click(() => { if (isH5()) { window.location.href = "/libs/ios/downloads.html" } else { } }) $(window).scroll(function () { if ($(window).scrollTop() >= 500) { $('#cms_go_top').css('display', 'block'); } else { $('#cms_go_top').css('display', 'none'); } }); $('#cms_go_top').click(function () { $('html,body').animate({ 'scrollTop': 0 }); }) $(".cms_app_hover").mousemove(function () { const index = $(".cms_app_hover").index(this) if (!pcState) { $(".cms_sideslip").eq(index).show() } }) $(".cms_app_hover").mouseleave(function () { const index = $(".cms_app_hover").index(this) if (!pcState) { $(".cms_sideslip").eq(index).hide() } }) á