UNPKG

@kano/web-components

Version:

Shared web-components for the Kano ecosystem.

76 lines (71 loc) 3.28 kB
<!doctype html> <html> <head> <meta charset="utf-8"> <script src="../../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script> <script type="module" src="../../../../@polymer/iron-demo-helpers/demo-snippet.js"></script> <script type="module" src="../../../../@polymer/iron-demo-helpers/demo-pages-shared-styles.js"></script> <script type="module" src="../../../../@polymer/iron-flex-layout/iron-flex-layout.js"></script> <script type="module" src="../kano-lightboard-preview.js"></script> <!-- FIXME(polymer-modulizer): These imperative modules that innerHTML your HTML are a hacky way to be sure that any mixins in included style modules are ready before any elements that reference them are instantiated, otherwise the CSS @apply mixin polyfill won't be able to expand the underlying CSS custom properties. See: https://github.com/Polymer/polymer-modulizer/issues/154 --> <script type="module"> const $_documentContainer = document.createElement('template'); $_documentContainer.innerHTML = `<custom-style> <style is="custom-style" include="demo-pages-shared-styles"> </style> </custom-style>`; document.body.appendChild($_documentContainer.content); </script> </head> <body> <script type="module"> const $_documentContainer = document.createElement('template'); $_documentContainer.innerHTML = `<div class="vertical-section-container centered"> <h3>30px wide</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="30"></kano-lightboard-preview> </template> </demo-snippet> <h3>60px wide</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="60"></kano-lightboard-preview> </template> </demo-snippet> <h3>90px wide</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="90"></kano-lightboard-preview> </template> </demo-snippet> <h3>150px wide</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="150"></kano-lightboard-preview> </template> </demo-snippet> <h3>300px wide</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="300"></kano-lightboard-preview> </template> </demo-snippet> <h3>300px wide, 24 FPS</h3> <demo-snippet> <template> <kano-lightboard-preview src="../../demo-assets/lightboard-sprite.png" width="300" fps="24"></kano-lightboard-preview> </template> </demo-snippet> </div>`; document.body.appendChild($_documentContainer.content); </script> </body> </html>