AR/index.html

68 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AR Menu</title>
<!-- <link rel="stylesheet" href="assets/style/style.css"> </link> -->
<style>html,
body {
width: 100%;
height: 100vh;
overflow: hidden;
margin: 0px;
padding: 0px;
border: none;
}
iframe {
width: 100%;
height: 100vh;
overflow: hidden;
margin: 0px;
padding: 0px;
border: none;
}
.menu-item {
border: 1px solid #ccc;
padding: 10px;
margin: 10px;
display: inline-block;
cursor: pointer;
}
.menu-item img {
width: 100px;
height: 100px;
display: block;
}
#iframe-container {
width: 100%;
height: 100vh;
overflow: hidden;
margin: 0px;
padding: 0px;
border: none;
display: none;
}</style>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.min.js"></script>
</head>
<body>
<div id="iframe-container">
<button id="button" onclick="closeSelf()" style="background-color: aqua; z-index: 3;">Go Back</button>
<iframe id="ar-frame" src="" width="300" height="200"></iframe>
</div>
<div id="menu">
<!-- Menu items will be inserted here -->
</div>
<script src="script.js"></script>
</body>
</html>