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 Nov 26, 2023
1 parent 729e06e commit 50c2320
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Binary file added AC22/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 AC22/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 50c2320

Please sign in to comment.