chore:add location.html

This commit is contained in:
hackycy
2020-07-22 12:59:25 +08:00
parent a7df525d54
commit 4c6df6ec22

23
docs/static/location.html vendored Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flutter-Picgo Release</title>
<script>
// var u = navigator.userAgent;
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //判断是否是 android终端
// var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //判断是否是 iOS终端
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
window.location.href = 'https://apps.apple.com/cn/app/flutter-picgo/id1519714305'
} else if (/(Android)/i.test(navigator.userAgent)) {
window.location.href = 'https://www.pgyer.com/flutter-picgo'
}
</script>
</head>
<body>
</body>
</html>