diff --git a/js/main.js b/js/main.js index 962dea6..84535c8 100644 --- a/js/main.js +++ b/js/main.js @@ -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) \ No newline at end of file +%c${content}`, styleTitle1, styleTitle2, styleContent)