From 6862907c8d42740c95e041a4f4654d1713a0032d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D1=80=D0=BE=D1=88=D0=B8=D0=BD=20=D0=90=D0=BD=D1=82?= =?UTF-8?q?=D0=BE=D0=BD=20=D0=92=D0=B0=D0=BB=D0=B5=D1=80=D1=8C=D0=B5=D0=B2?= =?UTF-8?q?=D0=B8=D1=87?= Date: Sun, 12 Jul 2026 22:07:08 +0300 Subject: [PATCH] use ponomar font in mistake list --- app.js | 6 +++++- index.html | 6 +++--- styles.css | 4 ++++ sw.js | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index 9e2058e..b70f61c 100644 --- a/app.js +++ b/app.js @@ -435,6 +435,7 @@ function handleChoice(idx, val, choices) { feedback.textContent = t('incorrect', {n: game.correctAnswer}); feedback.className = 'answer-feedback incorrect'; game.mistakes.push({ + key: game.system, system: SYSTEMS[game.system].toDisplay(game.correctAnswer), decimal: game.correctAnswer, systemName: systemName(game.system), @@ -489,6 +490,7 @@ function renderNumpad() { feedback.textContent = t('incorrect', {n: game.correctAnswer}); feedback.className = 'answer-feedback incorrect'; game.mistakes.push({ + key: game.system, system: SYSTEMS[game.system].toDisplay(game.correctAnswer), decimal: game.correctAnswer, systemName: systemName(game.system), @@ -554,6 +556,7 @@ function startTimer() { feedback.textContent = t('timesUp', {n: game.correctAnswer}); feedback.className = 'answer-feedback incorrect'; game.mistakes.push({ + key: game.system, system: SYSTEMS[game.system].toDisplay(game.correctAnswer), decimal: game.correctAnswer, systemName: systemName(game.system), @@ -605,8 +608,9 @@ function endGame() { game.mistakes.forEach(m => { const item = document.createElement('div'); item.className = 'result-item'; + const sysClass = m.key === 'slavonic' ? ' slavonic-font' : ''; item.innerHTML = ` -
${m.system}
+
${m.system}
\u2192
${m.decimal}
`; diff --git a/index.html b/index.html index 7af8762..9f8378e 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - +
@@ -158,10 +158,10 @@
- + diff --git a/styles.css b/styles.css index 360312f..c387d98 100644 --- a/styles.css +++ b/styles.css @@ -391,6 +391,10 @@ body { font-size: 3.2rem; } +.ticker .slavonic-font { + font-size: 1.5rem; +} + .answer-feedback { min-height: 40px; font-size: 1.1rem; diff --git a/sw.js b/sw.js index 5ede9ff..f60988f 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'numnum-v11'; +const CACHE_NAME = 'numnum-v13'; const ASSETS = [ '/', '/index.html',