| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <title>正在进入游戏...</title>
- <style>
- body {
- margin: 0;
- padding: 0;
- background-color: #000;
- }
- #weixin-tip {
- position: fixed;
- left: 0;
- top: 0;
- background: rgba(0, 0, 0, 0.8);
- width: 100%;
- height: 100%;
- z-index: 2000;
- display: none;
- }
- #weixin-tip p {
- text-align: center;
- margin-top: 10%;
- padding: 0 5%;
- }
- .wechat-img {
- max-width: 100%;
- height: auto;
- }
- .loading-text {
- color: #fff;
- text-align: center;
- margin-top: 50%;
- font-family: sans-serif;
- }
- </style>
- </head>
- <body>
- <div id="weixin-tip">
- <p><img src="./assets/live_weixin.png" alt="微信打开" class="wechat-img"/></p>
- </div>
- <div class="loading-text" id="status">正在检测环境...</div>
- <script>
- const DOWNLOAD_LINKS = {
- ios: 'https://apps.apple.com/cn/app/id6746466555',
- android: 'https://apps.apple.com/cn/app/id6746466555',
- default: 'https://apps.apple.com/cn/app/id6746466555'
- };
- function is_weixin() {
- var ua = navigator.userAgent.toLowerCase();
- return ua.indexOf('micromessenger') !== -1;
- }
- function getOS() {
- const ua = navigator.userAgent;
- if (/iPad|iPhone|iPod/.test(ua)) return 'ios';
- if (/Android/.test(ua)) return 'android';
- return 'pc';
- }
- function handleDownload() {
- const os = getOS();
- const downloadUrl = DOWNLOAD_LINKS[os] || DOWNLOAD_LINKS.default;
- if (is_weixin()) {
- document.getElementById('weixin-tip').style.display = 'block';
- document.getElementById('status').style.display = 'none';
- } else {
- document.getElementById('status').innerText = '正在跳转下载...';
- window.location.href = downloadUrl;
- }
- }
- // Handle click to close (optional but good for UX)
- document.getElementById('weixin-tip').addEventListener('click', function() {
- // No easy way to Force open in browser via JS alone beyond the tip
- });
- // Run detection on load
- window.onload = handleDownload;
- </script>
- </body>
- </html>
|