From a2390d6f10de42b760d757992ec29f4e68aaadaf Mon Sep 17 00:00:00 2001 From: NW Date: Wed, 6 Aug 2025 16:23:13 +0000 Subject: [PATCH] DOMContentLoaded --- frontend/index.html | 10 ++++++---- frontend/script.js | 8 ++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index dca6b49..dac0922 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -64,10 +64,12 @@ Войти -
-
Тестовые аккаунты:
-
Админ: admin / admin123
-
Кассир: cashier1 / password123
+ diff --git a/frontend/script.js b/frontend/script.js index f69de3f..3585544 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -1,4 +1,12 @@ //SHARED +// Показать/скрыть демо-подсказку +document.addEventListener('DOMContentLoaded', () => { + const demoHint = document.getElementById('demoAccountsHint'); + if (demoHint && window.GENERATE_DEMO_DATA === 'true') { + demoHint.removeAttribute('hidden'); + } +}); + //helper to destroyChart on change function destroyChart(instance) {