DOMContentLoaded
This commit is contained in:
parent
71f140179f
commit
a2390d6f10
@ -64,10 +64,12 @@
|
||||
<i class="fas fa-sign-in-alt mr-2"></i>Войти
|
||||
</button>
|
||||
|
||||
<div class="mt-4 text-sm text-gray-600 text-center">
|
||||
<div class="mb-2"><strong>Тестовые аккаунты:</strong></div>
|
||||
<div>Админ: admin / admin123</div>
|
||||
<div>Кассир: cashier1 / password123</div>
|
||||
<div id="demoAccountsHint" hidden>
|
||||
<div class="mt-4 text-sm text-gray-600 text-center">
|
||||
<div class="mb-2"><strong>Тестовые аккаунты:</strong></div>
|
||||
<div>Админ: admin / admin123</div>
|
||||
<div>Кассир: cashier1 / password123</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user