nakama/frontend/index.html

49 lines
1.3 KiB
HTML
Raw Normal View History

2025-11-03 20:35:01 +00:00
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
2025-11-03 21:29:00 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
2025-11-03 20:35:01 +00:00
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
2025-11-04 21:51:05 +00:00
<title>NakamaHost</title>
2025-11-10 22:48:18 +00:00
<script>
(function () {
if (window.Telegram && window.Telegram.WebApp) {
return;
}
const script = document.createElement('script');
script.src = 'https://telegram.org/js/telegram-web-app.js';
script.onload = () => {
if (window.Telegram && window.Telegram.WebApp) {
window.Telegram.WebApp.ready?.();
}
};
document.head.appendChild(script);
})();
</script>
2025-11-03 21:29:00 +00:00
<style>
/* Предотвращение resize при открытии клавиатуры */
html, body {
position: fixed;
overflow: hidden;
width: 100%;
height: 100%;
}
#root {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
</style>
2025-11-03 20:35:01 +00:00
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>