// ┬ ┬┌─┐┌┬┐┌─┐
// │ │└─┐ │ └─┐
// ┴─┘┴└─┘ ┴ └─┘
// Print the first List
const printFirstList = () => {
let icon = ``;
const position = 'beforeend';
list_1.insertAdjacentHTML(position, icon);
for (const link of CONFIG.lists.firstList) {
// List item
let item = `
${link.name}
`;
const position = 'beforeend';
list_1.insertAdjacentHTML(position, item);
}
};
// Print the second List
const printSecondList = () => {
let icon = ``;
const position = 'beforeend';
list_2.insertAdjacentHTML(position, icon);
for (const link of CONFIG.lists.secondList) {
// List item
let item = `
${link.name}
`;
const position = 'beforeend';
list_2.insertAdjacentHTML(position, item);
}
};
printFirstList();
printSecondList();