mrjs
mrjs copied to clipboard
`<noscript>` equivalent for `<mr-app>`
when using Javascript, you can define a <noscript> tag that only displays if the browser's javascript is disabled
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
I think it would be cool if mr-app had something similar. Maybe it's mr-noxr or something, for when the user is not in XR.
That would allow people to only support XR for their app, while having a nice simple HTML page visible when you are not in XR.
Proposal:
<mr-app>
<mr-panel>
<mr-text class="title">Hello world!</mr-text>
<mr-text>This is an mr-app</mr-text>
</mr-panel>
<mr-noxr>
<h1>Hello world!</h1>
<p>Please visit this page in your VR headset to get started!</p>
</mr-noxr>
</mr-app>