移动端去除鼠标样式

移动端去除鼠标样式
This commit is contained in:
Wayne 2022-06-30 16:23:38 +08:00 committed by GitHub
parent 1eab49d8bb
commit 3489249f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,12 @@ body.addEventListener('mousemove', (e) => {
});
});
//移动端去除鼠标样式
switch (true) {
case navigator.userAgent.indexOf('Mobile') > 0:
$('#g-pointer-2').css("display", "none");
}
//加载完成后执行
window.addEventListener('load', function () {
@ -389,4 +395,4 @@ var content = `
Github: https://github.com/imsyy/home
`
console.log(`%c${title1} %c${title2}
%c${content}`, styleTitle1, styleTitle2, styleContent)
%c${content}`, styleTitle1, styleTitle2, styleContent)