feat: страница «Оверлей» (KeyOverlay): описание, скриншоты, загрузки, прошивка, быстрый старт
This commit is contained in:
+3
-2
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user