Update index.html
Browse files- index.html +11 -6
index.html
CHANGED
@@ -11,16 +11,20 @@
|
|
11 |
background-color: #222;
|
12 |
color: #fff;
|
13 |
font-family: Arial, sans-serif;
|
|
|
|
|
|
|
14 |
}
|
15 |
canvas {
|
16 |
display: block;
|
17 |
margin-top: 20px;
|
18 |
}
|
19 |
#scene-container {
|
20 |
-
width:
|
21 |
-
height:
|
22 |
-
margin:
|
23 |
-
padding:
|
|
|
24 |
}
|
25 |
#uploadForm {
|
26 |
margin-top: 20px;
|
@@ -106,8 +110,9 @@
|
|
106 |
scene = new THREE.Scene();
|
107 |
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
|
108 |
updateCameraPosition(); // カメラ位置を初期設定
|
|
|
109 |
renderer = new THREE.WebGLRenderer();
|
110 |
-
renderer.setSize(
|
111 |
document.getElementById('scene-container').innerHTML = ''; // 既存のcanvasを削除
|
112 |
document.getElementById('scene-container').appendChild(renderer.domElement);
|
113 |
|
@@ -182,4 +187,4 @@
|
|
182 |
}
|
183 |
</script>
|
184 |
</body>
|
185 |
-
</html>
|
|
|
11 |
background-color: #222;
|
12 |
color: #fff;
|
13 |
font-family: Arial, sans-serif;
|
14 |
+
margin: 0;
|
15 |
+
padding: 0;
|
16 |
+
overflow: hidden;
|
17 |
}
|
18 |
canvas {
|
19 |
display: block;
|
20 |
margin-top: 20px;
|
21 |
}
|
22 |
#scene-container {
|
23 |
+
width: 100vw;
|
24 |
+
height: 100vh;
|
25 |
+
margin: 0;
|
26 |
+
padding: 0;
|
27 |
+
overflow: hidden;
|
28 |
}
|
29 |
#uploadForm {
|
30 |
margin-top: 20px;
|
|
|
110 |
scene = new THREE.Scene();
|
111 |
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
|
112 |
updateCameraPosition(); // カメラ位置を初期設定
|
113 |
+
|
114 |
renderer = new THREE.WebGLRenderer();
|
115 |
+
renderer.setSize(document.getElementById('scene-container').clientWidth, document.getElementById('scene-container').clientHeight);
|
116 |
document.getElementById('scene-container').innerHTML = ''; // 既存のcanvasを削除
|
117 |
document.getElementById('scene-container').appendChild(renderer.domElement);
|
118 |
|
|
|
187 |
}
|
188 |
</script>
|
189 |
</body>
|
190 |
+
</html>
|