| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html><html><head> | |
| 2 <meta charset="utf-8"> | |
| 3 <title>Stopwatch</title> | |
| 4 | |
| 5 <link rel="stylesheet" href="stopwatch.css"> | |
| 6 | |
| 7 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1, user-scalable=no"> | |
| 8 </head> | |
| 9 | |
| 10 <body><script src="packages/shadow_dom/shadow_dom.debug.js"></script> | |
| 11 <script src="packages/browser/interop.js"></script> | |
| 12 <polymer-element name="tute-stopwatch"> | |
| 13 | |
| 14 <template> | |
| 15 <style> | |
| 16 @host { | |
| 17 :scope { | |
| 18 background-color: LemonChiffon; | |
| 19 text-align: center; | |
| 20 display: inline-block; | |
| 21 border: solid 1px; | |
| 22 padding: 10px 10px 10px 10px; | |
| 23 } | |
| 24 } | |
| 25 </style> | |
| 26 <div> | |
| 27 <div> | |
| 28 {{counter}} | |
| 29 </div> | |
| 30 <div> | |
| 31 <button on-click="start" id="startButton">Start</button> | |
| 32 <button on-click="stop" id="stopButton">Stop</button> | |
| 33 <button on-click="reset" id="resetButton">Reset</button> | |
| 34 </div> | |
| 35 </div> | |
| 36 </template> | |
| 37 | |
| 38 | |
| 39 | |
| 40 </polymer-element> | |
| 41 | |
| 42 <h1>Stopwatch</h1> | |
| 43 | |
| 44 <tute-stopwatch></tute-stopwatch> | |
| 45 | |
| 46 | |
| 47 | |
| 48 <script type="application/dart" src="index.html_bootstrap.dart"></script><script
src="packages/browser/dart.js"></script></body></html> | |
| OLD | NEW |