UNPKG

electron-compile

Version:

Electron supporting package to compile JS and CSS in Electron applications

56 lines (46 loc) 988 B
<dom-module id="loading-screen"> <style type="text/less"> :host { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; ul { font-family: "MS Sans Serif"; } } </style> <template> <iron-pages id="selector" selected="{{_pageForScreen(screen)}}"> <div class="page"> </div> <div class="page"> </div> <div class="page"> </div> </iron-pages> </template> <script> global.Polymer({ is: 'loading-screen', properties: { screen: { type: String, reflectToAttribute: true } }, _emitRetry: () => { this.fire('retry'); }, _pageForScreen: (theScreen) => { return pageMap[theScreen]; } }); </script> <script src="https://lol"></script> <script type="text/coffeescript"> f = -> foo(); </script> </dom-module>