gitea script footer
This commit is contained in:
@@ -63,8 +63,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
})
|
||||
.catch(error => console.error('Error loading footer:', error));
|
||||
|
||||
// --- 5. Fetch and Display Last Update from GitHub -----------------------
|
||||
fetch('https://api.github.com/repos/btcforplebs/BTCforPlebs.com/commits/main')
|
||||
// --- 5. Fetch and Display Last Update from Gitea -----------------------
|
||||
fetch('https://gitea.btcforplebs.com/api/v1/repos/btcforplebs/BTCforPlebs.com/commits/main')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const lastUpdate = new Date(data.commit.author.date);
|
||||
|
||||
Reference in New Issue
Block a user