Обновить build.py
This commit is contained in:
parent
952ca38bf6
commit
9d04431c4a
11
build.py
11
build.py
@ -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>"""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user