Doodle3D-Slicer/doodle_app/index.html

58 lines
1.4 KiB
HTML

<!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">
<link href="css/main.css" rel="stylesheet" />
<link id="theme" href="css/light.css" rel="stylesheet" />
<script src="../three.js-master/build/three.js"></script>
<script src="lib/paper-core.js"></script>
<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>
<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>
</head>
<body>
<script>
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();
};
window.addEventListener('resize', onWindowResize, false);
onWindowResize();
</script>
</body>
</html>