Fix Mobile Views
This commit is contained in:
@@ -33,10 +33,13 @@
|
||||
<div class="mobile_navbar">
|
||||
<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" 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>
|
||||
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="./credits.html">Credits</a>
|
||||
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="./projects.html">Projects</a>
|
||||
<a class="mobile_navbar_link" onclick="mobile_navbar_link_hider()" href="./downloads.html">Downloads</a>
|
||||
</div>
|
||||
<div class="icon" onclick="mobile_navbar_link_hider()">
|
||||
<i class="fa fa-bars"></i>
|
||||
@@ -156,6 +159,19 @@
|
||||
document.getElementById('version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
<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('mobile-version-text').innerText = `Current Version: ${latestVersion.toLocaleString()}`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching latest version:', error);
|
||||
document.getElementById('mobile-version-text').innerText = 'Failed to load latest version';
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user