More comfortable simple components system

This commit is contained in:
koloml committed 2024-03-31 21:28:29 +04:00
1 parent d51beccd3b
commit c22023775a
5 files changed
+202 -24

No files matched your search

+6 -1
View File
@@ -1,5 +1,10 @@
import {createMaintenancePopup} from "$lib/components/MaintenancePopup.js";
import {createMaintenanceTools} from "$lib/components/MaintenanceTools.js";
document.querySelectorAll('.media-box').forEach(mediaBoxElement => {
mediaBoxElement.appendChild(createMaintenancePopup());
mediaBoxElement.appendChild(
createMaintenanceTools(
createMaintenancePopup()
)
);
});