mirror of
https://github.com/Rushilwiz/neurosecure.git
synced 2025-04-08 14:20:18 -04:00
21 lines
583 B
JavaScript
21 lines
583 B
JavaScript
import * as THREE from "../node_modules/three/build/three.module.js";
|
|
import { APP } from "./landing.js";
|
|
|
|
window.THREE = THREE; // Used by APP Scripts.
|
|
|
|
var loader = new THREE.FileLoader();
|
|
loader.load("./js/scenes/brain.json", function (text) {
|
|
var player = new APP.Player();
|
|
player.load(JSON.parse(text));
|
|
player.setSize(window.innerWidth, window.innerHeight);
|
|
player.play();
|
|
|
|
const hero = document.getElementById("hero");
|
|
|
|
hero.after(player.dom);
|
|
|
|
window.addEventListener("resize", function () {
|
|
player.setSize(window.innerWidth, window.innerHeight);
|
|
});
|
|
});
|