index.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <title><%= htmlWebpackPlugin.options.title %></title>
  8. <!-- <script>
  9. !function(d,a){var e=d.documentElement,c="orientationchange"in window?"orientationchange":"resize",v=function(){
  10. var f=e.clientWidth, ratio=1;
  11. if(f > 750 && f < 1300) {
  12. f = 1300;
  13. ratio = 1920 / 750;
  14. }
  15. if(f >= 1300) {
  16. f = 1920;
  17. ratio = 1920 / 750;
  18. }
  19. var p=20*(f/320) / ratio
  20. f&&(e.style.fontSize=p+"px")
  21. };d.addEventListener&&(a.addEventListener(c,v,!1),d.addEventListener("DOMContentLoaded",v,!1))}(document,window);
  22. </script> -->
  23. </head>
  24. <body>
  25. <div id="app"></div>
  26. <script>
  27. window.EOS_PROTOCOL = 'https'
  28. window.EOS_HOST = 'proxy.eosnode.tools'
  29. window.EOS_PORT = '443'
  30. // if ('serviceWorker' in navigator) {
  31. // window.addEventListener('load', function () {
  32. // navigator.serviceWorker.register('/sw.js')
  33. // .then(function (registration) {
  34. // console.log('ServiceWorker registration successful')
  35. // // console.log('ServiceWorker registration successful with scope: ', registration.scope)
  36. // })
  37. // .catch(function (err) {
  38. // console.log('ServiceWorker registration failed: ', err)
  39. // })
  40. // })
  41. // }
  42. </script>
  43. <!-- built files will be auto injected -->
  44. </body>
  45. </html>