Skip to content

Commit

Permalink
Bug fixes and UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadir Technologies committed Dec 1, 2023
1 parent 68eed01 commit 664b19c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 id="navbar-text">Image Viewer</h1>
</button>
</div>

<div class="card column">
<div id="about-card" class="card column" style="opacity: 0; pointer-events: none;">
<div class="text-center">
<h1 id="version">Loading...</h1>
<p id="whats-new"></p>
Expand Down
3 changes: 3 additions & 0 deletions about.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ fetch(`https://api.github.com/repos/${username}/${repo}/commits?per_page=1`)

document.getElementById("version").innerText = `Version ${totalCount} Release Notes`;
document.getElementById("whats-new").innerText = latestCommitMessage;

document.getElementById("about-card").style.opacity = "1";
document.getElementById("about-card").style.pointerEvents = "all";
});
})
.catch(error => console.error('Error fetching data:', error));
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if (urlParam) {
}

function resetImage() {
location.reload();
location.href = window.location.origin;
}

function imageOptions(action) {
Expand Down

0 comments on commit 664b19c

Please sign in to comment.