From b6ea1ae398cc4d3f03eb2257aa582417f9141fac Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Sat, 30 May 2026 09:29:25 +0300 Subject: [PATCH] =?UTF-8?q?fix(phys9):=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Font=20Awesome=20=E2=80=94=20=D0=B7=D0=B0=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE=20=D0=BD=D0=B0=20inline=20SVG=20?= =?UTF-8?q?(Phase=201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Согласно проектной политике CLAUDE.md «никаких эмодзи и Font Awesome, только inline SVG .ic», вычистил все 14 вхождений FA из Физики 9. frontend/textbooks/physics_9_ch{1..5}.html (10 правок): - Удалён (5 файлов) - Заменён на inline SVG звезды (5 мест) frontend/js/phys9_legacy.js (8 правок): - fa-lightbulb → SVG лампочки (2 места: подсказка задачи, кнопка «решение») - fa-check → SVG галочки (кнопка «Проверить») - fa-play → SVG треугольник (кнопка «Запустить») - fa-pause → SVG двух полосок (кнопка «Стоп») - fa-eye-slash → SVG перечёркнутого глаза («Скрыть решение») - fa-sun → SVG солнца (тема — день) - fa-moon → SVG луны (тема — ночь) Все SVG имеют атрибут class="ic", stroke=currentColor, viewBox 0 0 24 24 для тёмной темы и масштабируемости. Co-Authored-By: Claude Opus 4.7 --- frontend/js/phys9_legacy.js | 16 ++++++++-------- frontend/textbooks/physics_9_ch1.html | 3 +-- frontend/textbooks/physics_9_ch2.html | 3 +-- frontend/textbooks/physics_9_ch3.html | 3 +-- frontend/textbooks/physics_9_ch4.html | 3 +-- frontend/textbooks/physics_9_ch5.html | 3 +-- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/frontend/js/phys9_legacy.js b/frontend/js/phys9_legacy.js index 4fe44c0..a2f5479 100644 --- a/frontend/js/phys9_legacy.js +++ b/frontend/js/phys9_legacy.js @@ -2776,14 +2776,14 @@ function renderTask(sec) {
Задача ${s.idx+1} из ${pool.length}${paraBadge}
${q.q}
-
${q.hint}
+
${q.hint}
${q.unit} - ${done ? '' : ``} + ${done ? '' : ``}
`; } @@ -5382,10 +5382,10 @@ function togglePend36() { if (pend36Timer) { clearInterval(pend36Timer); pend36Timer = null; - if (btn) btn.innerHTML = ' Запустить'; + if (btn) btn.innerHTML = ' Запустить'; } else { pend36Timer = setInterval(pend36Frame, 30); - if (btn) btn.innerHTML = ' Стоп'; + if (btn) btn.innerHTML = ' Стоп'; } } @@ -5800,10 +5800,10 @@ function toggleSuperAns() { var btn = document.getElementById('superAnsBtn'); if (el.style.display === 'none') { el.style.display = 'block'; - btn.innerHTML = '  Скрыть решение'; + btn.innerHTML = '  Скрыть решение'; } else { el.style.display = 'none'; - btn.innerHTML = '  Показать решение'; + btn.innerHTML = '  Показать решение'; } } @@ -5814,12 +5814,12 @@ const themeBtn = document.getElementById('themeBtn'); if (themeBtn) { themeBtn.addEventListener('click', () => { const d = document.body.classList.toggle('dark'); - themeBtn.innerHTML = d ? '' : ''; + themeBtn.innerHTML = d ? '' : ''; localStorage.setItem('phys9_theme', d ? '1' : ''); }); if (localStorage.getItem('phys9_theme') === '1') { document.body.classList.add('dark'); - themeBtn.innerHTML = ''; + themeBtn.innerHTML = ''; } } diff --git a/frontend/textbooks/physics_9_ch1.html b/frontend/textbooks/physics_9_ch1.html index 07da14a..473384b 100644 --- a/frontend/textbooks/physics_9_ch1.html +++ b/frontend/textbooks/physics_9_ch1.html @@ -9,7 +9,6 @@ - @@ -2092,7 +2091,7 @@ function build_final1(){ -
Интегрированные задачи
+
Интегрированные задачи
Задача 1
diff --git a/frontend/textbooks/physics_9_ch2.html b/frontend/textbooks/physics_9_ch2.html index 0f74a75..bc17138 100644 --- a/frontend/textbooks/physics_9_ch2.html +++ b/frontend/textbooks/physics_9_ch2.html @@ -9,7 +9,6 @@ - @@ -1947,7 +1946,7 @@ function build_final2(){
-
Интегрированные задачи
+
Интегрированные задачи
Задача 1
diff --git a/frontend/textbooks/physics_9_ch3.html b/frontend/textbooks/physics_9_ch3.html index 85735aa..730f0aa 100644 --- a/frontend/textbooks/physics_9_ch3.html +++ b/frontend/textbooks/physics_9_ch3.html @@ -9,7 +9,6 @@ - @@ -1533,7 +1532,7 @@ function build_final3(){
-
Интегрированные задачи
+
Интегрированные задачи
Задача 1
diff --git a/frontend/textbooks/physics_9_ch4.html b/frontend/textbooks/physics_9_ch4.html index a334c58..93891d5 100644 --- a/frontend/textbooks/physics_9_ch4.html +++ b/frontend/textbooks/physics_9_ch4.html @@ -9,7 +9,6 @@ - @@ -2303,7 +2302,7 @@ function build_final4(){
-
Интегрированные задачи
+
Интегрированные задачи
Задача 1
diff --git a/frontend/textbooks/physics_9_ch5.html b/frontend/textbooks/physics_9_ch5.html index 1a29fe3..b8b9459 100644 --- a/frontend/textbooks/physics_9_ch5.html +++ b/frontend/textbooks/physics_9_ch5.html @@ -9,7 +9,6 @@ - @@ -1323,7 +1322,7 @@ function build_final5(){
-
Контрольные вопросы по практикуму
+
Контрольные вопросы по практикуму
Вопрос 1