index.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <title>
  7. <%= htmlWebpackPlugin.options.title %>
  8. </title>
  9. <!-- Open Graph data -->
  10. <!-- <meta property="og:title" content="Title Here" /> -->
  11. <!-- <meta property="og:url" content="http://www.example.com/" /> -->
  12. <!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
  13. <!-- <meta property="og:description" content="Description Here" />
  14. <script type="text/javascript" src="https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/web_sdk_js/jsvm_all.js" ></script>
  15. -->
  16. <script>
  17. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
  18. document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  19. </script>
  20. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  21. <script src=https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/web_sdk_js/jsvm_all.js></script>
  22. <script src="https://cstaticdun.126.net/load.min.js?t=201903281201"></script>
  23. </head>
  24. <body>
  25. <noscript>
  26. <strong>Please enable JavaScript to continue.</strong>
  27. </noscript>
  28. <script src="https://cstaticdun.126.net/load.min.js?t=201903281201"></script>
  29. <div id="app"></div>
  30. <!-- built files will be auto injected -->
  31. </body>
  32. </html>
  33. <script>if(("standalone" in window.navigator) && window.navigator.standalone){
  34. var noddy, remotes = false;
  35. document.addEventListener('click', function(event) {
  36. noddy = event.target;
  37. while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
  38. noddy = noddy.parentNode;
  39. }
  40. if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes)){
  41. event.preventDefault();
  42. document.location.href = noddy.href;
  43. }
  44. },false);
  45. }
  46. </script>