🎨 Improved file titles
This commit is contained in:
parent
93bfc062f1
commit
591fa0176a
@ -2,7 +2,6 @@
|
||||
// │ ├─┤├┬┘ ││└─┐
|
||||
// └─┘┴ ┴┴└──┴┘└─┘
|
||||
|
||||
|
||||
const printCards = () => {
|
||||
for (const card of CONFIG.cards) {
|
||||
console.log(card.id);
|
||||
@ -10,18 +9,14 @@ const printCards = () => {
|
||||
let item = `
|
||||
<a
|
||||
href="${card.link}"
|
||||
target="${CONFIG.openInNewTab ? "_blank" : ""}"
|
||||
class="buttonLink__link card buttonLink__link-${
|
||||
card.id
|
||||
}"
|
||||
target="${CONFIG.openInNewTab ? '_blank' : ''}"
|
||||
class="buttonLink__link card buttonLink__link-${card.id}"
|
||||
>
|
||||
<i class="buttonLink__icon" data-feather="${
|
||||
card.icon
|
||||
}"></i>
|
||||
<i class="buttonLink__icon" data-feather="${card.icon}"></i>
|
||||
</a>
|
||||
`;
|
||||
|
||||
const position = "beforeend";
|
||||
const position = 'beforeend';
|
||||
|
||||
buttonsContainer.insertAdjacentHTML(position, item);
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
// ┌─┐┬─┐┌─┐┌─┐┌┬┐┬┌┐┌┌─┐┌─┐
|
||||
// │ ┬├┬┘├┤ ├┤ │ │││││ ┬└─┐
|
||||
// └─┘┴└─└─┘└─┘ ┴ ┴┘└┘└─┘└─┘
|
||||
|
||||
// Get the hour
|
||||
const today = new Date();
|
||||
const hour = today.getHours();
|
||||
|
@ -1,3 +1,7 @@
|
||||
// ┌┬┐┬ ┬┌─┐┌┬┐┌─┐
|
||||
// │ ├─┤├┤ │││├┤
|
||||
// ┴ ┴ ┴└─┘┴ ┴└─┘
|
||||
|
||||
// Store the theme
|
||||
let darkTheme = localStorage.getItem('darkTheme');
|
||||
const themeToggle = document.querySelector('#themeButton');
|
||||
@ -35,6 +39,6 @@ themeToggle.addEventListener('click', () => {
|
||||
}
|
||||
});
|
||||
|
||||
if(CONFIG.imageBackground) {
|
||||
if (CONFIG.imageBackground) {
|
||||
document.body.classList.add('withImageBackground');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user