OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. --> | 5 BSD-style license that can be found in the LICENSE file. --> |
6 | 6 |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
10 <title>Sunflower Demo</title> | 10 <title>Sunflower Demo</title> |
(...skipping 13 matching lines...) Expand all Loading... |
24 </div> | 24 </div> |
25 | 25 |
26 <footer> | 26 <footer> |
27 <p id="summary"> </p> | 27 <p id="summary"> </p> |
28 <p id="notes"> </p> | 28 <p id="notes"> </p> |
29 </footer> | 29 </footer> |
30 | 30 |
31 <!-- | 31 <!-- |
32 <script type="application/dart" src="sunflower.dart"></script> | 32 <script type="application/dart" src="sunflower.dart"></script> |
33 --> | 33 --> |
34 <script src="../../../lib/runtime/dart_library.js"></script> | 34 <script src="../../../node_modules/requirejs/require.js"></script> |
35 <script src="../../../lib/runtime/dart_sdk.js"></script> | 35 <script> |
36 <script src="../expect/js/js.js"></script> | 36 require.config({ |
37 <script src="../expect/sunflower/sunflower.js"></script> | 37 paths: { |
38 <script>dart_library.start('sunflower')</script> | 38 dart_sdk: "../../../lib/js/amd/dart_sdk", |
| 39 js: "../../../gen/codegen_output/pkg/js", |
| 40 } |
| 41 }); |
| 42 require(["../../../gen/codegen_output/sunflower/sunflower"], |
| 43 (sunflower) => { |
| 44 sunflower.sunflower.main(); |
| 45 }); |
| 46 </script> |
39 </body> | 47 </body> |
40 </html> | 48 </html> |
OLD | NEW |