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

Side by Side Diff: polymer_1.0.4/bower_components/iron-media-query/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 5 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 <!doctype html>
2 <!--
3 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
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
21 <link rel="import" href="../../paper-styles/paper-styles.html">
22 <link rel="import" href="../../paper-styles/demo-pages.html">
23 <link rel="import" href="../iron-media-query.html">
24
25 </head>
26 <body>
27
28 <div class="vertical-section vertical-section-container centered">
29 <h1>&lt;iron-media-query&gt;</h1>
30
31 <template is="dom-bind">
32 <iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches }}"></iron-media-query>
33
34 <template is="dom-if" if="{{queryMatches}}">
35 <p>The viewport’s width is greater than <code>600px</code></p>
36 </template>
37
38 <template is="dom-if" if="{{!queryMatches}}">
39 <p>The viewport’s width is less than <code>600px</code></p>
40 </template>
41 </template>
42 </div>
43
44 </body>
45 </html>
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/iron-media-query/bower.json ('k') | polymer_1.0.4/bower_components/iron-media-query/hero.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698