h5.template.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <script>
  7. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
  8. CSS.supports('top: constant(a)'))
  9. document.write(
  10. '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
  11. (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  12. </script>
  13. <title>
  14. <%= htmlWebpackPlugin.options.title %>
  15. </title>
  16. <script>
  17. var UA = window.navigator.userAgent.toLowerCase();
  18. var isAndroid = UA.indexOf('android') > 0;
  19. var isIOS = /iphone|ipad|ipod|ios/.test(UA);
  20. if (!(isAndroid || isIOS)) {
  21. // 正式发布的时候使用,开发期间不启用。
  22. // window.location.href = '/demo/news/website/pcguide.html';
  23. }
  24. </script>
  25. <link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
  26. </head>
  27. <body>
  28. <!-- 该文件为 H5 平台的模板 HTML,并非应用入口,请勿直接运行此文件。 -->
  29. <!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
  30. <noscript>
  31. <strong>Please enable JavaScript to continue.</strong>
  32. </noscript>
  33. <div id="app"></div>
  34. <!-- built files will be auto injected -->
  35. <script>
  36. var _hmt = _hmt || [];
  37. (function() {
  38. var hm = document.createElement("script");
  39. hm.src = "https://hm.baidu.com/hm.js?fe3b7a223fc08c795f0f4b6350703e6f";
  40. var s = document.getElementsByTagName("script")[0];
  41. s.parentNode.insertBefore(hm, s);
  42. })();
  43. </script>
  44. </body>
  45. </html>