add _extensions

This commit is contained in:
2026-05-21 13:37:53 +08:00
parent 6a9a5fc90e
commit 61bd0bea2f
252 changed files with 33972 additions and 1 deletions
@@ -0,0 +1,17 @@
<script>
document.addEventListener("DOMContentLoaded", function () {
const title = document.querySelector("section#title-slide h1.title");
if (!title) return;
const lineHeight = parseFloat(getComputedStyle(title).lineHeight);
const maxHeight = lineHeight * 1.5; // 限制为两行
let fontSize = parseFloat(getComputedStyle(title).fontSize);
// 循环缩小字体直到标题高度 <= 两行
while (title.scrollHeight > maxHeight && fontSize > 10) {
fontSize -= 1;
title.style.fontSize = fontSize + "px";
}
});
</script>