|
|
@@ -32,7 +32,7 @@
|
|
|
width: 100%;
|
|
|
background: #e6eaf0;
|
|
|
font-family: '黑体';
|
|
|
- }</style><link href=./static/css/app.ac9375bdd63edff5c3011fc806ee0479.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.23ea04dc469b57e2b4f8.js></script><script type=text/javascript src=./static/js/vendor.dfc8a8e3392292c7b8e5.js></script><script type=text/javascript src=./static/js/app.98a9c07c17c04bb9f7fc.js></script></body></html><script>function stopSafari() {
|
|
|
+ }</style><link href=./static/css/app.c10c171b082e3f72128f7f30a3c8180c.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.23ea04dc469b57e2b4f8.js></script><script type=text/javascript src=./static/js/vendor.dfc8a8e3392292c7b8e5.js></script><script type=text/javascript src=./static/js/app.3fe1ea5ccd6fbc1a1e4f.js></script></body></html><script>function stopSafari() {
|
|
|
//阻止safari浏览器双击放大功能
|
|
|
let lastTouchEnd = 0 //更新手指弹起的时间
|
|
|
document.documentElement.addEventListener("touchstart", function (event) {
|
|
|
@@ -81,6 +81,25 @@
|
|
|
}
|
|
|
}
|
|
|
window.topU = topU
|
|
|
+
|
|
|
+ // 根据语言设置字体
|
|
|
+ let lang = 'cn';
|
|
|
+ if (window.location.href.includes("cocorobo.cn")) {
|
|
|
+ lang = 'cn';
|
|
|
+ } else if (window.location.href.includes("cocorobo.hk")) {
|
|
|
+ lang = 'hk';
|
|
|
+ } else if (window.location.href.includes("cocorobo.com")) {
|
|
|
+ lang = 'com';
|
|
|
+ } else {
|
|
|
+ lang = 'com';
|
|
|
+ }
|
|
|
+
|
|
|
+ // 如果 lang != 'com',使用黑体,否则使用默认字体栈
|
|
|
+ if (lang != 'com') {
|
|
|
+ document.body.style.fontFamily = '黑体';
|
|
|
+ } else {
|
|
|
+ document.body.style.fontFamily = 'ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|