You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
// https://dcode.domenade.com/tutorials/build-a-kanban-board-with-javascript-no-frameworks
|
|
// https://github.com/dcode-youtube/kanban-board/blob/main/index.html
|
|
|
|
import Kanban from "./view/Kanban.js";
|
|
import KanbanAPI from "./api/KanbanAPI.js";
|
|
|
|
async function startKanban() {
|
|
const root = document.querySelector(".kanban");
|
|
|
|
try {
|
|
await KanbanAPI.load();
|
|
|
|
new Kanban(root);
|
|
} catch (error) {
|
|
console.error(error);
|
|
|
|
root.textContent =
|
|
`Unable to load the Kanban board: ${error.message}`;
|
|
}
|
|
}
|
|
|
|
startKanban();
|
|
|