Responsive UI, reworked project loading script and WIP automatic featured section.
This commit is contained in:
parent
0a7017e38d
commit
ed347bcfca
6 changed files with 88 additions and 41 deletions
11
index.js
Normal file
11
index.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const featuredHelper = document.querySelector("#featuredHelper")
|
||||
|
||||
async function loadFeatured() {
|
||||
const response = await fetch(`bananas.json`);
|
||||
if (!response.ok) {
|
||||
featuredHelper.innerHTML = `
|
||||
<p>Oops! Failed to fetch featured projects...</p>
|
||||
`
|
||||
throw new Error("Failed to fetch featured projects JSON");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue