Update news.html

This commit is contained in:
TheErrorExe 2025-01-10 17:25:58 +01:00 committed by GitHub
parent d7d717fc13
commit 5d10398b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,9 @@
const newsContainer = document.getElementById('news-container');
newsContainer.innerHTML = '';
// Reihenfolge umkehren
news.reverse();
news.forEach(item => {
const newsItem = document.createElement('div');
newsItem.style.border = '1px solid #ddd';
@ -59,7 +62,6 @@
<li><a href="/about.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Über uns</a></li>
<li><a href="/server.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Server Info</a></li>
<li><a href="/news.html" style="text-decoration: none; color: #fff; margin-left: 20px;">Neuigkeiten</a></li>
</ul>
</nav>
</header>