add dropdown component

This commit is contained in:
2023-03-31 17:35:36 +08:00
parent b9447997fe
commit 41b1bbd7d6
20 changed files with 575 additions and 74 deletions

View File

@ -25,7 +25,7 @@ function navigate(page) {
});
}
document.querySelector('#directory').addEventListener('click', (ev) => {
document.querySelector('#directory').addEventListener('click', ev => {
const page = ev.target.getAttribute('data-page');
if (typeof page === 'string') {
location.hash = page;
@ -42,7 +42,7 @@ if (page.length > 1) {
/*
init(null, {
template: '/res.json',
callback: (result) => console.log(result)
callback: result => console.log(result)
}).then(() => {
// document.querySelector('#create-icon').appendChild(createIcon('fa-solid', 'user-edit'))
resolveIcon(document.querySelector('#create-icon'))