diff --git a/examples/aframe/dialog/index.html b/examples/aframe/dialog/index.html new file mode 100644 index 00000000..4f57bf40 --- /dev/null +++ b/examples/aframe/dialog/index.html @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/aframe/dialog/navigate.js b/examples/aframe/dialog/navigate.js new file mode 100644 index 00000000..18659cf5 --- /dev/null +++ b/examples/aframe/dialog/navigate.js @@ -0,0 +1,16 @@ +AFRAME.registerComponent('navigate', { + schema: { + on: {type: 'string', default: 'click'}, + link: {type: 'selector'} + }, + init: function () { + this.el.addEventListener(this.data.on, function () { + if (this.data.link.href.indexOf('altspace://') === 0) { + this.data.link.click(); + } + else { + altspace.open(this.data.link.href, '_blank'); + } + }.bind(this)); + } +}); diff --git a/examples/aframe/dialog/resources/btn-CLICK-HERE.png b/examples/aframe/dialog/resources/btn-CLICK-HERE.png new file mode 100644 index 00000000..9fcbd302 Binary files /dev/null and b/examples/aframe/dialog/resources/btn-CLICK-HERE.png differ diff --git a/examples/aframe/dialog/resources/btn-NEW-NOTIFICATION.png b/examples/aframe/dialog/resources/btn-NEW-NOTIFICATION.png new file mode 100644 index 00000000..6f93f19a Binary files /dev/null and b/examples/aframe/dialog/resources/btn-NEW-NOTIFICATION.png differ diff --git a/examples/aframe/dialog/resources/close-hover.png b/examples/aframe/dialog/resources/close-hover.png new file mode 100644 index 00000000..4d7abe93 Binary files /dev/null and b/examples/aframe/dialog/resources/close-hover.png differ diff --git a/examples/aframe/dialog/resources/icon-close.png b/examples/aframe/dialog/resources/icon-close.png new file mode 100644 index 00000000..45f62146 Binary files /dev/null and b/examples/aframe/dialog/resources/icon-close.png differ diff --git a/examples/aframe/dialog/resources/sm-notification-MACH.png b/examples/aframe/dialog/resources/sm-notification-MACH.png new file mode 100644 index 00000000..ee424ca2 Binary files /dev/null and b/examples/aframe/dialog/resources/sm-notification-MACH.png differ