OLD | NEW |
| (Empty) |
1 <!-- | |
2 @license | |
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
4 This code may only be used under the BSD style license found at http://polym
er.github.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/CO
NTRIBUTORS.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/P
ATENTS.txt | |
9 --> | |
10 <!doctype html> | |
11 <html> | |
12 <head> | |
13 <title>core-range</title> | |
14 | |
15 <script src="../platform/platform.js"></script> | |
16 | |
17 <link rel="import" href="core-range.html"> | |
18 <link rel="import" href="../core-input/core-input.html"> | |
19 | |
20 <style> | |
21 | |
22 | |
23 </style> | |
24 | |
25 </head> | |
26 | |
27 <body unresolved> | |
28 | |
29 <polymer-element name="x-test" noscript attributes="value"> | |
30 | |
31 <template> | |
32 | |
33 <style> | |
34 | |
35 :host { | |
36 display: inline-block; | |
37 height: 25px; | |
38 width: 300px; | |
39 background-color: #ddd; | |
40 } | |
41 | |
42 .progress { | |
43 background-color: red; | |
44 height: 100%; | |
45 padding: 5px 0; | |
46 box-sizing: border-box; | |
47 -moz-box-sizing: border-box; | |
48 } | |
49 | |
50 core-input { | |
51 border: 1px solid #ccc; | |
52 } | |
53 | |
54 </style> | |
55 | |
56 <core-range min="0" max="200" step="0.5" value="{{value}}" ratio="{{rati
o}}"></core-range> | |
57 | |
58 <div class="progress" style="width: {{ratio}}%;">{{ratio}}%</div><br> | |
59 | |
60 value (0 - 200): <core-input value="{{value}}"></core-input> | |
61 | |
62 </template> | |
63 | |
64 </polymer-element> | |
65 | |
66 <x-test value="100"></x-test> | |
67 | |
68 </body> | |
69 </html> | |
OLD | NEW |