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 committed Apr 22, 2024
1 parent e9fbfb9 commit f146eb3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Binary file added AF33/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions AF33/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<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 f146eb3

Please sign in to comment.