Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Side by Side Diff: third_party/polymer/v0_8/components-chromium/iron-media-query/demo/index.html

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rerun reproduce.sh Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698