-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nadir Technologies
committed
Nov 29, 2023
1 parent
d896b1d
commit 68eed01
Showing
4 changed files
with
140 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Image Viewer</title> | ||
|
||
<link rel="stylesheet" href="https://nadir-software.github.io/nadircss/nadir.css"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" /> | ||
</head> | ||
<body style="background-size: cover; background-repeat: no-repeat;"> | ||
<div class="navbar-column"> | ||
<div id="navbar" class="navbar"> | ||
<h1 id="navbar-text">Image Viewer</h1> | ||
</div> | ||
|
||
<button onclick="location.href = '.'"> | ||
<span class="material-symbols-rounded">arrow_back</span> | ||
Back | ||
</button> | ||
</div> | ||
|
||
<div class="card column"> | ||
<div class="text-center"> | ||
<h1 id="version">Loading...</h1> | ||
<p id="whats-new"></p> | ||
</div> | ||
|
||
<div class="row"> | ||
<button id="about1" onclick="window.open('https://nadir-software.github.io', '_blank')" class="about"> | ||
<span class="material-symbols-rounded">home</span> | ||
More projects | ||
</button> | ||
|
||
<button id="about2" onclick="window.open('https://www.github.com/Nadir-Software/images', '_blank')" class="about"> | ||
<span class="material-symbols-rounded">code</span> | ||
View source | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<script src="about.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const username = 'Nadir-Software'; | ||
const repo = 'images'; | ||
|
||
fetch(`https://api.github.com/repos/${username}/${repo}/commits?per_page=1`) | ||
.then(response => { | ||
const totalCount = response.headers.get('Link').match(/page=(\d+)>; rel="last"/)[1]; | ||
return response.json().then(data => { | ||
const latestCommitMessage = data[0].commit.message; | ||
console.log(`Total commit count: ${totalCount}`); | ||
console.log(`Latest commit message: ${latestCommitMessage}`); | ||
|
||
document.getElementById("version").innerText = `Version ${totalCount} Release Notes`; | ||
document.getElementById("whats-new").innerText = latestCommitMessage; | ||
}); | ||
}) | ||
.catch(error => console.error('Error fetching data:', error)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters