| 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>paper-slider</title> | |
| 14 | |
| 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"> | |
| 17 <meta name="apple-mobile-web-app-capable" content="yes"> | |
| 18 | |
| 19 <script src="../platform/platform.js"></script> | |
| 20 | |
| 21 <link rel="import" href="paper-slider.html"> | |
| 22 <link rel="import" href="../font-roboto/roboto.html"> | |
| 23 | |
| 24 <style shim-shadowdom> | |
| 25 | |
| 26 body { | |
| 27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | |
| 28 margin: 0; | |
| 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 } | |
| 37 | |
| 38 paper-slider { | |
| 39 width: 100%; | |
| 40 } | |
| 41 | |
| 42 section { | |
| 43 max-width: 1000px; | |
| 44 padding: 20px 0; | |
| 45 background-color: #f0f0f0; | |
| 46 } | |
| 47 | |
| 48 section > div { | |
| 49 padding: 14px; | |
| 50 } | |
| 51 | |
| 52 .yellow-slider paper-slider::shadow #sliderKnobInner, | |
| 53 .yellow-slider paper-slider::shadow #sliderBar::shadow #activeProgress { | |
| 54 background-color: #f4b400; | |
| 55 } | |
| 56 | |
| 57 .green-slider paper-slider::shadow #sliderKnobInner, | |
| 58 .green-slider paper-slider::shadow #sliderKnobInner::before, | |
| 59 .green-slider paper-slider::shadow #sliderBar::shadow #activeProgress { | |
| 60 background-color: #0f9d58; | |
| 61 } | |
| 62 | |
| 63 #ratingsLabel { | |
| 64 padding-left: 12px; | |
| 65 color: #a0a0a0; | |
| 66 } | |
| 67 | |
| 68 </style> | |
| 69 | |
| 70 </head> | |
| 71 <body unresolved> | |
| 72 | |
| 73 <section class="yellow-slider"> | |
| 74 | |
| 75 <div>Music, video, games & other media</div> | |
| 76 <paper-slider value="50"></paper-slider> | |
| 77 | |
| 78 <br> | |
| 79 <br> | |
| 80 | |
| 81 <div>Notifications</div> | |
| 82 <paper-slider value="50"></paper-slider> | |
| 83 | |
| 84 <br> | |
| 85 <br> | |
| 86 | |
| 87 <div>Alarms</div> | |
| 88 <paper-slider value="80"></paper-slider> | |
| 89 | |
| 90 </section> | |
| 91 | |
| 92 <br> | |
| 93 | |
| 94 <section> | |
| 95 | |
| 96 <div center horizontal layout> | |
| 97 <div>R</div> | |
| 98 <paper-slider value="23" max="255" editable></paper-slider> | |
| 99 </div> | |
| 100 | |
| 101 <br> | |
| 102 <br> | |
| 103 | |
| 104 <div center horizontal layout> | |
| 105 <div>G</div> | |
| 106 <paper-slider value="183" max="255" editable></paper-slider> | |
| 107 </div> | |
| 108 | |
| 109 <br> | |
| 110 <br> | |
| 111 | |
| 112 <div center horizontal layout> | |
| 113 <div>B</div> | |
| 114 <paper-slider value="211" max="255" editable></paper-slider> | |
| 115 </div> | |
| 116 | |
| 117 </section> | |
| 118 | |
| 119 <br> | |
| 120 | |
| 121 <section class="green-slider"> | |
| 122 | |
| 123 <div>Brightness</div> | |
| 124 <br> | |
| 125 <paper-slider pin value="50"></paper-slider> | |
| 126 | |
| 127 </section> | |
| 128 | |
| 129 <br> | |
| 130 | |
| 131 <section class="green-slider"> | |
| 132 | |
| 133 <div> | |
| 134 <span>Ratings</span><span id="ratingsLabel"></span> | |
| 135 </div> | |
| 136 <br> | |
| 137 <paper-slider id="ratings" pin snaps max="10" step="1" value="5"></paper-sli
der> | |
| 138 | |
| 139 </section> | |
| 140 | |
| 141 <script> | |
| 142 | |
| 143 var ratings = document.querySelector('#ratings'); | |
| 144 ratings.addEventListener('core-change', function() { | |
| 145 document.querySelector('#ratingsLabel').textContent = ratings.value; | |
| 146 }); | |
| 147 | |
| 148 </script> | |
| 149 | |
| 150 </body> | |
| 151 </html> | |
| OLD | NEW |