minor change
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -7,7 +7,7 @@
|
||||
<title> CJ Satnarine </title>
|
||||
|
||||
<canvas id="canvas"></canvas>
|
||||
<script type="module" crossorigin src="/assets/index-t7JyoB65.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-BoUOTmGk.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BjZe3bm5.css">
|
||||
</head>
|
||||
|
||||
|
5
main.js
5
main.js
@@ -18,7 +18,10 @@ renderer.setAnimationLoop(animate);
|
||||
document.body.appendChild(renderer.domElement);
|
||||
|
||||
// Resizing the camera position based on window width.
|
||||
if (window.innerWidth <= 650) {
|
||||
if (window.innerWidth <= 400) {
|
||||
camera.position.z = 6.5;
|
||||
}
|
||||
if (window.innerWidth > 400 && window.innerWidth <= 650) {
|
||||
camera.position.z = 5.5;
|
||||
}
|
||||
else if (window.innerWidth > 650 && window.innerWidth <= 915) {
|
||||
|
Reference in New Issue
Block a user