OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 for details. All rights reserved. Use of this source code is governed by a |
| 5 BSD-style license that can be found in the LICENSE file. --> |
| 6 |
| 7 <html> |
| 8 <head> |
| 9 <title>Game of Life Components</title> |
| 10 </head> |
| 11 <body> |
| 12 <!-- An individual cell for our version of Conway's Game of Life. --> |
| 13 <element extends="div" name="x-cell" apply-author-styles> |
| 14 <!-- The DOM portion is trivial; see the styling and Dart behavior. --> |
| 15 <template> |
| 16 </template> |
| 17 </element> |
| 18 |
| 19 <!-- A control panel for the Game of Life, with stop/start/step controls --> |
| 20 <element extends="div" name="x-control-panel" apply-author-styles> |
| 21 <template> |
| 22 <button type="button" id="start">Start</button> |
| 23 <button type="button" id="stop">Stop</button> |
| 24 <button type="button" id="step">Step</button> |
| 25 </template> |
| 26 </element> |
| 27 |
| 28 <!-- A Game of Life widget. Contains a board and a control panel. --> |
| 29 <element extends="div" name="x-game-of-life" apply-author-styles> |
| 30 <template> |
| 31 <!-- Not much is here, since the cells will be instantiated |
| 32 programatically, once we know how many to make. --> |
| 33 <div is="x-control-panel"></div> |
| 34 </template> |
| 35 </element> |
| 36 </body> |
| 37 </html> |
OLD | NEW |