OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 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 | 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 | 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 | 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 | 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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/P
ATENTS.txt |
9 --> | 9 --> |
10 <!doctype html> | 10 <!doctype html> |
11 <html> | 11 <html> |
12 <head> | 12 <head> |
13 <title>paper-slider</title> | 13 <title>paper-slider</title> |
14 | 14 |
15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | 15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
16 <meta name="mobile-web-app-capable" content="yes"> | 16 <meta name="mobile-web-app-capable" content="yes"> |
17 <meta name="apple-mobile-web-app-capable" content="yes"> | 17 <meta name="apple-mobile-web-app-capable" content="yes"> |
18 | 18 |
19 <script src="../platform/platform.js"></script> | 19 <script src="../webcomponentsjs/webcomponents.js"></script> |
20 | 20 |
21 <link rel="import" href="paper-slider.html"> | 21 <link rel="import" href="paper-slider.html"> |
22 <link rel="import" href="../font-roboto/roboto.html"> | 22 <link rel="import" href="../font-roboto/roboto.html"> |
23 | 23 |
24 <style shim-shadowdom> | 24 <style shim-shadowdom> |
25 | 25 |
26 body { | 26 body { |
27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | 27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; |
28 margin: 0; | 28 margin: 0; |
29 padding: 24px; | 29 padding: 24px; |
30 -webkit-user-select: none; | |
31 -moz-user-select: none; | |
32 -ms-user-select: none; | |
33 user-select: none; | |
34 -webkit-tap-highlight-color: rgba(0,0,0,0); | |
35 -webkit-touch-callout: none; | |
36 } | 30 } |
37 | 31 |
38 paper-slider { | 32 paper-slider { |
39 width: 100%; | 33 width: 100%; |
40 } | 34 } |
41 | 35 |
42 section { | 36 section { |
43 max-width: 1000px; | 37 max-width: 1000px; |
44 padding: 20px 0; | 38 padding: 20px 0; |
45 background-color: #f0f0f0; | 39 background-color: #f0f0f0; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 136 |
143 var ratings = document.querySelector('#ratings'); | 137 var ratings = document.querySelector('#ratings'); |
144 ratings.addEventListener('core-change', function() { | 138 ratings.addEventListener('core-change', function() { |
145 document.querySelector('#ratingsLabel').textContent = ratings.value; | 139 document.querySelector('#ratingsLabel').textContent = ratings.value; |
146 }); | 140 }); |
147 | 141 |
148 </script> | 142 </script> |
149 | 143 |
150 </body> | 144 </body> |
151 </html> | 145 </html> |
OLD | NEW |