Skip to content

Commit

Permalink
fixPozicije
Browse files Browse the repository at this point in the history
  • Loading branch information
kuncgregor committed Jan 12, 2024
1 parent 0dd73a4 commit a0468c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 10 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function isMobile() {
let width, height, depth;
function updatevalues() {
if (isMobile()) {
width = 10;
height = 10;
depth = 10;
width = 16;
height = 16;
depth = 16;
} else {
width = 20;
height = 20;
Expand Down Expand Up @@ -62,7 +62,13 @@ function startVis(width, height, depth) {
0.1,
1000
);
camera.position.z = 100;
if (isMobile()) {
camera.position.z = 100;
camera.position.y = 11;
} else {
camera.position.z = 100;
}

scene.add(camera);

const renderer = new THREE.WebGLRenderer({ alpha: true });
Expand Down
4 changes: 3 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ body {
.opis {
width: 95%;
}

.datum {
top: 58%;
}
#visualiser {
background-size: 100% 100%;
}
Expand Down

0 comments on commit a0468c6

Please sign in to comment.