| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta
- name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
- />
- <script>
- function isPC () {
- const ua = navigator.userAgent;
- const platform = navigator.platform;
- // 移动设备检测
- const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i;
- const isMobile = mobileRegex.test(ua);
- // 平板设备检测
- const tabletRegex = /iPad|Tablet|PlayBook|Silk|Kindle|(Android(?!.*Mobile))|(Windows(?!.*Phone))(.*Touch)/i;
- const isTablet = tabletRegex.test(ua);
- // 屏幕尺寸检测
- const isSmallScreen = window.innerWidth < 768;
- // 触摸支持检测
- const hasTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
- // 如果是移动设备、平板设备、小屏幕设备,则不是PC
- if (isMobile || isTablet || isSmallScreen) {
- return false;
- }
- // 额外的PC特征检测
- const isWindows = /Win/i.test(platform);
- const isMac = /Mac/i.test(platform);
- const isLinux = /Linux/i.test(platform);
- return (isWindows || isMac || isLinux) && !hasTouch;
- }
- if (isPC()) {
- window.location.replace('https://callweb.wefanbot.com')
- }
- window.addEventListener('resize', function() {
- if (isPC()) {
- window.location.replace('https://callweb.wefanbot.com')
- }
- })
- </script>
- <title></title>
- <!--preload-links-->
- <!--app-context-->
- </head>
- <body>
- <div id="app"><!--app-html--></div>
- <script type="module" src="/main.js"></script>
- </body>
- </html>
|