mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
45 lines
1.0 KiB
HTML
45 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title><!-- title --></title>
|
|
<meta charset="utf-8">
|
|
<meta name="generator" content="Three.js Editor">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
font-size: 13px;
|
|
background-color: #000;
|
|
margin: 0px;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body ontouchstart="">
|
|
<script src="js/three.min.js"></script>
|
|
<script src="js/app.js"></script>
|
|
<!-- includes -->
|
|
<script>
|
|
|
|
var loader = new THREE.FileLoader();
|
|
loader.load( 'app.json', function ( text ) {
|
|
|
|
var player = new APP.Player();
|
|
player.load( JSON.parse( text ) );
|
|
player.setSize( window.innerWidth, window.innerHeight );
|
|
player.play();
|
|
|
|
document.body.appendChild( player.dom );
|
|
|
|
window.addEventListener( 'resize', function () {
|
|
player.setSize( window.innerWidth, window.innerHeight );
|
|
} );
|
|
|
|
} );
|
|
|
|
/* edit button */
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|