-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
325 lines (279 loc) · 14.8 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Required for favicon -->
<link rel="icon" href="./assets/favicon.ico" sizes="any"><!-- 32×32 -->
<link rel="apple-touch-icon" sizes="180x180" href="./assets/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="./assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon-16x16.png">
<link rel="manifest" href="./assets/manifest.webmanifest">
<!-- bootstrap css-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<!-- bootstrap icons-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<!-- required by model viewer -->
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"></script>
<!-- required for qrcode-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"
integrity="sha512-pUhApVQtLbnpLtJn6DuzDD5o2xtmLJnJ7oBoMsBnzOkVkpqofGLGPaBJ6ayD2zQe3lCgCibhJBi4cj5wAxwVKA=="
crossorigin="anonymous"></script>
</head>
<body class="text-center bg-white">
<!-- whole web container inside body-->
<div class="container w-100">
<!-- menu header section -->
<nav class="navbar navbar-expand-md pt-2">
<a href="" class="navbar-brand">
<img src="./assets/vr4content.512.transparent.bg.png" alt="vr4content icon" width="25" height="25" class="mb-2">
<h5 class="text-dark d-inline-block px-2">Web AR experience</h5>
</a>
<!--collapsed button -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-list"></i>
</button>
<!--menu elements -->
<div class="collapse navbar-collapse small justify-content-end" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link nav-item text-black-50" href="#how_to">how to use?</a></li>
<li class="nav-item"><a class="nav-link nav-item text-black-50" href="#embed">embed code</a></li>
<li class="nav-item"><a class="nav-link nav-item text-black-50" href="#about">about this web</a></li>
<li class="nav-item"><a class="nav-link nav-item text-black-50" href="#contact">contact</a></li>
</ul>
</div>
</nav>
<!-- 3d model section -->
<div class="shadow bg-light">
<div class="row px-3 py-2 align-items-center">
<h5 class="text-start"><i class="bi bi-phone pe-2"></i>3D AR for mobile and web</h5>
<!-- left column -->
<div class="col">
<p class="text-center">Here you can see how it looks your 3D model integrated on
the webpage. This is also a web AR experience made for mobiles phones. To bring this 3D model to your
environment visit this page with your mobile web browser.</p>
<P class="mb-0 small pt-2">follow us for more content:</P>
<div class="btn-group">
<button type="button" class="btn"><a target="_blank" class="text-dark"
href="https://www.instagram.com/vr4content/"><i class="bi bi-instagram"></i></a></button>
<button type="button" class="btn"><a target="_blank" class="text-dark"
href="https://www.youtube.com/channel/UC8KziANSHhEH-ctOw1bWSWA"><i
class="bi bi-youtube"></i></a></button>
<button type="button" class="btn"><a target="_blank" class="text-dark"
href="https://twitter.com/vr4content"><i class="bi bi-twitter"></i></a></button>
<button type="button" class="btn"><a target="_blank" class="text-dark"
href="https://www.facebook.com/vr4content/"><i class="bi bi-facebook"></i></a></button>
<button type="button" class="btn"><a target="_blank" class="text-dark"
href="https://www.linkedin.com/company/vr4content"><i class="bi bi-linkedin"></i></a></button>
</div>
</div>
<!-- right column -->
<div class="col">
<model-viewer
style="width: 300px; height: 300px; margin:0 auto; background-color: #ffffff00; outline: none;border: none"
src="./assets/your3dmodel.glb" ios-src="./assets/your3dmodel.usdz" alt="your 3d model" auto-rotate ar
ar-modes="scene-viewer webxr quick-look" camera-orbit="90deg 90deg 0.5m" min-camera-orbit="auto auto auto"
max-camera-orbit="auto auto 0.5m" camera-controls>
</model-viewer>
</div>
</div>
</div>
<!-- how to use section -->
<div id="how_to" class="shadow bg-light mt-4 pb-3 px-3">
<h5 class="text-start py-2 "><i class="bi bi-info-circle pe-2"></i>how to use?</h5>
<canvas id="qr" class="mb-3"></canvas>
<script>
(function () {
//remove anchor parameters from url
var str = window.location.href;
var index = str.lastIndexOf("/");
var url = str.substr(0, index);
var qr = new QRious({
element: document.getElementById('qr'),
size: 256,
value: url
});
})();
</script>
<div class="card-group">
<div class="card bg-transparent border-0">
<i class="bi bi-upc-scan" style="font-size: 3rem;"></i>
<div class="card-body ">
<p class="card-text text-start">1. Scan this QR code or write manually the actual url on your mobile
browser.</p>
</div>
</div>
<div class="card bg-transparent border-0">
<img src="./assets/ic_modelviewer.svg" alt="ar icon" class="pt-2 mx-auto d-block img-fluid card-img-top"
style="width:64px">
<div class="card-body ">
<p class="card-text text-start">2. Click on the icon over the 3d model to bring the object to your space.
</p>
</div>
</div>
<div class="card bg-transparent border-0">
<img src="./assets/hand.png" alt="ar icon" class="pt-1 mx-auto d-block img-fluid card-img-top"
style="width:62px">
<div class="card-body ">
<p class="card-text text-start">3. Move your mobile around to scan your surroundings and place your 3d
model.</p>
</div>
</div>
<div class="card bg-transparent border-0">
<img src="./assets/mobileshare.svg" alt="mobile share" class="pt-2 mx-auto d-block img-fluid card-img-top"
style="width:62px">
<div class="card-body ">
<p class="card-text text-start">4. Record a video or take pictures from your experiences to share with
others.</p>
</div>
</div>
</div>
</div>
<!-- embed section -->
<div id="embed" class="shadow bg-light mt-4 pb-3 px-3">
<h5 class="text-start py-2"><i class="bi bi-code-square pe-2"></i>embed code</h5>
<div class="row">
<div class="col px-4">
<p class="text-start">Copy and paste this embed code on to your web editor to bring this 3d ar experience to
any web page</p>
<textarea spellcheck="false" class="form-control mb-2 text-start" id="codeTextArea" rows="3"><iframe src=""></iframe>
</textarea>
<button onclick="copyTextToClipboard()" class="btn btn-outline-secondary float-end btn-sm" type="button"
id="button-addon2">copy</button>
</div>
</div>
</div>
<!-- script required for embed section -->
<script>
function getFrameUrl() {
var str = window.location.href;
var index = str.lastIndexOf("/");
return str.substr(0, index) + "/frame.html";
}
function getEmbedCode() {
return '<iframe src="' + getFrameUrl() + '" allow="xr xr-spatial-tracking" scrolling="no" frameborder="0" style="height: 100%; width: 100%; border: 0;"></iframe>'
}
function copyTextToClipboard() {
var text = getEmbedCode();
navigator.clipboard.writeText(text).then(function () {
console.log('Async: Copying to clipboard was successful!');
}, function (err) {
console.error('Async: Could not copy text: ', err);
});
}
document.getElementById("codeTextArea").innerHTML = getEmbedCode();
</script>
<!-- about this web section -->
<div id="about" class="shadow bg-light mt-4 pb-3 px-3">
<h5 class="text-start py-2"><i class="bi bi-search pe-2"></i>more about this experience</h5>
<div class="card-group mx-3">
<!-- card -->
<div class="card bg-transparent border-0 mt-4">
<i class="bi bi-phone" style="font-size: 3rem;"></i>
<p class="small fw-bold">3D / AR experience</p>
<div class="card-body ">
<p class="card-text text-start small">This web is using model viewer library. Use a phone/browser with AR
capabilities to get the full AR experience.</p>
</div>
<div class="card-footer bg-transparent border-0">
<a class="btn btn-sm btn-dark bg-light text-dark" href="https://modelviewer.dev/" target="_blank">+ info</a>
</div>
</div>
<!-- card -->
<div class="card bg-transparent border-0 mt-4">
<i class="bi bi-bootstrap" style="font-size: 3rem;"></i>
<p class="small fw-bold">Bootstrap</p>
<div class="card-body ">
<p class="card-text text-start small">This web is using Bootstrap and other components to ensure a smooth
and high quality resposive experience.</p>
</div>
<div class="card-footer bg-transparent border-0">
<a class="cardlink btn btn-sm btn-dark bg-light text-dark" href="https://getbootstrap.com/"
target="_blank">+ info</a>
</div>
</div>
<!-- card -->
<div class="card bg-transparent border-0 mt-4">
<i class="bi bi-github" style="font-size: 3rem;"></i>
<p class="small fw-bold">GitHub</p>
<div class="card-body ">
<p class="card-text text-start small">This web is self hosted using github pages. If you need to
customize this web or to have access please contact us.</p>
</div>
<div class="card-footer bg-transparent border-0 mt-3">
<a class="cardlink btn btn-sm btn-dark bg-light text-dark" href="mailto:info@vr4content.com"
target="_blank">send email</a>
</div>
</div>
<!-- card -->
<div class="card bg-transparent border-0 mt-4">
<i class="bi bi-server" style="font-size: 3rem;"></i>
<p class="small fw-bold">Static Web</p>
<div class="card-body ">
<p class="card-text text-start small">This is a static web page. It means that here is no server side
activity, database, cookies or any type of data tracking.</p>
</div>
<div class="card-footer bg-transparent border-0">
<a class="cardlink btn btn-sm btn-dark bg-light text-dark"
href="https://en.wikipedia.org/wiki/Static_web_page" target="_blank">+ info</a>
</div>
</div>
</div>
</div>
<!-- contact section -->
<div id="contact" class="shadow bg-light mt-3 px-3">
<h5 class="text-start py-2"><i class="bi bi-person-circle pe-2"></i>contact</h5>
<div class="row">
<div class="col-xl">
<div class="row mb-5">
<div class="col"><img src="./assets/vr4content.512.transparent.bg.png" alt="logo"
class="img-fluid float-end" style="width:128px"></div>
<div class="col text-start">
<div class="btn-group-vertical">
<a href="https://vr4content.com" target="_blank" class="btn text-start d-inline-block"
aria-current="page"><i class="bi bi-globe d-inline-block"></i><small
class="d-inline-block px-1">vr4content.com</small></a>
<a class="btn text-start d-inline-block" aria-current="page"><i
class="bi bi-telephone d-inline-block"></i><small class="d-inline-block px-1">+49
1799678782</small></a>
<a href="mailto:hello@vr4content.com" class="btn text-start d-inline-block" aria-current="page"><i
class="bi bi-envelope d-inline-block"></i><small
class="d-inline-block px-1">hello@vr4content.com</small></a>
<a href="https://www.google.com/maps/place/vr4content/@52.5271363,13.3846689,19z/data=!4m14!1m7!3m6!1s0x47a85105e5088fab:0x76d4b69f1a6cc3b!2svr4content!8m2!3d52.5271355!4d13.385314!16s%2Fg%2F11kprqs63g!3m5!1s0x47a85105e5088fab:0x76d4b69f1a6cc3b!8m2!3d52.5271355!4d13.385314!16s%2Fg%2F11kprqs63g?entry=ttu"
target="_blank" class="btn text-start d-inline-block" aria-current="page"><i
class="bi bi-geo-alt d-inline-block"></i><small class="px-1">Hannoversche Str.
3 (Remise) 10115 Berlin Germany</small></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer section -->
<footer class="text-black-50 mt-5">
<P class="mb-0 small">follow us for more content:</P>
<div class="btn-group">
<button type="button" class="btn"><a class="text-black-50" href="https://www.instagram.com/vr4content/"><i
class="bi bi-instagram"></i></a></button>
<button type="button" class="btn"><a class="text-black-50"
href="https://www.youtube.com/channel/UC8KziANSHhEH-ctOw1bWSWA"><i class="bi bi-youtube"></i></a></button>
<button type="button" class="btn"><a class="text-black-50" href="https://twitter.com/vr4content"><i
class="bi bi-twitter"></i></a></button>
<button type="button" class="btn"><a class="text-black-50" href="https://www.facebook.com/vr4content/"><i
class="bi bi-facebook"></i></a></button>
<button type="button" class="btn"><a class="text-black-50" href="https://www.linkedin.com/company/vr4content"><i
class="bi bi-linkedin"></i></a></button>
</div>
<p class="small">this is a web design powered by vr4content.com</p>
</footer>
</div>
<!-- bootstrap requirement-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
</body>
</html>