window.addEventListener("resize", (event) => {
// Ваш код
})
$(element).on("click", function() {
$(this).addClass(myClass)
})
loader.load(
"LivingRoomWallA.obj",
( object ) => {
console.log(object)
scene.add( object )
renderer.render( scene, camera )
},
( xhr ) => {
console.log( (xhr.loaded / xhr.total * 100) + '% loaded' );
},
( err ) => {
console.error( 'An error happened' );
}
)