index.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <!-- 设置苹果工具栏颜色 -->
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11. <!-- 忽略页面中的数字识别为电话,忽略email识别 -->
  12. <meta name="format-detection" content="telphone=no, email=no" />
  13. <!-- 启用360浏览器的极速模式(webkit) -->
  14. <meta name="renderer" content="webkit" />
  15. <!-- 避免IE使用兼容模式 -->
  16. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  17. <meta name="HandheldFriendly" content="true" />
  18. <!-- uc强制竖屏 -->
  19. <meta name="screen-orientation" content="portrait" />
  20. <!-- QQ强制竖屏 -->
  21. <meta name="x5-orientation" content="portrait" />
  22. <!-- UC强制全屏 -->
  23. <meta name="full-screen" content="yes" />
  24. <!-- QQ强制全屏 -->
  25. <meta name="x5-fullscreen" content="true" />
  26. <!-- UC应用模式 -->
  27. <meta name="browsermode" content="application" />
  28. <!-- QQ应用模式 -->
  29. <meta name="x5-page-mode" content="app" />
  30. <!-- 设置在apple上以应用模式启动时,是否全屏 -->
  31. <meta name="apple-touch-fullscreen" content="yes" />
  32. <!-- windows phone 点击无高光 -->
  33. <meta name="msapplication-tap-highlight" content="no" />
  34. <title>酷乐秀</title>
  35. <link href="/tcplayer.min.css" rel="stylesheet" />
  36. <script>
  37. if (/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(navigator.userAgent) || window.innerWidth < 1000) {
  38. if (/(localhost|192)/ig.test(location.origin)) {
  39. location.href = 'https://dev.colexiu.com/mobile'
  40. } else {
  41. location.href = location.origin + '/mobile'
  42. }
  43. }
  44. </script>
  45. </head>
  46. <body>
  47. <div id="app"></div>
  48. <script type="module" src="/src/views/main.ts"></script>
  49. </body>
  50. </html>