2015-06-16 12:37:51 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Doodle 3D App</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
2015-06-16 18:37:26 +02:00
|
|
|
|
|
|
|
<link href="css/main.css" rel="stylesheet" />
|
|
|
|
<link id="theme" href="css/light.css" rel="stylesheet" />
|
|
|
|
|
2015-06-16 12:37:51 +02:00
|
|
|
<script src="../three.js-master/build/three.js"></script>
|
2015-06-16 18:37:26 +02:00
|
|
|
<script src="lib/paper-core.js"></script>
|
2015-06-16 12:37:51 +02:00
|
|
|
|
|
|
|
<script src="../three.js-master/examples/js/controls/EditorControls.js"></script>
|
|
|
|
<script src="../three.js-master/examples/js/controls/TransformControls.js"></script>
|
|
|
|
|
|
|
|
<script src="../three.js-master/examples/js/libs/system.min.js"></script>
|
|
|
|
|
|
|
|
<script src="../three.js-master/editor/js/libs/signals.min.js"></script>
|
|
|
|
<script src="../three.js-master/editor/js/libs/ui.js"></script>
|
|
|
|
|
|
|
|
<script src="../three.js-master/editor/js/Storage.js"></script>
|
|
|
|
|
2015-06-16 18:37:26 +02:00
|
|
|
<script src="js/DrawCanvas.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="ui/Editor.js"></script>
|
|
|
|
<script src="ui/Config.js"></script>
|
|
|
|
<script src="ui/Preview.js"></script>
|
|
|
|
<script src="ui/Design.js"></script>
|
2015-06-16 12:37:51 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
2015-06-16 18:37:26 +02:00
|
|
|
var editor = new Editor();
|
|
|
|
|
|
|
|
var design = new Design(editor);
|
|
|
|
document.body.appendChild(design.dom);
|
|
|
|
|
|
|
|
var preview = new Preview(editor);
|
|
|
|
document.body.appendChild(preview.dom);
|
|
|
|
|
|
|
|
var onWindowResize = function (event) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
editor.signals.windowResize.dispatch();
|
|
|
|
};
|
2015-06-16 12:37:51 +02:00
|
|
|
|
2015-06-16 18:37:26 +02:00
|
|
|
window.addEventListener('resize', onWindowResize, false);
|
2015-06-16 12:37:51 +02:00
|
|
|
|
2015-06-16 18:37:26 +02:00
|
|
|
onWindowResize();
|
2015-06-16 12:37:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|