Skip to content

Commit

Permalink
🐼 Fixed minor bug in the landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Zingzy committed Jan 21, 2024
1 parent e69f3e7 commit a73be33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<table align="right">
<tr>
<td align="center"><img src="https://pandaa.vercel.app/raw_gif" style="width: 300px;"></td>
<td align="center"><img src="https://pandaa.vercel.app/raw_gif" style="width: 300px;" alt="Please Reload"></td>
<tr>
<tr>
<td align="center">⬆️ random gif using our api 😉</td>
Expand Down
3 changes: 3 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,14 @@
case 'gif':
outputArea.innerHTML += `<div class="spinner"></div>`;
commandInput.scrollIntoView();
commandInput.disabled = true;
fetch(`{{ base_url }}raw_${command}`)
.then(response => response.blob())
.then(blob => {
const url = URL.createObjectURL(blob);
displayImage(url);
commandInput.disabled = false;
commandInput.focus();
})
.catch(error => appendOutput(`<span class="red">Error: ${error.message}</span>`));
break;
Expand Down

0 comments on commit a73be33

Please sign in to comment.