Push LE Site Changes

- Show's Beta Download Numbers
- Only latest manual imports available
- Display Beta Version
- Display Beta Rating
This commit is contained in:
2025-08-17 07:09:59 -05:00
parent 6786602456
commit 20fecd363a
7 changed files with 144 additions and 25 deletions

View File

@@ -25,6 +25,7 @@
<a href="./credits.html" class="desktop_navbar_link">Credits</a>
<a href="./projects.html" class="desktop_navbar_link">Projects</a>
<a class="desktop_navbar_link scroll" id="version-text">Current Version:</a>
<a class="desktop_navbar_link scroll" id="beta-version-text">Current Beta Version:</a>
<div class="desktop_navbar_link2_div">
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
</div>
@@ -34,6 +35,7 @@
<a href="#" class="mobile_navbar_logo_img_a"><img class="mobile_navbar_logo_img" src="media/logo.png" alt="logo"></a>
<div id="mobile_navbar_links">
<a class="mobile_navbar_link" id="mobile-version-text">Current Version: </a>
<a class="mobile_navbar_link" id="mobile-beta-version-text">Current Beta Version: </a>
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="https://forum.lethal-extended.com">Forum</a>
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="https://merch.lethal-extended.com">Merch</a>
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="./aboutus.html">About Us</a>
@@ -1080,6 +1082,19 @@
});
</script>
<script>
// Fetch the latest version from the provided API URL
fetch('https://lebetathunderstore.lethal-extended.com/api/downloads')
.then(response => response.json())
.then(data => {
const latestVersion = data.latest_version;
document.getElementById('beta-version-text').innerText = `Current Beta Version: ${latestVersion.toLocaleString()}`;
})
.catch(error => {
console.error('Error fetching latest version:', error);
document.getElementById('beta-version-text').innerText = 'Failed to load latest version';
});
</script>
<script>
// Fetch the latest version from the provided API URL
fetch('https://lethunderstore.lethal-extended.com/api/downloads')
.then(response => response.json())
@@ -1092,6 +1107,19 @@
document.getElementById('mobile-version-text').innerText = 'Failed to load latest version';
});
</script>
<script>
// Fetch the latest version from the provided API URL
fetch('https://lebetathunderstore.lethal-extended.com/api/downloads')
.then(response => response.json())
.then(data => {
const latestVersion = data.latest_version;
document.getElementById('mobile-beta-version-text').innerText = `Current Beta Version: ${latestVersion.toLocaleString()}`;
})
.catch(error => {
console.error('Error fetching latest version:', error);
document.getElementById('mobile-beta-version-text').innerText = 'Failed to load latest version';
});
</script>
</div>
</body>
</html>