-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (31 loc) · 994 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lobby</title>
<style>
body { margin: 0; overflow: hidden; }
#container { position: relative; width: 100%; height: 100vh; }
</style>
</head>
<body>
<div id="container"></div>
<div id="clock">00:00:00</div>
<script type="module">
import * as THREE from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';
import { initScene } from './newScene.js';
document.getElementById('options-button').addEventListener('click', () => {
loadEscenario1();
});
function loadEscenario1() {
renderer.dispose();
import('./newScene.js').then(module => {
module.initScene();
}).catch(err => {
console.error('Error al cargar la nueva escena:', err);
});
}
</script>
</body>
</html>