Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Logs
*.pem
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# bundle.*

*DS_Store

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

#bundle.js
#bundle.js.map
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,30 @@
See the License for the specific language governing permissions and
limitations under the License.

--- Hello WebXR! ---

MIT License

Copyright (c) 2019 Mozilla Mixed Reality

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

--- README.MD Template ---

MIT License
Expand Down
Binary file added assets/angel.basis
Binary file not shown.
Binary file added assets/angel.min.glb
Binary file not shown.
Binary file added assets/ballfx.basis
Binary file not shown.
Binary file added assets/beamfx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blender/angel.blend
Binary file not shown.
Binary file added assets/blender/door.blend
Binary file not shown.
Binary file added assets/blender/generic_controller.blend
Binary file not shown.
Binary file added assets/blender/hall.blend
Binary file not shown.
Binary file added assets/blender/hall_empty.blend
Binary file not shown.
Binary file added assets/blender/hall_for_hubs.blend
Binary file not shown.
Binary file added assets/blender/sound.blend
Binary file not shown.
Binary file added assets/blender/spray.blend
Binary file not shown.
Binary file added assets/blender/teleport.blend
Binary file not shown.
Binary file added assets/blender/vertigo.blend
Binary file not shown.
Binary file added assets/checkboard.basis
Binary file not shown.
Binary file added assets/clouds.basis
Binary file not shown.
Binary file added assets/controller.basis
Binary file not shown.
Binary file added assets/doorfx.basis
Binary file not shown.
Binary file added assets/flare.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/foxr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/generic_controller.glb
Binary file not shown.
Binary file added assets/glow.basis
Binary file not shown.
Binary file added assets/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/haldezollern.basis
Binary file not shown.
Binary file added assets/haldezollern_small.basis
Binary file not shown.
Binary file added assets/hall.glb
Binary file not shown.
Binary file added assets/hall_variants/hall_empty.glb
Binary file not shown.
Binary file added assets/lakebyllesby.basis
Binary file not shown.
Binary file added assets/lakebyllesby_small.basis
Binary file not shown.
Binary file added assets/lightmap.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loadingbg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mozillamr.basis
Binary file not shown.
Binary file added assets/newsticker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ogg/bells.ogg
Binary file not shown.
Binary file added assets/ogg/birds.ogg
Binary file not shown.
Binary file added assets/ogg/chopin.ogg
Binary file not shown.
Binary file added assets/ogg/cowbell.ogg
Binary file not shown.
Binary file added assets/ogg/forest.ogg
Binary file not shown.
Binary file added assets/ogg/guiro.ogg
Binary file not shown.
Binary file added assets/ogg/horn.ogg
Binary file not shown.
Binary file added assets/ogg/mandolin.ogg
Binary file not shown.
Binary file added assets/ogg/motorhorn.ogg
Binary file not shown.
Binary file added assets/ogg/spray.ogg
Binary file not shown.
Binary file added assets/ogg/squeaker.ogg
Binary file not shown.
Binary file added assets/ogg/surdo.ogg
Binary file not shown.
Binary file added assets/ogg/teleport_a.ogg
Binary file not shown.
Binary file added assets/ogg/teleport_b.ogg
Binary file not shown.
Binary file added assets/ogg/train.ogg
Binary file not shown.
Binary file added assets/ogg/trumpet.ogg
Binary file not shown.
Binary file added assets/ogg/whistle.ogg
Binary file not shown.
Binary file added assets/ogg/wind.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone1.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone10.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone11.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone12.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone13.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone2.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone3.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone4.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone5.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone6.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone7.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone8.ogg
Binary file not shown.
Binary file added assets/ogg/xylophone9.ogg
Binary file not shown.
Binary file added assets/paintings/bosch.basis
Binary file not shown.
Binary file added assets/paintings/degas.basis
Binary file not shown.
Binary file added assets/paintings/rembrandt.basis
Binary file not shown.
Binary file added assets/paintings/seurat.basis
Binary file not shown.
Binary file added assets/paintings/sorolla.basis
Binary file not shown.
Binary file added assets/panel.basis
Binary file not shown.
Binary file added assets/pg_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/pg_door_lm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/pg_floor_lm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sound.glb
Binary file not shown.
Binary file added assets/sound_door.glb
Binary file not shown.
Binary file added assets/sound_door_lm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sound_shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/spray.basis
Binary file not shown.
Binary file added assets/spray.glb
Binary file not shown.
Binary file added assets/spray_brush.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/stereopanoL.basis
Binary file not shown.
Binary file added assets/stereopanoR.basis
Binary file not shown.
Binary file added assets/stereopano_small.basis
Binary file not shown.
Binary file added assets/teleport.glb
Binary file not shown.
Binary file added assets/thuringen.basis
Binary file not shown.
Binary file added assets/thuringen_small.basis
Binary file not shown.
Binary file added assets/tigerturtle.basis
Binary file not shown.
Binary file added assets/tigerturtle_small.basis
Binary file not shown.
Binary file added assets/travertine2.basis
Binary file not shown.
78 changes: 78 additions & 0 deletions assets/tweets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
[
{
"author": "@mozillareality",
"message": "Introducing Hello WebXR! - A #webxr experience for VR headsets for all audiences. Have fun!. #hellowebxr https://tinyurl.com/hello-webxr"
},
{
"author": "@hovercruft",
"message": "Painted a thing! #hellowebxr #berlin"
},
{
"author": "@el_cayumry",
"message": "@mozillareality is nice to just let yourself drift into the metaverse.. #hellowebxr"
},
{
"author": "@fernandojsg",
"message": "Our ECSY library was really handy for our new #hellowebxr demo ^_^"
},
{
"author": "@JohanGuy",
"message": "I didn't expect #hellowebxr experience at all. Not sure what to think..."
},
{
"author": "@Fancypansy",
"message": "Weeee!! ^_^! hellowebxr"
},
{
"author": "@Foxr",
"message": "Hey, look mum! I'm in #hellowebxr =:o)"
},
{
"author": "@humphreymatel",
"message": "Trying the Hello WebXR experience on my #oculusquest. So far so good! #hellowebxr"
},
{
"author": "@GavMov34",
"message": "I'm amazed by WebXR technology! kudos to @mozillareality #hellowebxr https://mixedreality.mozilla.org"
},
{
"author": "@samo_la_utma",
"message": "#hellowebxr Na ou taumafai lava i le demo o Mozilla Hello webXR! E le leaga!"
},
{
"author": "@frederic",
"message": "Go try #hellowebxr demo! Not a thrill but kinda nice :)"
},
{
"author": "@jennymarvel",
"message": "If this is the metaverse, it's not for me :( #hellowebxr"
},
{
"author": "@ovvli",
"message": "WOAH. Great job guys! Got lost initially a bit but finally made it :_) #hellowebxr"
},
{
"author": "@feiss",
"message": "Hope everyone tries and enjoys our #hellowebxr experience! :)"
},
{
"author": "@mountain_news",
"message": "Hello WebXR! is a new VR experience by Mozilla Mixed Reality. Try it at https://mixedreality.mozilla.org #hellowebxr"
},
{
"author": "@JArco",
"message": "Acabo de probar la demo de Mozilla Hello webXR!. Nostamal! :) #hellowebxr"
},
{
"author": "@goroshart",
"message": "#hellowebxr it's quite nice, tried the grafitti thing. Where's the undo??"
},
{
"author": "@Mr R",
"message": "The Mozilla MR guys released a new demo #hellowebxr"
},
{
"author": "@Ocklando",
"message": "Ta chula la demo de #hellowebxr .. Un poco corta, eso sí, pero potita :)"
}
]
Binary file added assets/vertigo.glb
Binary file not shown.
Binary file added assets/vertigo_door_lm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/vertigo_lm.basis
Binary file not shown.
Binary file added assets/zapporthorn.basis
Binary file not shown.
Binary file added assets/zapporthorn_small.basis
Binary file not shown.
Binary file added assets/zoomicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
180 changes: 180 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="./res/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./res/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./res/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./res/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="./res/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="./res/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="./res/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./res/favicon-16x16.png" sizes="16x16" />
<meta name="application-name" content="WebXR - a11y — tmn.dev"/>
<meta name="msapplication-TileColor" content="#C6C6C6" />
<meta name="msapplication-TileImage" content="./res/mstile-144x144.png" />

<!-- Search Engine -->
<meta name="description" content="Accessibility Demonstration of WebXR multi-experience forked from the Mozilla Mixed Reality team.">
<meta name="image" content="./assets/big_thumbnail.jpg">
<!-- Schema.org for Google -->
<meta itemprop="name" content="WebXR - a11y — tmn.dev">
<meta itemprop="description" content="Accessibility Demonstration of WebXR multi-experience forked from the Mozilla Mixed Reality team.">
<meta itemprop="image" content="./assets/big_thumbnail.jpg">
<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="WebXR - a11y — tmn.dev">
<meta name="twitter:description" content="Accessibility Demonstration of WebXR multi-experience forked from the Mozilla Mixed Reality team. https://webxr-a11y.tmn.dev">
<meta name="twitter:site" content="@TimonLinke">
<meta name="twitter:creator" content="@TimonLinke">
<meta name="twitter:image:src" content="./assets/big_thumbnail.jpg">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta name="og:title" content="WebXR - a11y — tmn.dev">
<meta name="og:description" content="Accessibility Demonstration of WebXR multi-experience forked from the Mozilla Mixed Reality team.">
<meta name="og:image" content="./assets/big_thumbnail.jpg">
<meta name="og:url" content="https://webxr-a11y.tmn.dev">
<meta name="og:site_name" content="WebXR - a11y — tmn.dev">
<meta name="og:locale" content="en_US">
<meta name="og:type" content="website">

<title>WebXR - a11y — tmn.dev</title>

<style>
@font-face{
font-family: 'Roboto Slab';
src: url('https://static.tmn.dev/fonts/roboto-slab-600.woff');
src: url('https://static.tmn.dev/fonts/roboto-slab-600woff2') format('woff2'),
url('https://static.tmn.dev/fonts/roboto-slab-600.woff') format('woff'),
url('https://static.tmn.dev/fonts/roboto-slab-600.otf') format('opentype'),
url('https://static.tmn.dev/fonts/roboto-slab-600.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}

body{
margin: 0;
overflow: hidden;
font-family: 'Roboto Slab', sans-serif;
}

header {
position: absolute;
width: calc(100vw - 1rem);
margin-top: 1rem;
text-align: right;
}

footer {
position: absolute;
bottom: 0;
width: 100vw;
margin-bottom: 1rem;
text-align: right;
}

header a {
text-decoration: none;
color: #000;
margin-left: 0.8rem;
vertical-align: top;
}

header a path{
fill: #000;
}

header a:hover {
color: #059;
text-decoration: underline;
text-underline-offset: 6px;
}

#handedness a {
margin-left: 0.3rem;
}

.activehand {
background: #000;
color: #fff;
padding: 3px 12px;
border-radius: 5px;
pointer-events: none;
}

#loading {
z-index: 9999;
position: absolute;
width: 100vw;
height: 100vh;
overflow: hidden;
background: url(assets/loadingbg.jpg);
background-size: cover;
background-position: center;
}

#loading h1 {
color: white;
font-size: 6rem;
margin: 1rem;
text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
}

#loading div {
text-align: center;
position: absolute;
width: 100vw;
top: calc(50vh - 120px);
font-size: 2rem;
}

.hidden {
display: none;
}

#no-webxr {
padding: 20px;
text-align: center;
}

#no-webxr a {
color: #000;
}

</style>
<script defer src="bundle.js"></script>
<script type="text/javascript">
function aclick(ev) {
ev.stopPropagation();
}

function setHandedness(link, hand) {
var currentURL = new URL(window.location);
currentURL.searchParams.set('handedness', hand);
link.href = currentURL.href;
}
</script>
</head>
<body>
<div id="loading">
<div>
<h1>Hello! Currently loading Assets and Data</h1>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" version="1.1">
<path stroke="#000" stroke-width="8px" fill="none" d="M 50 5 a 45 45 0 1 0 0.0001 0"
stroke-dasharray="282 282" stroke-dashoffset="282" id="progressbar"/>
</svg>
</div>
</div>
<div id="no-webxr" class="hidden">
WEBXR NOT AVAILABLE. PLEASE USE A VR HEADSET (<a href="https://www.youtube.com/watch?v=uXBDogyGXTQ">watch preview video</a>)
</div>
<header>
<span id="handedness">
Handedness:
<a href="#" id="lefthand" onclick="setHandedness(this, 'left')">Left</a>
<a href="#" id="righthand" onclick="setHandedness(this, 'right')">Right</a>
</span>
</header>
<footer></footer>
</body>
</html>
Loading