forked from chiqden/180-stereo-photo-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (46 loc) · 1.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>180 Stereo Photo Viewer</title>
<!-- A-Frame (https://github.com/aframevr/aframe)
Copyright © 2015-2017 A-Frame authors.
MIT License (https://github.com/aframevr/aframe/blob/master/LICENSE) -->
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<!-- Exif.js (https://github.com/exif-js/exif-js)
Copyright (c) 2008 Jacob Seidelin
MIT License (https://github.com/exif-js/exif-js/blob/master/LICENSE.md)
Added support for Extended XMP for VR180 photos. (https://github.com/chiqden/exif-js/tree/add_support_for_extended_xmp) -->
<script src="scripts/exif-js-v2.3.0-added-support-for-extended-xmp.js"></script>
<!-- 180 Stereo Photo Viewer (https://github.com/chiqden/180-stereo-photo-viewer)
Copyright (c) 2019 chiqden
MIT License (https://github.com/chiqden/180-stereo-photo-viewer/blob/master/LICENSE) -->
<script src="scripts/180-stereo-photo-viewer.js"></script>
<script src="scripts/offline-support.js"></script>
</head>
<body>
<a-scene 180-stereo-photo-viewer file-picker loading-screen="backgroundColor: black" background="color: black">
<a-assets>
<img id="stereoImage" src="">
</a-assets>
<a-entity recenter>
<a-camera position="0 0 0" look-controls="reverseMouseDrag: true" wasd-controls-enabled="false"></a-camera>
</a-entity>
<a-text id="loadingText" position="0 0 -1" width="3" value="Loading..." align="center" visible="true"></a-text>
<a-text id="usageText"
position="0 0 -1"
width="2"
value="Double-click/tap
or drag and drop a file
to select a photo.
Hit Space to
recenter horizontally
in VR mode
Scroll to zoom,
Arrow up/down to
rotate image vertically"
align="center"
visible="false"
></a-text>
</a-scene>
</body>
</html>