index.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <base href="/pos/">
  6. <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  7. <title>Forward POS</title>
  8. <meta name="description" content="Forward POS">
  9. <link rel="shortcut icon" sizes="32x32" href="images/forward-48x48.png">
  10. <meta property="og:type" content="website">
  11. <meta property="og:site_name" content="Forward POS">
  12. <meta name="theme-color" content="#fff">
  13. <link rel="manifest" href="manifest.json">
  14. <style>
  15. body {
  16. margin: 0;
  17. font-family: 'Roboto', 'Noto', sans-serif;
  18. font-size: 13px;
  19. line-height: 0.5;
  20. min-height: 100vh;
  21. }
  22. /* styling for render while resources are loading */
  23. shop-app[unresolved] {
  24. display: block;
  25. min-height: 101vh;
  26. line-height: 68px;
  27. text-align: center;
  28. font-size: 16px;
  29. font-weight: 600;
  30. letter-spacing: 0.3em;
  31. color: #202020;
  32. padding: 0 16px;
  33. overflow: visible;
  34. }
  35. </style>
  36. </head>
  37. <body style="background-color:darkgray">
  38. <main>
  39. <pos-app></pos-app>
  40. </main>
  41. <script>
  42. // HACK(keanulee): The Redux package assumes `process` exists - mock it here before
  43. // the module is loaded.
  44. window.process = {
  45. env: {
  46. NODE_ENV: 'production'
  47. }
  48. };
  49. window.host=window.location.hostname;
  50. window.port=window.location.port;
  51. window.hostUrl="http://"+window.host+":"+window.port;
  52. </script>
  53. <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
  54. <script>
  55. // Subset of fetch polyfill for IE11 (supports GET requests for JSON only).
  56. // Requires Promise to be defined.
  57. window.fetch = window.fetch || function(url) {
  58. return new Promise(function(resolve, reject) {
  59. var xhr = new XMLHttpRequest();
  60. xhr.onload = function() {
  61. resolve({
  62. json: function() {
  63. return new Promise(function(resolve, reject) {
  64. try {
  65. resolve(JSON.parse(xhr.responseText));
  66. } catch (e) {
  67. reject(e);
  68. }
  69. });
  70. }
  71. });
  72. };
  73. xhr.onerror = reject;
  74. xhr.open('GET', url);
  75. xhr.send();
  76. });
  77. };
  78. </script>
  79. <script>
  80. if ('serviceWorker' in window.navigator) {
  81. window.addEventListener('load', function() {
  82. window.navigator.serviceWorker.register('service-worker.js', {scope: '/'});
  83. });
  84. }
  85. </script>
  86. <!-- <script type="module" src="src/components/pos-app.js" crossorigin></script> -->
  87. <script type="text/javascript" src="main.b0f43c75.js"></script></body>
  88. </html>