Fix Mobile Views

This commit is contained in:
Pengu 2025-04-19 18:20:33 -05:00
parent 1d79fc8ca5
commit f3192f5983
8 changed files with 130 additions and 2 deletions

View File

@ -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://lethunderstore.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>

View File

@ -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>
@ -1071,6 +1074,19 @@
document.getElementById('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())
.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>

View File

@ -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>
@ -229,6 +232,19 @@
document.getElementById('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')
.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>

View File

@ -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>
@ -138,6 +141,19 @@
document.getElementById('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())
.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>

View File

@ -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>

View File

@ -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>
@ -296,6 +299,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>

View File

@ -31,12 +31,15 @@
</div>
</nav>
<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>
<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>
@ -132,6 +135,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>
<script>
// Fetch the rating score from the provided API URL
fetch('https://rrthunderstore.lethal-extended.com/api/downloads')

View File

@ -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>
@ -105,7 +108,7 @@
<center>
<img class="main2_feature_img" alt="Feature Image" src="media/projects/REPO-Reloaded.png">
<p></p>
<a class="main2_feature_headline" href="https://lethal-extended.com/Repo-Reloaded/index.html">REPO-Reloaded</a>
<a class="main2_feature_headline" href="https://lethal-extended.com/repo-reloaded/index.html">REPO-Reloaded</a>
<p></p>
<a href="https://lethal-extended.com/Repo-Reloaded/index.html"><img alt="website" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/compact/documentation/website_vector.svg"></a>
<a href="https://thunderstore.io/c/repo/p/PenguCC/REPO_Reloaded/"><img alt="thunderstore" src="https://cdn.galactiq.net/lethalextended/website/icons/thunderstore-compact_vector.svg"></a>
@ -138,6 +141,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>