-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (93 loc) · 5.63 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="js/mindAR_components/mindar-image.prod.js"></script>
<script src="js/mindAR_components/aframe.min.js"></script>
<script src="js/mindAR_components/mindar-image-aframe.prod.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<title> UNO AR</title>
</head>
<body>
<div class="bodyoverlay">
<div class="modal" id="infomodal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Herzlich Willkommen zum UNO Augmented Reality Assistent</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<h3>Anleitung:</h3>
<p>Klicke auf den Audio-Button in der rechten unteren Ecke, um die Audiofunktion des Assistenten zu aktivieren. <br><br>
Scanne deine Karte innerhalb des angezeigten Rahmens. Der Assistent wird dir dann auf der Karte zeigen, was du mit dieser tun kannst.</p>
<h6 id="endtext">Viel Spaß beim Spielen!</h6>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger close-btn" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
</div>
<a href="Assets/UNO-AR_Spielanleitung.pdf" target=”_blank” rel="noopener"><div id="info">ⓘ</div></a>
<div id="toggleAudio">
<label class="switch">
<span id="slider"></span>
</label>
</div>
<a-scene mindar-image="imageTargetSrc: targets-UNO.mind;" color-space="sRGB" renderer="colorManagement: true, physicallyCorrectLights" vr-mode-ui="enabled: false" device-orientation-permission-ui="enabled: false">
<a-assets>
<img id="retoure" src="Assets/images/retoure.png" />
<img id="draw_4_color" src="Assets/images/draw_4_color.png" />
<img id="draw_2" src="Assets/images/draw_2.png" />
<img id="numbers" src="Assets/images/numbers.png" />
<img id="skip" src="Assets/images/skip.png" />
</a-assets>
<a-camera position="0 0 0" look-controls="enabled: false"></a-camera>
<a-entity id='card_draw_2' mindar-image-target="targetIndex: 0 ">
<a-plane src="#draw_2" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<!-- NUMBERS -->
<a-entity id='card_number_1' mindar-image-target="targetIndex: 1 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_2' mindar-image-target="targetIndex: 2 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_3' mindar-image-target="targetIndex: 3 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_4' mindar-image-target="targetIndex: 4 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_5' mindar-image-target="targetIndex: 5 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_6' mindar-image-target="targetIndex: 6 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_number_7' mindar-image-target="targetIndex: 7 ">
<a-plane src="#numbers" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_retoure' mindar-image-target="targetIndex: 8 ">
<a-plane src="#retoure" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_skip' mindar-image-target="targetIndex: 9 ">
<a-plane src="#skip" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
<a-entity id='card_draw_4_color' mindar-image-target="targetIndex: 10 ">
<a-plane src="#draw_4_color" position="0 0 0" height="1.6" width="1" rotation="0 0 0"></a-plane>
</a-entity>
</a-scene>
<script src="js/audio.js"></script>
</body>
</html>