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

Side by Side Diff: polymer_1.2.3/bower_components/iron-range-behavior/demo/index.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 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
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 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 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 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 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 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 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 <!doctype html> 10 <!doctype html>
11 <html> 11 <html>
12 <head> 12 <head>
13 <title>iron-range-behavior demo</title> 13 <title>iron-range-behavior demo</title>
14 14
15 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> 15 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
16 16
17 <link rel="import" href="../iron-range-behavior.html"> 17 <link rel="import" href="../iron-range-behavior.html">
18 <link rel="import" href="../../iron-input/iron-input.html"> 18 <link rel="import" href="../../iron-input/iron-input.html">
19 19
20 <style> 20 <style>
21 21
22 body { 22 body {
23 font-family: sans-serif; 23 font-family: sans-serif;
24 } 24 }
25 25
26 </style> 26 </style>
27 </head> 27 </head>
28 28
29 <body> 29 <body unresolved>
30 <dom-module id="x-progressbar"> 30
31 <dom-module id="x-progressbar">
31 <style> 32 <style>
32 :host { 33 :host {
33 display: block; 34 display: block;
34 height: 40px; 35 height: 40px;
35 background-color: #555; 36 background-color: #555;
36 border-radius: 4px; 37 border-radius: 4px;
37 padding: 8px; 38 padding: 8px;
38 box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5); 39 box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5);
39 } 40 }
40 41
41 .progress { 42 .progress {
42 background-color: #999; 43 background-color: #999;
43 height: 100%; 44 height: 100%;
44 border-radius: 4px; 45 border-radius: 4px;
45 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); 46 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
46 } 47 }
47 48
48 .progress-value { 49 .progress-value {
49 padding: 0 8px; 50 padding: 0 8px;
50 font-size: 18px; 51 font-size: 18px;
51 color: #fff; 52 color: #fff;
52 } 53 }
53 </style> 54 </style>
54 <template> 55 <template>
55 <div class="progress" horizontal center layout style$="{{_computeStyle(r atio)}}"> 56 <div class="progress" horizontal center layout style$="{{_computeStyle(r atio)}}">
56 <div class="progress-value"><span>{{ratio}}</span>%</div> 57 <div class="progress-value"><span>{{ratio}}</span>%</div>
57 </div> 58 </div>
58 </template> 59 </template>
59 </dom-module> 60 </dom-module>
60 61
61 <script> 62 <script>
62 Polymer({ 63 HTMLImports.whenReady(function() {
63 is: 'x-progressbar', 64 Polymer({
65 is: 'x-progressbar',
64 66
65 behaviors: [Polymer.IronRangeBehavior], 67 behaviors: [Polymer.IronRangeBehavior],
66 68
67 _computeStyle: function(ratio) { 69 _computeStyle: function(ratio) {
68 return 'width: ' + ratio + '%;'; 70 return 'width: ' + ratio + '%;';
69 } 71 }
72 });
70 }); 73 });
71 </script> 74 </script>
72 75
73 <x-progressbar min="0" max="200" value="120"></x-progressbar> 76 <x-progressbar min="0" max="200" value="120"></x-progressbar>
74 77
75 </body> 78 </body>
76 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698