Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mironov authored Apr 26, 2024
1 parent c5730f3 commit 79e59e3
Showing 1 changed file with 36 additions and 7 deletions.
43 changes: 36 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Tangem</title>
</head>
<body>
<p>test</p>
</body>
<html lang="en">

<head>
<meta charset="utf-8" />
<script>
function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;

if (/android/i.test(userAgent)) {
return "Android";
}
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
return "iOS";
}

return "unknown";
}
</script>

<script>
function DetectAndServe(){
let os = getMobileOperatingSystem();
if (os == "Android") {
window.location.href = "https://play.google.com/store/apps/details?id=com.tangem.wallet";
} else if (os == "iOS") {
window.location.href = "https://apps.apple.com/app/id1354868448";
} else {
window.location.href = "https://shop.tangem.com";
}
}
</script>
</head>

<body onload="DetectAndServe()">
</body>

</html>

0 comments on commit 79e59e3

Please sign in to comment.