| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" /> |
| 6 | <link href="/fontello.css" rel="stylesheet" /> |
| 7 | <script type="module" src="/src/index.ts"></script> |
| 8 | </head> |
| 9 | <body> |
| 10 | <style class="removeAtBoot">@media (prefers-color-scheme: dark) { html, #root { background-color: #000; color: #888; } }</style> |
| 11 | <div id="root">Wait for loading or <a href="?get=basic">use basic interface now</a></div> |
| 12 | <script> |
| 13 | function isModernBrowser() { // support BigInt |
| 14 | return getUAversion(/Chrome\/(\d+)/) >= 67 || |
| 15 | getUAversion(/Edg\/(\d+)/) >= 79 || |
| 16 | getUAversion(/Firefox\/(\d+)/) >= 68 || |
| 17 | getUAversion(/OPR\/(\d+)/) >= 54 || |
| 18 | getUAversion(/Version\/(\d+).+Safari/) >= 14 |
| 19 | } |
| 20 | function getUAversion(re) { |
| 21 | const res = re.exec(navigator.userAgent) |
| 22 | return res && res[1] || NaN |
| 23 | } |
| 24 | if (isModernBrowser()) |
| 25 | document.getElementById('root').innerHTML = 'Loading...' |
| 26 | </script> |
| 27 | </body> |
| 28 | </html> |