-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (28 loc) · 1.02 KB
/
index.html
File metadata and controls
30 lines (28 loc) · 1.02 KB
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
<!DOCTYPE html>
<html>
<body>
<!-- This is the message that will be shown if the user is on iOS -->
<div id="iosMessage" style="display: none">
<h2>iOS APP은 곧 출시 예정입니다.</h2>
</div>
<script>
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("android") > -1) {
// window.location.href = "market://details?id=com.korot.bp_app&hl=ko";
} else if (
ua.indexOf("iphone") > -1 ||
ua.indexOf("ipad") > -1 ||
ua.indexOf("ipod") > -1
) {
// window.location.href = "itms-apps://apps.apple.com/app/idyourappid";
document.getElementById("iosMessage").style.display = "block";
} else {
// For desktop or unsupported devices, perhaps redirect to a general download page or website home
window.location.href =
"https://play.google.com/store/apps/details?id=com.korot.bp_app";
}
</script>
<button onclick="window.Android.postMessage('https://www.google.com')">
Android
</body>
</html>