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:
@@ -21,6 +21,7 @@
|
||||
<div class="content">
|
||||
<img src="media/Downloads-Text (Small).png">
|
||||
<h1 id="downloads-text">Loading downloads...</h1> <!-- Changed to have an id for JavaScript -->
|
||||
<h1 id="beta-downloads-text">Loading beta downloads...</h1> <!-- Changed to have an id for JavaScript -->
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="links">
|
||||
@@ -50,6 +51,19 @@
|
||||
document.getElementById('downloads-text').innerText = 'Failed to load download count';
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// Fetch the download count from the provided API URL
|
||||
fetch('https://lebetathunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const downloadCount = data.downloads;
|
||||
document.getElementById('beta-downloads-text').innerText = `${downloadCount.toLocaleString()} Beta Downloads`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching download count:', error);
|
||||
document.getElementById('beta-downloads-text').innerText = 'Failed to load download count';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user