Skip to content
Snippets Groups Projects
Select Git revision
  • main
1 result

index.html

Blame
  • javigom's avatar
    javigom authored
    Update Ejercicio3/.gitkeep, Ejercicio2/js/.gitkeep, Ejercicio2/js/VRButton.js, Ejercicio2/js/app.js, Ejercicio2/js/three.module.js, Ejercicio2/.gitkeep, Ejercicio2/app.json, Ejercicio2/index.html
    40117d6c
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.html 1.19 KiB
    <!DOCTYPE html>
    <html lang="en">
    	<head>
    		<title>nh3</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: 11px;
    				background-color: #000;
    				margin: 0px;
    			}
    			canvas {
    				display: block;
    			}
    		</style>
    	</head>
    	<body ontouchstart="">
    		<script type="module">
    
    			import * as THREE from './js/three.module.js';
    			import { APP } from './js/app.js';
    			import { VRButton } from './js/VRButton.js';
    
    			window.THREE = THREE; // Used by APP Scripts.
    			window.VRButton = VRButton; // Used by APP Scripts.
    
    			THREE.ColorManagement.enabled = true;
    
    			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 );
    
    				} );
    
    			} );
    
    
    
    		</script>
    	</body>
    </html>