mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 19:58:52 +00:00
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
![]() |
// ┬ ┬┌─┐┌┬┐┌─┐
|
||
|
// │ │└─┐ │ └─┐
|
||
|
// ┴─┘┴└─┘ ┴ └─┘
|
||
|
|
||
|
// Print the first List
|
||
|
const printFirstList = () => {
|
||
|
let icon = `<i class="list__head" icon-name="${CONFIG.firstListIcon}"></i>`;
|
||
|
const position = 'beforeend';
|
||
|
list_1.insertAdjacentHTML(position, icon);
|
||
|
for (const link of CONFIG.lists.firstList) {
|
||
|
// List item
|
||
|
let item = `
|
||
|
<a
|
||
|
target="${CONFIG.openInNewTab ? '_blank' : ''}"
|
||
|
href="${link.link}"
|
||
|
class="list__link"
|
||
|
>${link.name}</a
|
||
|
>
|
||
|
`;
|
||
|
const position = 'beforeend';
|
||
|
list_1.insertAdjacentHTML(position, item);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
// Print the second List
|
||
|
const printSecondList = () => {
|
||
|
let icon = `<i class="list__head" icon-name="${CONFIG.secondListIcon}"></i>`;
|
||
|
const position = 'beforeend';
|
||
|
list_2.insertAdjacentHTML(position, icon);
|
||
|
for (const link of CONFIG.lists.secondList) {
|
||
|
// List item
|
||
|
let item = `
|
||
|
<a
|
||
|
target="${CONFIG.openInNewTab ? '_blank' : ''}"
|
||
|
href="${link.link}"
|
||
|
class="list__link"
|
||
|
>${link.name}</a
|
||
|
>
|
||
|
`;
|
||
|
const position = 'beforeend';
|
||
|
list_2.insertAdjacentHTML(position, item);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
printFirstList();
|
||
|
printSecondList();
|