Actualiser include/footer.php

This commit is contained in:
2026-04-09 12:39:14 +00:00
parent 35b6e1c290
commit 71fab98ad9

View File

@@ -1,4 +1,28 @@
<footer>
<p>© 2026 Smart House</p>
</footer>
<script src="../dashboard.js"></script>
<script src="../dashboard.js"></script>
<script>
function toggleTheme() {
const body = document.body;
const btn = document.getElementById('toggle-theme');
body.classList.toggle('light-mode');
if (body.classList.contains('light-mode')) {
btn.textContent = '🌙';
localStorage.setItem('theme', 'light');
} else {
btn.textContent = '☀️';
localStorage.setItem('theme', 'dark');
}
}
(function() {
const theme = localStorage.getItem('theme');
const btn = document.getElementById('toggle-theme');
if (theme === 'light') {
document.body.classList.add('light-mode');
if (btn) btn.textContent = '🌙';
}
})();
</script>