-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (48 loc) · 1.99 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
<!doctype html>
<html>
<head>
<script type="text/javascript">
function getUrlParam(param) {
var parameters = window.location.search.substring(1);
var sURLVariables = parameters.split('&');
console.log(sURLVariables);
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == param) {
return sParameterName[1];
}
}
}
var androidIntentUrl = "intent://www.thebocaraton.com/app" + window.location.search + "#Intent;scheme=http;package=com.bocaraton.hotel;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails?id=com.bocaraton.hotel&referrer=page" + window.location.search + ";end";
var isMobile = {
Windows: function () {
return /IEMobile|Windows Phone|Lumia/i.test(navigator.userAgent);
},
Android: function () {
return /Android/i.test(navigator.userAgent);
},
iPhone: function () {
return /iPhone/i.test(navigator.userAgent);
}
};
// Windows return both android and iPhone in it's identity, need to check first.
if (!isMobile.Windows()) {
if (isMobile.Android()) {
window.location = androidIntentUrl;
}
if (isMobile.iPhone()) {
window.location = "https://apps.apple.com/app/id1624501356";
}
}
/******************************************************************/
</script>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this
<strong>p</strong> tag and its contents. <a
href="intent://www.iranatlas.info/droid/deferred-deeplink#Intent;scheme=http;package=sample.deeplinking.deferred.deferreddeeplink;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails?id=sample.deeplinking.deferred.deferreddeeplink&referrer=droid%2Fcolor;end">click
here</a>
</p>
</body>
</html>