Upload new website

This commit is contained in:
Agampreet Singh
2023-06-07 18:19:01 +05:30
parent ac4d21cdf9
commit b0746d48ec
49 changed files with 351 additions and 17489 deletions

14
docs/index.js Normal file
View File

@@ -0,0 +1,14 @@
window.addEventListener("DOMContentLoaded", () => {
const releaseTagElement = document.getElementById("release-tag");
fetch("https://api.github.com/repos/agam778/MS-365-Electron/releases/latest")
.then((response) => response.json())
.then((data) => {
const latestTag = data.tag_name;
releaseTagElement.textContent = `${latestTag}`;
})
.catch((error) => {
console.error("Error:", error);
releaseTagElement.textContent = "Failed to fetch release tag";
});
});