feat: страница «Оверлей» (KeyOverlay): описание, скриншоты, загрузки, прошивка, быстрый старт

This commit is contained in:
darko
2026-10-20 09:56:04 +03:00
parent fcafe1ae15
commit b6b83cfaf9
10 changed files with 162 additions and 2 deletions
+3 -2
View File
@@ -628,7 +628,7 @@ function toast(msg) {
clearTimeout(tToast); tToast = setTimeout(() => t.classList.remove('on'), 2600);
}
const NAV = [['lessons', 'Уроки'], ['practice', 'Практика'], ['keyboard', 'Клавиатура'], ['stats', 'Статистика'], ['settings', 'Настройки']];
const NAV = [['lessons', 'Уроки'], ['practice', 'Практика'], ['keyboard', 'Клавиатура'], ['overlay', 'Оверлей'], ['stats', 'Статистика'], ['settings', 'Настройки']];
function renderNav(active) {
const nav = $('#nav'); nav.innerHTML = '';
NAV.forEach(([id, label]) => nav.append(h('button', { class: id === active ? 'on' : '', onclick: () => go(id) }, label)));
@@ -648,7 +648,8 @@ function show(v) {
function go(v) {
show(v);
({ lessons: renderLessons, practice: renderPractice, keyboard: renderKeyboardPage, stats: renderStats, settings: renderSettings,
account: () => window.Auth.render() })[v]();
account: () => window.Auth.render(),
overlay: () => {} })[v](); // страница оверлея статична: её разметка лежит в index.html
}
const seg = (opts, value, onchange) =>