tutorial2d
This commit is contained in:
10
src/components/assets-loaded.js
Normal file
10
src/components/assets-loaded.js
Normal file
@@ -0,0 +1,10 @@
|
||||
AFRAME.registerComponent('assets-loaded', {
|
||||
init: function () {
|
||||
this.el.addEventListener('loaded', this.onLoad.bind(this));
|
||||
this.el.addEventListener('timeout', this.onLoad.bind(this));
|
||||
},
|
||||
|
||||
onLoad: function (ev) {
|
||||
document.getElementById('tutorial2d').style.display = 'none';
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user