Fix 移动端去除鼠标样式

This commit is contained in:
底层用户 2022-08-04 10:41:47 +08:00
parent b4d0e55e8f
commit ed11a572c9

View File

@ -40,11 +40,7 @@ body.addEventListener('mousemove', (e) => {
}); });
}); });
//移动端去除鼠标样式
switch (true) {
case navigator.userAgent.indexOf('Mobile') > 0:
$('#g-pointer-2').css("display", "none");
}
//加载完成后执行 //加载完成后执行
window.addEventListener('load', function () { window.addEventListener('load', function () {
@ -79,6 +75,11 @@ window.addEventListener('load', function () {
// ); // );
// document.fonts.add(font); // document.fonts.add(font);
//移动端去除鼠标样式
if (Boolean(window.navigator.userAgent.match(/AppWebKit.*Mobile.*/))) {
$('#g-pointer-2').css("display", "none");
}
}, false) }, false)
setTimeout(function () { setTimeout(function () {
@ -388,7 +389,7 @@ document.oncontextmenu = function () {
} }
//控制台输出 //控制台输出
console.clear(); //console.clear();
let styleTitle1 = ` let styleTitle1 = `
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;