- Disabled the default menu button in the Telegram bot, allowing users to access the app via a direct link. - Updated the initData validation process to ensure URL-decoded values are used in the data-check string. - Enhanced error handling in the web application to provide more informative access denial messages. - Removed unnecessary debug information from the access denied section in the web app. - Cleaned up the web application code by removing unused functions and improving CSS styles for hidden elements.
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||
<title>Календарь дежурств</title>
|
||
<link rel="stylesheet" href="style.css">
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<header class="header">
|
||
<button type="button" class="nav" id="prevMonth" aria-label="Предыдущий месяц">‹</button>
|
||
<h1 class="title" id="monthTitle"></h1>
|
||
<button type="button" class="nav" id="nextMonth" aria-label="Следующий месяц">›</button>
|
||
</header>
|
||
<div class="weekdays">
|
||
<span>Пн</span><span>Вт</span><span>Ср</span><span>Чт</span><span>Пт</span><span>Сб</span><span>Вс</span>
|
||
</div>
|
||
<div class="calendar" id="calendar"></div>
|
||
<div class="duty-list" id="dutyList"></div>
|
||
<div class="loading" id="loading">Загрузка…</div>
|
||
<div class="error" id="error" hidden></div>
|
||
<div class="access-denied" id="accessDenied" hidden>
|
||
<p>Доступ запрещён.</p>
|
||
</div>
|
||
</div>
|
||
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html>
|