feat: Update css to work on mobile and update js to use direct API not proxied
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2024-12-30 19:32:29 +11:00
parent 4c4814006a
commit c3db03e67d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ body {
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
height: 100dvh;
transition: background-color 0.3s, color 0.3s;
background-color: #121212;
color: #e0e0e0;

View File

@ -42,7 +42,11 @@
};
async function fetchJoke() {
const response = await fetch('/api/joke');
const response = await fetch('https://icanhazdadjoke.com', {
headers: {
'Accept': 'application/json'
}
});
const data = await response.json();
document.getElementById('joke').innerText = data.joke;
}