-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.html
26 lines (24 loc) · 880 Bytes
/
app.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
<!doctype html>
<html>
<head>
<title>Download Pouch</title>
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
</head>
<body>
<main style="text-align:center;">
<a href="https://play.google.com/store/apps/details?id=pouch.ph"><img src="googleplay.png"></a>
<a href="https://apps.apple.com/us/app/pouch-borderless-payments/id1584404678"><img src="appstore.png"></a>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
const a = document.querySelectorAll('a'), ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('android') != -1) {
location.replace(a[0].href);
}
if (ua.indexOf('ipad') != -1 || ua.indexOf('iphone') != -1) {
location.replace(a[1].href);
}
});
</script>
</body>
</html>