Обновить build.py

This commit is contained in:
masterpmi 2026-07-23 20:52:19 +03:00
parent 952ca38bf6
commit 9d04431c4a

View File

@ -56,6 +56,17 @@ TEMPLATE = """<!DOCTYPE html>
<footer style="margin-top: 50px; border-top: 1px solid #ccc; padding-top: 20px; font-size: 0.8em; color: #666;">
© 2026 Физико-математический институт Коми НЦ УрО РАН
</footer>
<button class="theme-toggle" onclick="toggleTheme()" title="Переключить тему">🌓</button>
<script>
function toggleTheme() {
document.body.classList.toggle('dark-mode');
localStorage.setItem('theme', document.body.classList.contains('dark-mode') ? 'dark' : 'light');
}
// Восстановление темы при загрузке
if (localStorage.getItem('theme') === 'dark') {
document.body.classList.add('dark-mode');
}
</script>
</body>
</html>"""