| OLD | NEW |
| (Empty) | |
| 1 <!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 for details. All rights reserved. Use of this source code is governed by a |
| 3 BSD-style license that can be found in the LICENSE file. |
| 4 --> |
| 5 |
| 6 <!DOCTYPE html> |
| 7 <polymer-element name="tute-stopwatch"> |
| 8 |
| 9 <template> |
| 10 <style> |
| 11 :host { |
| 12 background-color: LemonChiffon; |
| 13 text-align: center; |
| 14 display: inline-block; |
| 15 border: solid 1px; |
| 16 padding: 10px 10px 10px 10px; |
| 17 } |
| 18 </style> |
| 19 <div> |
| 20 <div> |
| 21 {{counter}} |
| 22 </div> |
| 23 <div> |
| 24 <button on-click="{{start}}" id="startButton">Start</button> |
| 25 <button on-click="{{stop}}" id="stopButton">Stop</button> |
| 26 <button on-click="{{reset}}" id="resetButton">Reset</button> |
| 27 </div> |
| 28 </div> |
| 29 </template> |
| 30 |
| 31 <script type="application/dart" src="tute_stopwatch.dart"></script> |
| 32 |
| 33 </polymer-element> |
| OLD | NEW |