Skip to content

Commit 3a6964d

Browse files
authored
Update index.html
1 parent 94645be commit 3a6964d

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

index.html

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<!DOCTYPE html>
22
<html>
3-
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
4-
<!-- we import arjs version without NFT but with marker + location based support -->
5-
<script src="https://raw.githack.com/AR-js-org/AR.js/dev/aframe/build/aframe-ar.js"></script>
6-
<body style="margin : 0px; overflow: hidden;">
7-
<a-scene embedded arjs>
8-
<a-nft type='nft'>
9-
<a-image src='6628cba43e5e6_1647160462_fq.jpg' width='1' height='1'></a-image>
10-
</a-nft>
11-
<a-entity camera></a-entity>
12-
</a-scene>
13-
</body>
3+
<!-- include A-Frame obviously -->
4+
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
5+
<!-- include ar.js for A-Frame -->
6+
<script src="https://raw.githack.com/AR-js-org/AR.js/dev/aframe/build/aframe-ar.js"></script>
7+
<body style="margin: 0px; overflow: hidden">
8+
<a-scene embedded arjs>
9+
<!-- create your content here. just a box for now -->
10+
<a-box position="0 0.5 0" material="opacity: 0.5;"></a-box>
11+
<a-image src="6628cba43e5e6_1647160462_fq.jpg"></a-image>
12+
<!-- define a camera which will move according to the marker position -->
13+
<a-marker-camera preset="hiro"></a-marker-camera>
14+
</a-scene>
15+
</body>
1416
</html>

0 commit comments

Comments
 (0)