Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<noscript> equivalent for <mr-app> #587

Open
lobau opened this issue Apr 15, 2024 · 0 comments
Open

<noscript> equivalent for <mr-app> #587

lobau opened this issue Apr 15, 2024 · 0 comments

Comments

@lobau
Copy link
Contributor

lobau commented Apr 15, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To-Triage
Development

No branches or pull requests

1 participant