forked from lxm_tools/flutter-picgo
chore:add location.html
This commit is contained in:
23
docs/static/location.html
vendored
Normal file
23
docs/static/location.html
vendored
Normal 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>
|
||||
Reference in New Issue
Block a user