210 lines
9.8 KiB
HTML
210 lines
9.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Lethal Extended</title>
|
|
<link rel="icon" type="image/png" href="media/logo.png">
|
|
<link rel="stylesheet" href="media/style.css">
|
|
<link href="https://fonts.bunny.net/css?family=Space+Grotesk:wght@500&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
<meta content="Lethal-Extended" property="og:title" />
|
|
<meta content="Lethal Company, but better." property="og:description" />
|
|
<meta content="https://lethal-extended.com" property="og:url" />
|
|
<meta content="https://lethal-extended.com/media/projects/LethalExtended.png" property="og:image" />
|
|
<meta content="#d81713" data-react-helmet="true" name="theme-color" />
|
|
</head>
|
|
<body>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
|
<nav class="desktop_navbar">
|
|
<a href="index.html"><img class="desktop_navbar_logo_img" src="media/logo.png" width="96" height="64" alt="logo"></a>
|
|
<a href="https://merch.lethal-extended.com" class="desktop_navbar_link">Merch</a>
|
|
<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.5.4</a>
|
|
<div class="desktop_navbar_link2_div">
|
|
<a href="./downloads.html" class="desktop_navbar_link2">Download</a>
|
|
</div>
|
|
</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>
|
|
<div id="mobile_navbar_links">
|
|
<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>
|
|
</div>
|
|
<div class="icon" onclick="mobile_navbar_link_hider()">
|
|
<i class="fa fa-bars"></i>
|
|
</div>
|
|
<script>
|
|
function mobile_navbar_link_hider() {
|
|
var x = document.getElementById("mobile_navbar_links");
|
|
if (x.style.display === "flex") {
|
|
x.style.display = "none";
|
|
} else {
|
|
x.style.display = "flex";
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
<div class="mainflex">
|
|
<div class="main1">
|
|
<a class="main1_logo_a" href="#">
|
|
<img class="main1_logo" src="media/HeaderNew.png" width="1324" alt="logo">
|
|
</a>
|
|
<a href="https://www.youtube.com/watch?v=cJcAbvsE7nE"><img alt="website" src="https://cdn.galactiq.net/lethalextended/website/icons/trailer-compact.svg"></a>
|
|
<div class="main1_description">
|
|
<a>Lethal Company,<br>but</a>
|
|
<a class="main1_actcent">better</a><a>.</a>
|
|
</div>
|
|
<title>Player Counts</title>
|
|
<style>
|
|
|
|
#player-count {
|
|
font-size: 2em;
|
|
color: #ebe3e3;
|
|
}
|
|
|
|
#loading {
|
|
display: none;
|
|
color: #777;
|
|
}
|
|
</style>
|
|
|
|
<div class="main1_actcent" id="player-count">Loading...</div>
|
|
|
|
<script>
|
|
const playerCountElement = document.getElementById('player-count');
|
|
const prometheusURL = 'http://5.161.51.188:9090/api/v1/query?query=le_active_users';
|
|
|
|
// Function to fetch player count from Prometheus
|
|
async function fetchPlayerCount() {
|
|
try {
|
|
const response = await fetch(prometheusURL);
|
|
const data = await response.json();
|
|
|
|
// Extract the player count from the response
|
|
if (data.status === 'success' && data.data.result.length > 0) {
|
|
const playerCount = data.data.result[0].value[1];
|
|
playerCountElement.textContent = `Current Player Count: ${playerCount}`;
|
|
} else {
|
|
playerCountElement.textContent = 'No data';
|
|
}
|
|
} catch (error) {
|
|
console.error('Error fetching player count:', error);
|
|
playerCountElement.textContent = 'Error fetching data';
|
|
} finally {
|
|
}
|
|
}
|
|
|
|
// Fetch player count every 15 seconds
|
|
setInterval(fetchPlayerCount, 5000);
|
|
|
|
// Initial fetch when the page loads
|
|
fetchPlayerCount();
|
|
</script>
|
|
<p></p>
|
|
<div class="main1_ipcopier_div">
|
|
<button class="main1_ipcopier" type="button">
|
|
<span class="main1_ipcopier_text1"></span>
|
|
<a class="main1_ipcopier_text1" href="https://discord.gg/BkmEarDQxq">Discord Server</a>
|
|
</button>
|
|
<button class="main1_ipcopier" type="button">
|
|
<a class="main1_ipcopier_text1" href="applications.html">Team Applications</a>
|
|
</button>
|
|
</div>
|
|
<a href="#more" class="scroll">
|
|
<img alt="downarrow" class="main1_downarrow" src="media/downarrow.png">
|
|
</a>
|
|
<script>
|
|
const scrollLinks = document.querySelectorAll('.scroll');
|
|
scrollLinks.forEach(function(link) {
|
|
link.addEventListener('click', function(event) {
|
|
event.preventDefault();
|
|
const target = document.querySelector(link.getAttribute('href'));
|
|
const offsetTop = target.offsetTop;
|
|
window.scrollTo({
|
|
top: offsetTop,
|
|
behavior: 'smooth'
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
<div id="more"></div>
|
|
<div class="main2">
|
|
<a class="headline">Features</a>
|
|
<div class="main2_features_div">
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/bigger-lobby.jpg">
|
|
<a class="main2_feature_headline">More Company</a>
|
|
<a class="main2_feature_text">Make a party bigger than 4!</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/cosmetics.png">
|
|
<a class="main2_feature_headline">Cosmetics</a>
|
|
<a class="main2_feature_text">Style yourself!</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/custommoons.png">
|
|
<a class="main2_feature_headline">Custom Moons</a>
|
|
<a class="main2_feature_text">Explore More Dangers!</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/mimics.jpg">
|
|
<a class="main2_feature_headline">Mimics</a>
|
|
<a class="main2_feature_text">Can you figure out the differences in time?</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/skinwalkers.jpg">
|
|
<a class="main2_feature_headline">Skinwalkers</a>
|
|
<a class="main2_feature_text">Are the voices in the dark really your friends?</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/custom-music.avif">
|
|
<a class="main2_feature_headline">Custom Music</a>
|
|
<a class="main2_feature_text">Dance with your friends!</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/pushing.png">
|
|
<a class="main2_feature_headline">Pushing</a>
|
|
<a class="main2_feature_text">Betray your friends and push them in the most dire of times</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/interiors.png">
|
|
<a class="main2_feature_headline">Custom Interiors</a>
|
|
<a class="main2_feature_text">New Dungeons to explore and get lost in</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/enemies.png">
|
|
<a class="main2_feature_headline">New Enemies</a>
|
|
<a class="main2_feature_text">New monsters lurk in the darkness</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/emotes.png">
|
|
<a class="main2_feature_headline">Emotes</a>
|
|
<a class="main2_feature_text">Over 200+ Emotes</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/gambling.png">
|
|
<a class="main2_feature_headline">Gambling</a>
|
|
<a class="main2_feature_text">Try your luck to double your earnings!</a>
|
|
</div>
|
|
<div class="main2_feature">
|
|
<img class="main2_feature_img" alt="Feature Image" src="media/features/more.webp">
|
|
<a class="main2_feature_headline">More</a>
|
|
<a class="main2_feature_text">So many more mods (Check Credits for a full list)</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|