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://polymer.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/CONTRIBUTORS.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/PATENTS.txt
13 <title>paper-slider
</title>
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">
19 <script src=
"../webcomponentsjs/webcomponents.js"></script>
21 <link rel=
"import" href=
"paper-slider.html">
22 <link rel=
"import" href=
"../font-roboto/roboto.html">
24 <style shim-shadowdom
>
27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
39 background-color: #f0f0f0;
46 .yellow-slider paper-slider::shadow #sliderKnobInner,
47 .yellow-slider paper-slider::shadow #sliderBar::shadow #activeProgress {
48 background-color: #f4b400;
51 .green-slider paper-slider::shadow #sliderKnobInner,
52 .green-slider paper-slider::shadow #sliderKnobInner::before,
53 .green-slider paper-slider::shadow #sliderBar::shadow #activeProgress {
54 background-color: #
0f9d58;
67 <section class=
"yellow-slider">
69 <div>Music, video, games
& other media
</div>
70 <paper-slider value=
"50"></paper-slider>
75 <div>Notifications
</div>
76 <paper-slider value=
"50"></paper-slider>
82 <paper-slider value=
"80"></paper-slider>
90 <div center horizontal layout
>
92 <paper-slider value=
"23" max=
"255" editable
></paper-slider>
98 <div center horizontal layout
>
100 <paper-slider value=
"183" max=
"255" editable
></paper-slider>
106 <div center horizontal layout
>
108 <paper-slider value=
"211" max=
"255" editable
></paper-slider>
115 <section class=
"green-slider">
117 <div>Brightness
</div>
119 <paper-slider pin
value=
"50"></paper-slider>
125 <section class=
"green-slider">
128 <span>Ratings
</span><span id=
"ratingsLabel"></span>
131 <paper-slider id=
"ratings" pin snaps
max=
"10" step=
"1" value=
"5"></paper-slider>
137 var ratings
= document
.querySelector('#ratings');
138 ratings
.addEventListener('core-change', function() {
139 document
.querySelector('#ratingsLabel').textContent
= ratings
.value
;