Обновить build.py
This commit is contained in:
parent
2e66422eb8
commit
c9a67d7ebe
28
build.py
28
build.py
@ -43,6 +43,34 @@ TEMPLATE = """<!DOCTYPE html>
|
|||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>Физико-математический институт</h1>
|
<h1>Физико-математический институт</h1>
|
||||||
|
<div class="header-formula" id="rotatingFormula">∫₀^∞ e^(-x²) dx = √π/2</div>
|
||||||
|
<script>
|
||||||
|
const formulas = [
|
||||||
|
"∫₀^∞ e^(-x²) dx = √π/2",
|
||||||
|
"iℏ ∂Ψ/∂t = ĤΨ",
|
||||||
|
" × E = -∂B/∂t",
|
||||||
|
"e^(iπ) + 1 = 0",
|
||||||
|
"∂²u/∂t² = c²∇²u",
|
||||||
|
"det(A - λI) = 0",
|
||||||
|
"Σ 1/n² = π²/6",
|
||||||
|
"F = ma",
|
||||||
|
"E = mc²",
|
||||||
|
"∮ E·dA = Q/ε₀"
|
||||||
|
];
|
||||||
|
let currentFormula = 0;
|
||||||
|
|
||||||
|
setInterval(() => {{
|
||||||
|
const el = document.getElementById('rotatingFormula');
|
||||||
|
if (el) {{
|
||||||
|
el.style.opacity = 0;
|
||||||
|
setTimeout(() => {{
|
||||||
|
currentFormula = (currentFormula + 1) % formulas.length;
|
||||||
|
el.textContent = formulas[currentFormula];
|
||||||
|
el.style.opacity = 1;
|
||||||
|
}}, 500);
|
||||||
|
}}
|
||||||
|
}}, 4000);
|
||||||
|
</script>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/">Главная</a>
|
<a href="/">Главная</a>
|
||||||
<a href="/news.html">Новости</a>
|
<a href="/news.html">Новости</a>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user