public/funktionen.html aktualisiert
This commit is contained in:
parent
8b70a53946
commit
e8928f2b75
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="css/funktionen.css">
|
||||
<link rel="icon" type="image/png" href="img/Viper-plex-logo.png">
|
||||
<title>Funktionen - Viper-Plex</title>
|
||||
<title id="web-title">${WEB_NAME}</title> <!-- Platzhalter für den Titel -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Logo separat einfügen -->
|
||||
|
@ -15,7 +15,7 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="welcome-box">
|
||||
<h1>Funktionen des Bots</h1>
|
||||
<h1 id="welcome-title">${WEB_NAME}</h1> <!-- ID für das h1-Tag -->
|
||||
<nav class="navbar">
|
||||
<div class="navbar-container">
|
||||
<a href="index.html" class="navbar-link">Home</a>
|
||||
|
@ -86,23 +86,9 @@
|
|||
|
||||
|
||||
<footer class="footer">
|
||||
<p>© 2024 Viper-Plex. Alle Rechte vorbehalten.</p>
|
||||
<p>© 2024 M_Viper. Alle Rechte vorbehalten.</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Darkmode umschalten
|
||||
const toggle = document.getElementById('dark-mode-toggle');
|
||||
const darkModeEnabled = localStorage.getItem('darkMode') === 'true';
|
||||
toggle.checked = darkModeEnabled;
|
||||
if (darkModeEnabled) {
|
||||
document.body.classList.add('dark-mode');
|
||||
}
|
||||
|
||||
toggle.addEventListener('change', () => {
|
||||
const isChecked = toggle.checked;
|
||||
document.body.classList.toggle('dark-mode', isChecked);
|
||||
localStorage.setItem('darkMode', isChecked);
|
||||
});
|
||||
</script>
|
||||
<script src="js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue