Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-slider / demo.html
blobccc9054ca5dafd3e945d37b9dbc084c1ce736a3e
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://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
9 -->
10 <!doctype html>
11 <html>
12 <head>
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>
26 body {
27 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
28 margin: 0;
29 padding: 24px;
32 paper-slider {
33 width: 100%;
36 section {
37 max-width: 1000px;
38 padding: 20px 0;
39 background-color: #f0f0f0;
42 section > div {
43 padding: 14px;
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;
57 #ratingsLabel {
58 padding-left: 12px;
59 color: #a0a0a0;
62 </style>
64 </head>
65 <body unresolved>
67 <section class="yellow-slider">
69 <div>Music, video, games &amp; other media</div>
70 <paper-slider value="50"></paper-slider>
72 <br>
73 <br>
75 <div>Notifications</div>
76 <paper-slider value="50"></paper-slider>
78 <br>
79 <br>
81 <div>Alarms</div>
82 <paper-slider value="80"></paper-slider>
84 </section>
86 <br>
88 <section>
90 <div center horizontal layout>
91 <div>R</div>
92 <paper-slider value="23" max="255" editable></paper-slider>
93 </div>
95 <br>
96 <br>
98 <div center horizontal layout>
99 <div>G</div>
100 <paper-slider value="183" max="255" editable></paper-slider>
101 </div>
103 <br>
104 <br>
106 <div center horizontal layout>
107 <div>B</div>
108 <paper-slider value="211" max="255" editable></paper-slider>
109 </div>
111 </section>
113 <br>
115 <section class="green-slider">
117 <div>Brightness</div>
118 <br>
119 <paper-slider pin value="50"></paper-slider>
121 </section>
123 <br>
125 <section class="green-slider">
127 <div>
128 <span>Ratings</span><span id="ratingsLabel"></span>
129 </div>
130 <br>
131 <paper-slider id="ratings" pin snaps max="10" step="1" value="5"></paper-slider>
133 </section>
135 <script>
137 var ratings = document.querySelector('#ratings');
138 ratings.addEventListener('core-change', function() {
139 document.querySelector('#ratingsLabel').textContent = ratings.value;
142 </script>
144 </body>
145 </html>