Skip to content
Browse files

Remove path_spiral.html in favor of loader.html. Make sure loader.htm…

…l includes pre3d_path_utils.js.
  • Loading branch information...
1 parent 4ff0f80 commit 2b07c2f4b55575bd8846148c8b576b4e23f761e7 @deanm committed Apr 12, 2009
Showing with 5 additions and 44 deletions.
  1. +1 −0 demos/loader.html
  2. +0 −42 demos/path_spiral.html
  3. +4 −2 demos/path_spiral.js
View
1 demos/loader.html
@@ -21,6 +21,7 @@
<script src="../pre3d.js"></script>
<script src="../pre3d_shape_utils.js"></script>
+<script src="../pre3d_path_utils.js"></script>
<script src="demo_utils.js"></script>
<script>
window.addEventListener('load', function() {
View
42 demos/path_spiral.html
@@ -1,42 +0,0 @@
-<html>
-
-<head>
-
-<title>pre3d demo - 3d bezier spiral</title>
-
-<style>
- canvas { margin: 3px; border: 1px dashed red; }
- span.spaceyspan { margin-right: 20px; }
- div.centeredDiv { text-align: center; }
- li { list-style: none; }
-</style>
-
-<script src="../pre3d.js"></script>
-<script src="../pre3d_path_utils.js"></script>
-<script src="demo_utils.js"></script>
-<script src="path_spiral.js"></script>
-</head>
-
-<body>
-
-<div id="toolbar"></div>
-
-<div class="centeredDiv">
-<canvas id="canvas" width="800" height="600">
- Sorry, this demo requires a web browser which supports HTML5 canvas!
-</canvas>
-</div>
-
-<p>
-JavaScript software 3d renderer, &copy Dean McNamee.
-</p>
-
-<ul>
- <li>Mouse &rarr; rotate around origin x and y axis.</li>
- <li>Mouse + ctrl &rarr; pan x / y.</li>
- <li>Mouse + shift &rarr; pan z.</li>
- <li>Mouse + ctrl + shift &rarr; adjust focal length.</li>
-</ul>
-
-</body>
-</html>
View
6 demos/path_spiral.js
@@ -1,6 +1,6 @@
// (c) Dean McNamee <dean@gmail.com>. All rights reserved.
-window.addEventListener('load', function() {
+function start3d() {
var screen_canvas = document.getElementById('canvas');
var renderer = new Pre3d.Renderer(screen_canvas);
@@ -56,4 +56,6 @@ window.addEventListener('load', function() {
toolbar.populateDiv(document.getElementById('toolbar'));
draw();
-}, false);
+}
+
+start3d();

0 comments on commit 2b07c2f

Please sign in to comment.
Something went wrong with that request. Please try again.