-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (54 loc) · 1.29 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<title>✨ Atlas ✨</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale = 1.0, user-scalable = no"
/>
<meta name="theme-color" content="#ffffff" />
<meta name="description" content="This is my pizza tribute." />
<style>
body {
--background-alt: #fff;
--background: #fff;
--foreground: #000;
--special: orange;
}
html,
body,
#three {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
body {
/* background: radial-gradient(circle at center, #eee, #fff 50%); */
color: var(--foreground);
}
</style>
<script type="module" src="bundle.js"></script>
<script type="module">
import { Scenario } from './bundle.js';
window.onload = () => {
const controller = new Scenario(document.getElementById('three'), {
enableAutoRotate: true,
enablePan: false,
enableZoom: false,
fieldOfView: 45,
pixelRatio: window.devicePixelRatio || 1,
restrictCameraAngle: false,
});
// Start "high res" version if URL search string contains "hi-res"
controller.start();
window.controller = controller;
};
</script>
</head>
<body>
<div id="three"></div>
</body>
</html>