Додані повідомлення та перепрацьована структура застосунку та api

This commit is contained in:
2026-03-15 00:25:10 +02:00
parent 85483b85bb
commit 4bc9c11512
101 changed files with 5763 additions and 2546 deletions

View File

@@ -1,3 +1,3 @@
<div class="page-schedule-constructor">
</div>
</div>

View File

@@ -3,6 +3,12 @@ const Schedule_constructor = {
let html = await fetch('/lib/pages/schedule/constructor/index.html').then((response) => response.text());
app.innerHTML = html;
const newItem = document.createElement('nav-item');
const uniqueId = `nav-dynamic-${Date.now()}`;
newItem.setAttribute('id', uniqueId);
newItem.setAttribute('title', 'Динамічний Пункт');
newItem.setAttribute('icon', '/img/0.svg');
newItem.setAttribute('click', `alert('${uniqueId} clicked!')`);
document.querySelector('navigation-container').appendChild(newItem);
}
}