| 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 <meta charset="utf-8"> | |
| 10 <title>Sunflower Demo</title> | |
| 11 <link type="text/css" rel="stylesheet" href="sunflower.css"> | |
| 12 </head> | |
| 13 <body> | |
| 14 <h1>drfibonacci's Sunflower Spectacular</h1> | |
| 15 <p>A canvas 2D demo.</p> | |
| 16 | |
| 17 <div id="container"> | |
| 18 <canvas id="canvas" width="300" height="300" class="center"></canvas> | |
| 19 <form class="center"> | |
| 20 <input id="slider" type="range" max="1000" value="500"/> | |
| 21 </form> | |
| 22 <br/> | |
| 23 <img src="math.png" width="350px" height="42px" class="center"> | |
| 24 </div> | |
| 25 | |
| 26 <footer> | |
| 27 <p id="summary"> </p> | |
| 28 <p id="notes"> </p> | |
| 29 </footer> | |
| 30 | |
| 31 <script src="../../lib/runtime/harmony_feature_check.js"></script> | |
| 32 <script> | |
| 33 // TODO(jmesserly): some hacks here to get the output running | |
| 34 var math = Math; | |
| 35 var core = { int: { parse: Number } }; | |
| 36 var dom = { document: document }; | |
| 37 </script> | |
| 38 <script src="../../lib/runtime/dart_runtime.js"></script> | |
| 39 <script src="../codegen/expect/sunflower.js"></script> | |
| 40 <script>sunflower.main();</script> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |