Auto-sync 2026-04-15 19:35
This commit is contained in:
parent
d7d372cde9
commit
7945c45871
@ -368,7 +368,7 @@ async function fetchPlayerCount() {
|
||||
try {
|
||||
// Ersetze dies mit deiner Server-IP und dem Port (Standard ist 30120)
|
||||
// Wenn der Loadingscreen lokal auf dem Server läuft, klappt oft auch ein relativer Pfad oder die Server-Domain
|
||||
const response = await fetch('http://DEINE_SERVER_IP:30120/dynamic.json');
|
||||
const response = await fetch('http://78.46.42.89:30120/dynamic.json');
|
||||
const data = await response.json();
|
||||
|
||||
const el = document.querySelector('.player-count');
|
||||
@ -397,15 +397,16 @@ setInterval(fetchPlayerCount, 10000);
|
||||
// ============================================
|
||||
|
||||
function initRotatingContent() {
|
||||
const changelogText = document.querySelector('.changelog-text');
|
||||
let changelogIndex = 0;
|
||||
|
||||
// Set initial player count from config
|
||||
// 1. Text auf "Lade Spielerzahl..." setzen
|
||||
const playerCount = document.querySelector('.player-count');
|
||||
if (playerCount) {
|
||||
playerCount.textContent = `0/${CONFIG.maxPlayers} Spieler Online`;
|
||||
playerCount.textContent = `Lade Spielerzahl...`;
|
||||
}
|
||||
|
||||
// 2. Changelog/Tipps rotieren lassen
|
||||
const changelogText = document.querySelector('.changelog-text');
|
||||
let changelogIndex = 0;
|
||||
|
||||
if (changelogText && CONFIG.changelogs.length > 0) {
|
||||
setInterval(() => {
|
||||
changelogText.classList.add('fade-out');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user