chore: 并入原项目的史山

This commit is contained in:
MoonLeeeaf
2025-03-30 12:17:48 +08:00
parent 3897eda30d
commit 1277f208f7
10 changed files with 1054 additions and 0 deletions

30
client/utils-shared.js Normal file
View File

@@ -0,0 +1,30 @@
/*
* ©2024 The LingChair Project
*
* Make a more colorful world...
*
* License - Apache License 2.0
* Author - @MoonLeeeaf <https://github.com/MoonLeeeaf>
* Organization - @LingChair <https://github.com/LingChair>
*/
/**
* ========================================================
* 移动端检测
* ========================================================
*/
const isMobile = () => ('ontouchstart' in document.documentElement)
/**
* ========================================================
* 移动端调试
* ========================================================
*/
if (isMobile()) {
let a = document.createElement('script')
a.src = "https://unpkg.com/eruda/eruda.js"
a.onload = () => eruda.init()
document.head.appendChild(a)
}