blob: 921d999c477720ad0124369702709b1461b12dd3 [file] [log] [blame]
<!DOCTYPE html>
<!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file. -->
<html>
<head>
<meta charset="utf-8">
<title>Sunflower Demo</title>
<link type="text/css" rel="stylesheet" href="sunflower.css">
</head>
<body>
<h1>drfibonacci's Sunflower Spectacular</h1>
<p>A canvas 2D demo.</p>
<div id="container">
<canvas id="canvas" width="300" height="300" class="center"></canvas>
<form class="center">
<input id="slider" type="range" max="1000" value="500"/>
</form>
<br/>
<img src="math.png" width="350px" height="42px" class="center">
</div>
<footer>
<p id="summary"> </p>
<p id="notes"> </p>
</footer>
<!--
<script type="application/dart" src="sunflower.dart"></script>
-->
<script src="../../../node_modules/requirejs/require.js"></script>
<script>
require.config({
paths: {
dart_sdk: "../../../lib/js/amd/dart_sdk",
js: "../../../gen/codegen_output/pkg/js",
}
});
require(["../../../gen/codegen_output/sunflower/sunflower"],
(sunflower) => {
sunflower.sunflower.main();
});
</script>
</body>
</html>