workstations and light theme
This commit is contained in:
+7
-2
@@ -1,5 +1,6 @@
|
||||
let stackList = [];
|
||||
let projectsList = [];
|
||||
let workstationsList = [];
|
||||
let linksList = [];
|
||||
|
||||
const fetchJson = async (path) => {
|
||||
@@ -13,7 +14,7 @@ const fetchJson = async (path) => {
|
||||
};
|
||||
|
||||
const loadIcon = async (key) => {
|
||||
const response = await fetch(`./icons/${key}.svg`);
|
||||
const response = await fetch(`./img/icons/${key}.svg`);
|
||||
|
||||
if (!response.ok) {
|
||||
return key;
|
||||
@@ -25,5 +26,9 @@ const loadIcon = async (key) => {
|
||||
const formatIndex = (index) => String(index + 1).padStart(2, "0");
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
loadStack().then(loadProjects).then(loadLinks).catch(console.error);
|
||||
loadStack()
|
||||
.then(loadProjects)
|
||||
.then(loadWorkstations)
|
||||
.then(loadLinks)
|
||||
.catch(console.error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user