|
|
@ -12,6 +12,12 @@ import * as MOON from '/website/moon/moon.js'; |
|
|
|
import * as URANUS from '/website/uranus/uranus.js'; |
|
|
|
import * as URANUS from '/website/uranus/uranus.js'; |
|
|
|
import { OrbitControls } from '/website/node_modules/three/examples/jsm/controls/OrbitControls.js'; |
|
|
|
import { OrbitControls } from '/website/node_modules/three/examples/jsm/controls/OrbitControls.js'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const button = document.querySelector('#steuerungOrbitalButton');
|
|
|
|
|
|
|
|
button.addEventListener('click', function() {
|
|
|
|
|
|
|
|
console.log("Butten gedrückt"); |
|
|
|
|
|
|
|
document.querySelector('.content-layer').style.display = "none"; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Die Szenerie erstellen
|
|
|
|
// Die Szenerie erstellen
|
|
|
|
const scene = new THREE.Scene(); |
|
|
|
const scene = new THREE.Scene(); |
|
|
|
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); |
|
|
|
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); |
|
|
|