| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --><html><head><dom-module id="ct-party-time"> |
| 6 | 6 <style> |
| 7 <polymer-element name="ct-party-time"> | |
| 8 <template> | |
| 9 <style> | |
| 10 :host { | 7 :host { |
| 11 display: flex; | 8 display: flex; |
| 12 align-items: center; | 9 align-items: center; |
| 13 justify-content: center; | 10 justify-content: center; |
| 14 flex-direction: column; | 11 flex-direction: column; |
| 15 } | 12 } |
| 16 </style> | 13 </style> |
| 14 <template> |
| 17 <div>No failures!</div> | 15 <div>No failures!</div> |
| 18 <img src="{{ partytime }}"> | 16 <img src="{{ partytime }}"> |
| 19 </template> | 17 </template> |
| 20 <script> | 18 <script> |
| 21 Polymer({ | 19 Polymer({ |
| 22 created: function() { | 20 is: 'ct-party-time', |
| 23 this.partytime = "../images/partytime.gif"; | 21 created: function () { |
| 24 setTimeout(function() { | 22 this.partytime = '../images/partytime.gif'; |
| 25 this.partytime = "../images/partytime-still.gif" | 23 setTimeout(function () { |
| 24 this.partytime = '../images/partytime-still.gif'; |
| 26 }.bind(this), 10000); | 25 }.bind(this), 10000); |
| 27 } | 26 } |
| 28 }); | 27 }); |
| 29 </script> | 28 </script> |
| 30 </polymer-element> | 29 </dom-module> |
| OLD | NEW |