Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
12 lines
813 B
JavaScript
12 lines
813 B
JavaScript
// The first start (spec §10.3): not connected and an empty library. The demo always has a library, so the screen is
|
|
// drawn here into the page body, as the library draws it when it finds nothing, with the header count of an empty one.
|
|
const { welcome } = await import('/js/pages/welcome.js');
|
|
const { t } = await import('/js/core/text.js');
|
|
const body = document.querySelector('.corpo');
|
|
body.replaceChildren(welcome());
|
|
document.querySelector('.strumenti')?.setAttribute('hidden', '');
|
|
const count = document.querySelector('.testa .quanti');
|
|
if (count) count.textContent = t('libreria.quanti', { elementi: t('comune.elementi', { n: 0 }), account: t('comune.account', { n: 0 }) });
|
|
await new Promise((r) => setTimeout(r, 300));
|
|
return [document.querySelectorAll('.benvenuto .btn').length, count?.textContent];
|