tutorial2d

This commit is contained in:
Diego F. Goberna
2018-11-15 23:06:07 +01:00
parent 9634d8cbde
commit 46ebe3b574
4 changed files with 27 additions and 1 deletions

View 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';
}
});