Skip to content

Commit 2e7bdb1

Browse files
author
Avaer Kazmer
committed
Examples cleanup
1 parent 10e123d commit 2e7bdb1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<html>
33
<body>
44
<xr-site camera-position="0 2 3" camera-orientation="-0.2297529205473612 0 0 0.9732489894677301">
5-
<xr-iframe src="examples/subscene.html" position="0 0.5 0" name="Subscene"></xr-iframe>
5+
<xr-iframe src="examples/tutorial.html" position="0 0.5 0" name="Introduction"></xr-iframe>
6+
<xr-iframe src="examples/subscene.html" position="1 1 0" name="Subscene"></xr-iframe>
67
<xr-iframe src="examples/floor.html" position="-1 0 0" name="Floor"></xr-iframe>
78
</xr-site>
89
<!-- optional UI follows -->
@@ -17,13 +18,11 @@
1718

1819
const root = document.querySelector('xr-site');
1920
const floorXrIframe = document.querySelector('xr-iframe[name=Floor]');
20-
floorXrIframe.addEventListener('load', e => {
21+
/* floorXrIframe.addEventListener('load', e => {
2122
console.log('floor load', e);
22-
});
23+
}); */
24+
const tutorialXrIframe = document.querySelector('xr-iframe[name=Introduction]');
2325
const subsceneXrIframe = document.querySelector('xr-iframe[name=Subscene]');
24-
subsceneXrIframe.addEventListener('load', e => {
25-
console.log('introduction load', e);
26-
});
2726
const _addControls = xrIframe => {
2827
const object = new THREE.Object3D();
2928
object.position.fromArray(xrIframe.position);
@@ -106,6 +105,7 @@
106105
root.layers.push(renderer.domElement);
107106

108107
_addControls(floorXrIframe);
108+
_addControls(tutorialXrIframe);
109109
_addControls(subsceneXrIframe);
110110
_postTabs();
111111

examples/subscene.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html>
33
<body>
44
<xr-site camera-position="0 2 3" camera-orientation="-0.2297529205473612 0 0 0.9732489894677301">
5-
<xr-iframe src="tutorial.html" name="Introduction"></xr-iframe>
6-
<xr-iframe src="example1xr.html" position="1 1 0" name="Red Cube"></xr-iframe>
5+
<xr-iframe src="example1xr.html" position="0 0 -1" name="Red Cube"></xr-iframe>
6+
<xr-iframe src="example2xr.html" position="0 0 1" name="Green Cube"></xr-iframe>
77
</xr-site>
88
</body>
99
</html>

0 commit comments

Comments
 (0)