-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
27 lines (25 loc) · 864 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
</head>
<body style="margin: 0px; overflow: hidden">
<a-scene embedded arjs>
<!-- define your marker -->
<a-marker type='pattern' url='tryAR_white_border.patt'>
</a-marker>
<a-entity camera></a-entity>
<script>
// Get a reference to the marker
var marker = document.querySelector("a-marker");
// Listen for the marker to be found
marker.addEventListener("markerFound", function () {
// Open a new window or tab
window.open("https://tech.hirawat.in/", "_blank");
});
</script>
</a-scene>
</body>
</html>