-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
72 lines (69 loc) · 6.89 KB
/
index.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html><html><head><meta charset="utf-8"/><title>zBingo</title><meta http-equiv="Strict-Transport-Security" content="max-age=31536000; includeSubDomains"/><meta http-equiv="X-Content-Type-Options" content="nosniff"/><meta http-equiv="X-XSS-Protection" content="1; mode=block"/><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/><link rel="shortcut icon " type="images/x-icon" href="https://static.zypher.game/img/layout/zBingo.png"><link rel="dns-prefetch" href="//static.zypher.game/"><meta name="description" content="Zypher Games, Portal for Revolutionary Fully-on-Chain Games using ZKP & AI"/><meta name="theme-color" content="#10253e"/><meta property="og:title" content="zBingo"/><meta property="og:description" content="Zypher Games, Portal for Revolutionary Fully-on-Chain Games using ZKP & AI"/><meta property="og:image" content="https://static.zypher.game/img/medium/bingo.jpg"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:image:alt" content="zBingo"/><meta property="og:type" content="website"/><meta property="og:url" content="https://app.zypher.game/bingo/"/><meta name="twitter:title" content="zBingo"/><meta name="twitter:description" content="Zypher Games, Portal for Revolutionary Fully-on-Chain Games using ZKP & AI"/><meta name="twitter:image" content="https://static.zypher.game/img/medium/bingo.jpg"/><meta name="twitter:site" content="Zypher_Games"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:creator" content="@Zypher_Games"/><meta name="twitter:image:alt" content="zBingo"/><link rel="stylesheet" href="https://static-dev.zypher.game/css/bingo/init-v2.css"/><link rel="preload" href="https://static-dev.zypher.game/fonts/Lemon-Regular.ttf" as="font" type="font/tff"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-L0QHB6VSZV"></script><script src="https://telegram.org/js/telegram-web-app.js"></script><script src="https://static-dev.zypher.game/js/bingo/IP.js"></script><script src="https://fastly.jsdelivr.net/npm/eruda"></script><script>eruda.init()</script><script>window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-L0QHB6VSZV');
const tgKey = "TelegramWebviewProxy"
function isRecord(value) {
return typeof value === 'object' && value !== null && !Array.isArray(value)
}
function isTelegram() {
return (
tgKey in window &&
isRecord(window[tgKey]) &&
'postEvent' in window[tgKey] &&
typeof window[tgKey].postEvent === 'function'
)
}
// tg
window.IS_Localhost = window.location.host.startsWith("192.168")
// window.IS_TELEGRAM = IS_Localhost ? true:isTelegram()
window.IS_TELEGRAM = isTelegram()
if (location.href.match(/tgtest=1/)) {
window.IS_TELEGRAM = true
}</script><script defer="defer" src="https://static-dev.zypher.game/lib/react/react-v18.0.0.production.min.js"></script><script defer="defer" src="https://static-dev.zypher.game/lib/react-dom/react-dom-v18.0.0.production.min.js"></script><script defer="defer" src="https://static-dev.zypher.game/lib/crypto/crypto-browserify/3.12.0/crypto-browserify.js"></script><script defer="defer" src="https://static.zypher.game/lib/ethers/5.7.2/ethers.umd.min.js"></script><script defer="defer" src="/bingo/runtime~main.a79abfb6.bundle.js"></script><script defer="defer" src="/bingo/5016.f8622d77.bundle.js"></script><script defer="defer" src="/bingo/main.05a2befd.bundle.js"></script></head><body class="tg_body"><div id="rootLoading"><div class="loadingBg"><svg xmlns="https://www.w3.org/2000/svg" width="58" height="58" viewBox="0 0 58 58"><g fill="none" fill-rule="evenodd"><g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5"><circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="1;0;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;1;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;1;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;1;0;0;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;1;0;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;1;0;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;1;0" calcMode="linear" repeatCount="indefinite"/></circle><circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;0;1" calcMode="linear" repeatCount="indefinite"/></circle></g></g></svg></div></div><div id="wrap"><div id="root"></div></div><script>function get() {
return new Promise(resolve => {
// 模拟异步操作
setTimeout(() => {
resolve();
}, 600);
});
}
window.mcrypto;
(async function () {
// 进行异步操作
while (!window.mcrypto) {
await get();
try {
window.mcrypto = require('crypto');
} catch (E) {
}
}
})();
document.addEventListener('DOMContentLoaded', () => {
if (window.IS_TELEGRAM) {
try {
window.Telegram.WebApp.setHeaderColor('#10253e')
window.Telegram.WebApp.setBackgroundColor('#10253e')
if (window.Telegram.WebApp.disableVerticalSwipes) {
window.Telegram.WebApp.disableVerticalSwipes()
}
if (!window.Telegram.WebApp.isExpanded) {
window.Telegram.WebApp.expand()
}
setTimeout(function () {
if (!window.Telegram.WebApp.isExpanded) {
window.Telegram.WebApp.expand()
}
}, 1000)
try {
document.body.classList.add('mobile-body')
document.getElementById('wrap').classList.add('mobile-wrap')
document.getElementById('root').classList.add('mobile-content')
} catch (err) {
// alert(String(err))
}
} catch (err) {
// alert(String(err))
}
}
});</script></body></html>