| 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-progress</title> | 13 <title>paper-progress</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-progress.html"> | 21 <link rel="import" href="paper-progress.html"> |
| 22 <link rel="import" href="../paper-button/paper-button.html"> | 22 <link rel="import" href="../paper-button/paper-button.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; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 </head> | 48 </head> |
| 49 <body unresolved> | 49 <body unresolved> |
| 50 | 50 |
| 51 <paper-progress></paper-progress> | 51 <paper-progress></paper-progress> |
| 52 | 52 |
| 53 <paper-button raised onclick="startProgress();">Start</paper-button> | 53 <paper-button raised onclick="startProgress();">Start</paper-button> |
| 54 | 54 |
| 55 <br><br><br> | 55 <br><br><br> |
| 56 | 56 |
| 57 <paper-progress></paper-progress><br> |
| 58 |
| 57 <paper-progress value="40"></paper-progress><br> | 59 <paper-progress value="40"></paper-progress><br> |
| 58 | 60 |
| 59 <paper-progress value="800" min="100" max="1000"></paper-progress><br> | 61 <paper-progress value="800" min="100" max="1000"></paper-progress><br> |
| 60 | 62 |
| 61 <paper-progress value="40" secondaryProgress="80"></paper-progress><br> | 63 <paper-progress value="40" secondaryProgress="80"></paper-progress><br> |
| 62 | 64 |
| 63 <paper-progress value="200" max="200"></paper-progress><br> | 65 <paper-progress value="200" max="200"></paper-progress><br> |
| 64 | 66 |
| 67 <paper-progress indeterminate></paper-progress><br> |
| 68 |
| 65 <paper-progress class="pink" value="80"></paper-progress><br> | 69 <paper-progress class="pink" value="80"></paper-progress><br> |
| 66 | 70 |
| 67 <paper-progress class="pink" value="40" secondaryProgress="80"></paper-progres
s> | 71 <paper-progress class="pink" value="40" secondaryProgress="80"></paper-progres
s><br> |
| 68 | 72 |
| 73 <paper-progress class="pink" indeterminate></paper-progress><br> |
| 74 |
| 69 <script> | 75 <script> |
| 70 | 76 |
| 71 var progress = document.querySelector('paper-progress'); | 77 var progress = document.querySelector('paper-progress'); |
| 72 var button = document.querySelector('paper-button'); | 78 var button = document.querySelector('paper-button'); |
| 73 | 79 |
| 74 var repeat, maxRepeat = 5, animating = false; | 80 var repeat, maxRepeat = 5, animating = false; |
| 75 | 81 |
| 76 function nextProgress() { | 82 function nextProgress() { |
| 77 animating = true; | 83 animating = true; |
| 78 if (progress.value < progress.max) { | 84 if (progress.value < progress.max) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 98 } | 104 } |
| 99 | 105 |
| 100 addEventListener('polymer-ready', function() { | 106 addEventListener('polymer-ready', function() { |
| 101 startProgress(); | 107 startProgress(); |
| 102 }); | 108 }); |
| 103 | 109 |
| 104 </script> | 110 </script> |
| 105 | 111 |
| 106 </body> | 112 </body> |
| 107 </html> | 113 </html> |
| OLD | NEW |