| OLD | NEW |
| (Empty) | |
| 1 <!-- |
| 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 6 Code distributed by Google as part of the polymer project is also |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 8 --> |
| 9 |
| 10 <!doctype html> |
| 11 <html> |
| 12 <head> |
| 13 |
| 14 <title>iron-media-query demo</title> |
| 15 |
| 16 <meta charset="utf-8"> |
| 17 <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 18 |
| 19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 20 <link rel="import" href="../iron-media-query.html"> |
| 21 |
| 22 </head> |
| 23 <body> |
| 24 |
| 25 <iron-media-query query="(min-width: 600px)"></iron-media-query> |
| 26 <div id="output"></div> |
| 27 |
| 28 <script> |
| 29 var output = document.getElementById('output'); |
| 30 document.querySelector('iron-media-query').addEventListener('query-matches
-changed', function(e) { |
| 31 console.log("ok"); |
| 32 output.textContent = 'query-matches changed: ' + e.detail.value; |
| 33 }); |
| 34 |
| 35 </script> |
| 36 |
| 37 </body> |
| 38 </html> |
| OLD | NEW |