index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <meta name="viewport"
  7. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  8. <title>
  9. <%= htmlWebpackPlugin.options.title %>
  10. </title>
  11. <script>
  12. document.addEventListener('DOMContentLoaded', function() {
  13. document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  14. })
  15. </script>
  16. <link rel="stylesheet" href="<%= htmlWebpackPlugin.options.baseUrl %>static/index.css" />
  17. <!-- 引入外部js -->
  18. <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
  19. <script type="text/javascript">
  20. // 获取ip
  21. console.log(returnCitySN["cip"] + ',' + returnCitySN["cname"]);
  22. localStorage.setItem('Ip', returnCitySN["cip"]);
  23. </script>
  24. <script>
  25. var _hmt = _hmt || [];
  26. (function() {
  27. console.log(1111111111111)
  28. var hm = document.createElement("script");
  29. hm.src = "https://hm.baidu.com/hm.js?4a14570d894fcf5a82a160f7cefc21ce";
  30. var s = document.getElementsByTagName("script")[0];
  31. s.parentNode.insertBefore(hm, s);
  32. })();
  33. </script>
  34. </head>
  35. <body>
  36. <noscript>
  37. <strong>Please enable JavaScript to continue.</strong>
  38. </noscript>
  39. <div id="app"></div>
  40. <!-- built files will be auto injected -->
  41. </body>
  42. </html>