-
Notifications
You must be signed in to change notification settings - Fork 0
/
ar.html
84 lines (46 loc) · 4.52 KB
/
ar.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
<!DOCTYPE html><html class="" lang=""><head><script type="text/javascript" class="silex-json-styles" data-silex-static="">
window.silex = window.silex || {}
window.silex.data = {"site":{"width":1200},"pages":[{"id":"page-page-1","displayName":"Page 1","link":{"linkType":"LinkTypePage","href":"#!page-page-1"},"canDelete":true,"canProperties":true,"canMove":true,"canRename":true,"opened":false}]}</script>
<meta charset="UTF-8">
<!-- generator meta tag -->
<!-- leave this for stats and Silex version check -->
<meta name="generator" content="Silex v2.2.14">
<!-- End of generator meta tag -->
<script type="text/javascript" src="https://editor.silex.me/static/2.12/jquery.js" data-silex-static=""></script>
<script type="text/javascript" src="https://editor.silex.me/static/2.12/jquery-ui.js" data-silex-static="" data-silex-remove-publish=""></script>
<script type="text/javascript" src="https://editor.silex.me/static/2.12/pageable.js" data-silex-static="" data-silex-remove-publish=""></script>
<script type="text/javascript" src="https://editor.silex.me/static/2.12/front-end.js" data-silex-static=""></script>
<link rel="stylesheet" href="https://editor.silex.me/static/2.12/normalize.css" data-silex-static="">
<link rel="stylesheet" href="https://editor.silex.me/static/2.12/front-end.css" data-silex-static="">
<style class="silex-style"></style>
<script type="text/javascript" class="silex-script"></script>
<style class="silex-inline-styles">.body-initial {background-color: rgba(255,255,255,1); position: static;}.silex-id-1474394621033-3 {position: static; margin-top: -1px;}.silex-id-1474394621032-2 {background-color: transparent; min-height: 600px; position: relative; margin-left: auto; margin-right: auto;}.silex-id-1683972940846-0 {width: 1204px; min-height: 1213px; background-color: rgb(255, 255, 255); position: static;}@media only screen and (max-width: 480px) {.silex-id-1683972940846-0 {min-height: 1213px; width: 479px; position: static;}}</style>
<title>Project1</title>
<style class="silex-prodotype-style" data-style-id="all-style">.text-element > .silex-element-content {font-family: 'Roboto', sans-serif;}</style><link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" class="silex-custom-font"><meta name="viewport" content="width=device-width, initial-scale=1"><style class="silex-style-settings">.website-width {width: 1200px;}@media (min-width: 481px) {.silex-editor {min-width: 1400px;}}</style></head>
<body data-silex-id="body-initial" class="body-initial all-style enable-mobile prevent-resizable prevent-selectable editable-style silex-runtime" data-silex-type="container-element" style="">
<section data-silex-type="container-element" class="container-element editable-style silex-id-1474394621033-3 section-element prevent-resizable page-page-1 paged-element" data-silex-id="silex-id-1474394621033-3">
<div data-silex-type="container-element" class="editable-style silex-element-content silex-id-1474394621032-2 container-element website-width selected" data-silex-id="silex-id-1474394621032-2"><div data-silex-type="html-element" class="editable-style html-element silex-id-1683972940846-0" data-silex-id="silex-id-1683972940846-0" style=""><div class="silex-element-content"><a rel="ar" id="arurl" href="https://github.com/Antoni-Czaplicki/project1/raw/main/bolidzik-2-v19.usdz" style="
width: 100%;
height: 100%
">
<img src="https://github.com/Antoni-Czaplicki/project1/blob/main/1.png?raw=true" width="100%" height="auto" style="
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);">
</a>
<script>
function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/android/i.test(userAgent)) {
document.getElementById("arurl").href="intent://arvr.google.com/scene-viewer/1.0?file=https://github.com/Antoni-Czaplicki/project1/raw/main/e.gltf#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=https://sites.google.com/view/project1hq/ar;end;";
}
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
document.getElementById("arurl").href="https://github.com/Antoni-Czaplicki/project1/raw/main/bolidzik-2-v19.usdz";
}
return "unknown";
}
console.log(getMobileOperatingSystem())
</script></div></div></div>
</section></body></html>