Wanted to share a pattern that I’ve used to hook up HTML5 Web Overlay Windows (which can be interacted with in the HMD), to Interface.
main.js – interface client script, loads the weboverlay and points it at the html5 page
main.html – loads the eventbridgeloader and a qrcwebchannel to talk across. contains the actual GUI
eventbridgeloader.js – so the page can talk to interface
jquery – convenience methods
so you build some GUI in html5 and then on its event handlers, send some web events across the EventBridge. Vice versa for data flow in the opposite direction.
in this example you have to have ‘stats’ enabled in developer options.
p.s. one caveat is that i dont think you can host this over https because of qrcwebchannel issues… this is known but not yet resolved.
you should be able to use a pattern like this to make all sorts of fun things that interact with the world, using familiar tools (HTML5, CSS, DOM, etc).