Merge pull request #10 from Waynenet/master

移动端去除鼠标样式
This commit is contained in:
底层用户 2022-07-01 09:04:59 +08:00 committed by GitHub
commit 966580e3d8
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)