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:
@@ -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>
|
||||
@@ -80,6 +82,7 @@
|
||||
</style>
|
||||
|
||||
<div class="main1_actcent" id="rating-text">Loading...</div>
|
||||
<div class="main1_actcent" id="beta-rating-text">Loading...</div>
|
||||
<div class="main1_actcent" id="player-count">Loading...</div>
|
||||
|
||||
<script>
|
||||
@@ -219,6 +222,19 @@
|
||||
document.getElementById('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('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 rating score from the provided API URL
|
||||
fetch('https://lethunderstore.lethal-extended.com/api/downloads')
|
||||
@@ -232,6 +248,19 @@
|
||||
document.getElementById('rating-text').innerText = 'Failed to load rating score';
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// Fetch the rating score from the provided API URL
|
||||
fetch('https://lebetathunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const ratingScore = data.rating_score;
|
||||
document.getElementById('beta-rating-text').innerText = `Beta Thunderstore Rating: ${ratingScore.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching rating score:', error);
|
||||
document.getElementById('beta-rating-text').innerText = 'Failed to load rating score';
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// Fetch the latest version from the provided API URL
|
||||
fetch('https://lethunderstore.lethal-extended.com/api/downloads')
|
||||
@@ -245,6 +274,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>
|
||||
|
||||
Reference in New Issue
Block a user