From da6f583673ae7ff8d045d5283639afe4df391ec2 Mon Sep 17 00:00:00 2001 From: Ponali Date: Sun, 17 Dec 2023 11:36:31 +0100 Subject: [PATCH] Initial commit --- files/jsart/demos/threeTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/jsart/demos/threeTest.js b/files/jsart/demos/threeTest.js index 86e6f6d..e4c0775 100644 --- a/files/jsart/demos/threeTest.js +++ b/files/jsart/demos/threeTest.js @@ -1,5 +1,5 @@ (()=>{ - if(x+y==0){if(!window.threeTest){window.threeTest={};fetch("https://threejs-demo.nhowe.repl.co/three.min.js").then(data=>data.text()).then(body=>{console.log("fetch correct!");(new Function(body))();init()});};if(window.THREE){window.threeTest.animate()}else{console.log("Waiting initialisation to end...")};} + if(x+y==0){if(!window.threeTest){window.threeTest={};fetch("https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js").then(data=>data.text()).then(body=>{console.log("fetch correct!");(new Function(body))();init()});};if(window.THREE){window.threeTest.animate()}else{console.log("Waiting initialisation to end...")};} function createWorld() { console.log("Creating world..."); window.threeTest.scene = new THREE.Scene();