123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!--
- @license
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
- Code distributed by Google as part of the polymer project is also
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
- -->
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <base href="/">
- <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
- <title>TO DO</title>
- <meta name="description" content="Polymer Shop Demo">
- <link rel="shortcut icon" sizes="32x32" href="images/shop-icon-32.png">
- <meta name="twitter:card" content="summary">
- <meta name="twitter:site" content="@Polymer">
- <meta property="og:type" content="website">
- <meta property="og:site_name" content="SHOP">
- <meta name="theme-color" content="#fff">
- <link rel="manifest" href="manifest.json">
- <style>
- body {
- margin: 0;
- font-family: 'Roboto', 'Noto', sans-serif;
- font-size: 13px;
- line-height: 0.5;
- min-height: 100vh;
- }
- /* styling for render while resources are loading */
- shop-app[unresolved] {
- display: block;
- min-height: 101vh;
- line-height: 68px;
- text-align: center;
- font-size: 16px;
- font-weight: 600;
- letter-spacing: 0.3em;
- color: #202020;
- padding: 0 16px;
- overflow: visible;
- }
- </style>
- </head>
- <body>
- <main>
- <!-- <shop-app unresolved>TO DO</shop-app> -->
- <!-- <todo-view></todo-view> -->
- <pos-pumps-element></pos-pumps-element>
- </main>
-
- <script>
- // HACK(keanulee): The Redux package assumes `process` exists - mock it here before
- // the module is loaded.
- window.process = {
- env: {
- NODE_ENV: 'production'
- }
- };
- </script>
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
- <script>
- // Subset of fetch polyfill for IE11 (supports GET requests for JSON only).
- // Requires Promise to be defined.
- window.fetch = window.fetch || function(url) {
- return new Promise(function(resolve, reject) {
- var xhr = new XMLHttpRequest();
- xhr.onload = function() {
- resolve({
- json: function() {
- return new Promise(function(resolve, reject) {
- try {
- resolve(JSON.parse(xhr.responseText));
- } catch (e) {
- reject(e);
- }
- });
- }
- });
- };
- xhr.onerror = reject;
- xhr.open('GET', url);
- xhr.send();
- });
- };
- </script>
- <script>
- if ('serviceWorker' in window.navigator) {
- window.addEventListener('load', function() {
- window.navigator.serviceWorker.register('service-worker.js', {scope: '/'});
- });
- }
- </script>
- </body>
- </html>
|