Skip to content

Commit

Permalink
Back buttons on all the page descriptions
Browse files Browse the repository at this point in the history
Makes getting back to the full sample list easy if you link directly to
a sample.
  • Loading branch information
toji committed Mar 29, 2018
1 parent 3543819 commit 8636d11
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions 360-photos.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates displaying a 360 degree equirectangular stereo
photo. It intentionally suppresses view position to ensure that the user
cannot move out of the photo sphere.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
18 changes: 18 additions & 0 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,21 @@ canvas {
margin: 0;
touch-action: none;
}

.back {
float: right;
text-decoration: none;
}

.back:hover {
text-decoration: underline;
}

.back::before {
display: inline-block;
content: attr(data-index) '<';
font-weight: bold;
white-space: nowrap;
margin-right: 0.2em;
margin-left: 0.2em;
}
4 changes: 3 additions & 1 deletion framebuffer-scaling.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
performance or quality as needed.

Framebuffer scaling should be used to make a performance/memory/quality
tradeoff for the lifetime of the session. <br/>
tradeoff for the lifetime of the session.
<a class="back" href="./">Back</a>
<br/>

<select id='framebufferScaleSelect'>
<option value='0.0' selected>Default - Allow the system to decide</option>
Expand Down
1 change: 1 addition & 0 deletions input-selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<p>
This sample demonstrates handling 'select' events generated by
XRInputSources to create clickable objects in the scene.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions input-tracking.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates basic tracking and rendering of
XRInputSources. It does not respond to button presses or other
controller interactions.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
3 changes: 2 additions & 1 deletion magic-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
<p>
This sample demonstrates use of a non-exclusive XRSession to present
'Magic Window' content prior to entering XR presentation with an
exclusive.
exclusive session.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions mirroring.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
XRDevice while mirroring to a context. The scene is not rendered to
the page prior to XR presentation. Mirroring has no effect on mobile
or standalone devices.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions positional-audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
This sample demonstrates playing audio that sounds as if it originates
at a specific point in the space. Audio will begin playing when you
enter XR.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions reduced-bind-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates a simple technique to reduce the number of
state changes an application needs to make while rendering, potentially
enabling better performance.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions room-scale.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates using a 'stage' frame of reference to provide
room scale tracking. If stage bounds are provided by the XRDevice, they
will be represented as a green ground plane.
<a class="back" href="./">Back</a>
</p>
</summary>
</header>
Expand Down
1 change: 1 addition & 0 deletions spectator-mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates how to render a separate, 3rd person view of
the scene to an external monitor if one is available. This sample is
not applicable to mobile or standalone devices.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions tests/cube-sea.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<p>
All hail the cube sea! It's not very interesting to look at, but it's
fantastic for testing!
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions tests/permission-request.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<p>
Tests requesting permissions from within XR. Demonstrates how the UA
handles those requests, if at all.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions tests/pointer-painter.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<p>
Leaves behind a trail of pointers and cursors on select events. Useful
for testing screen input.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions viewport-scaling.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

Viewport scaling should be used to make a performance/quality tradeoff
in response to realtime performance monitoring.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down
1 change: 1 addition & 0 deletions xr-presentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
This sample demonstrates how to present a simple WebGL scene to a
XRDevice. The scene is not rendered to the page prior to XR
presentation, nor is it mirrored during presentation.
<a class="back" href="./">Back</a>
</p>
</details>
</header>
Expand Down

0 comments on commit 8636d11

Please sign in to comment.