| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> |
| 10 <html> |
| 11 <head> |
| 12 <title>neon-animated-pages demo: grid</title> |
| 13 |
| 14 <meta charset="utf-8"> |
| 15 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 16 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initia
l-scale=1, user-scalable=yes"> |
| 17 |
| 18 <script src="../../../webcomponentsjs/webcomponents-lite.js"></script> |
| 19 |
| 20 <link rel="import" href="../../../paper-styles/paper-styles.html"> |
| 21 <link rel="import" href="../../neon-animated-pages.html"> |
| 22 <link rel="import" href="../../neon-animations.html"> |
| 23 <link rel="import" href="animated-grid.html"> |
| 24 <link rel="import" href="fullsize-page-with-card.html"> |
| 25 |
| 26 <style> |
| 27 |
| 28 body { |
| 29 overflow: hidden; |
| 30 } |
| 31 |
| 32 neon-animated-pages { |
| 33 height: 100%; |
| 34 } |
| 35 |
| 36 </style> |
| 37 |
| 38 </head> |
| 39 <body class="fullbleed"> |
| 40 |
| 41 <template is="dom-bind"> |
| 42 |
| 43 <neon-animated-pages id="pages" selected="0"> |
| 44 |
| 45 <animated-grid on-tile-click="_onTileClick"></animated-grid> |
| 46 |
| 47 <fullsize-page-with-card id="fullsize-card" hero-id="hero" on-click="_on
FullsizeClick"> |
| 48 </fullsize-page-with-card> |
| 49 |
| 50 </neon-animated-pages> |
| 51 |
| 52 </template> |
| 53 |
| 54 <script> |
| 55 |
| 56 var scope = document.querySelector('template[is="dom-bind"]'); |
| 57 |
| 58 scope._onTileClick = function(event) { |
| 59 this.$['fullsize-card'].color = event.detail.data.color; |
| 60 this.$.pages.selected = 1; |
| 61 }; |
| 62 |
| 63 scope._onFullsizeClick = function(event) { |
| 64 this.$.pages.selected = 0; |
| 65 }; |
| 66 |
| 67 </script> |
| 68 |
| 69 </body> |
| 70 </html> |
| OLD | NEW |