Updated LE & RR Sites
The following stats are now pulled through the NodeJS Backend: - CurrentVersion - ThunderstoreRating
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<a href="./aboutus.html" class="desktop_navbar_link">About Us</a>
|
||||
<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">Current Version: 0.0.9</a>
|
||||
<a class="desktop_navbar_link scroll" id="version-text">Current Version: </a>
|
||||
<div class="desktop_navbar_link2_div">
|
||||
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
|
||||
</div>
|
||||
@@ -143,6 +143,19 @@
|
||||
<a class="main2_feature_text" href=""></a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Fetch the latest version from the provided API URL
|
||||
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const latestVersion = data.latest_version;
|
||||
document.getElementById('version-text').innerText = `Current Version: ${latestVersion.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching latest version:', error);
|
||||
document.getElementById('version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<a href="./aboutus.html" class="desktop_navbar_link">About Us</a>
|
||||
<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">Current Version: 0.0.9</a>
|
||||
<a class="desktop_navbar_link scroll" id="version-text">Current Version: </a>
|
||||
<div class="desktop_navbar_link2_div">
|
||||
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
|
||||
</div>
|
||||
@@ -283,6 +283,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Fetch the latest version from the provided API URL
|
||||
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const latestVersion = data.latest_version;
|
||||
document.getElementById('version-text').innerText = `Current Version: ${latestVersion.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching latest version:', error);
|
||||
document.getElementById('version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<a href="./aboutus.html" class="desktop_navbar_link">About Us</a>
|
||||
<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">Current Version: 0.0.9</a>
|
||||
<a class="desktop_navbar_link scroll" id="version-text">Current Version: </a>
|
||||
<div class="desktop_navbar_link2_div">
|
||||
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
|
||||
</div>
|
||||
@@ -75,6 +75,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="main1_actcent" id="rating-text">Loading...</div>
|
||||
<div class="main1_actcent" id="player-count">Loading...</div>
|
||||
|
||||
<script>
|
||||
@@ -118,6 +119,32 @@
|
||||
<a class="main1_ipcopier_text1" href="applications.html">Team Applications</a>
|
||||
</button>
|
||||
</div>
|
||||
<script>
|
||||
// Fetch the latest version from the provided API URL
|
||||
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const latestVersion = data.latest_version;
|
||||
document.getElementById('version-text').innerText = `Current Version: ${latestVersion.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching latest version:', error);
|
||||
document.getElementById('version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// Fetch the rating score from the provided API URL
|
||||
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const ratingScore = data.rating_score;
|
||||
document.getElementById('rating-text').innerText = `Thunderstore Rating: ${ratingScore.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching rating score:', error);
|
||||
document.getElementById('rating-text').innerText = 'Failed to load rating score';
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<a href="./aboutus.html" class="desktop_navbar_link">About Us</a>
|
||||
<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">Current Version: 0.0.9</a>
|
||||
<a class="desktop_navbar_link scroll" id="version-text">Current Version: </a>
|
||||
<div class="desktop_navbar_link2_div">
|
||||
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
|
||||
</div>
|
||||
@@ -125,6 +125,19 @@
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Fetch the latest version from the provided API URL
|
||||
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const latestVersion = data.latest_version;
|
||||
document.getElementById('version-text').innerText = `Current Version: ${latestVersion.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching latest version:', error);
|
||||
document.getElementById('version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user