🌟构建了简易的blog

This commit is contained in:
Falck
2026-04-10 20:00:25 +08:00
parent 4eaf10e753
commit c38d2f66d1
238 changed files with 30052 additions and 11 deletions

View File

@@ -27,18 +27,18 @@ class ParallaxTracker {
// 自动检测文档页面
const docsContent = document.querySelector('.docs-content');
if (docsContent && !docsContent.hasAttribute('data-parallax-speed')) {
docsContent.setAttribute('data-parallax-speed', '1.0');
docsContent.setAttribute('data-parallax-speed', '0.5');
}
// 自动检测首页
const heroContent = document.querySelector('.hero-content');
if (heroContent && !heroContent.hasAttribute('data-parallax-speed')) {
heroContent.setAttribute('data-parallax-speed', '1.0');
heroContent.setAttribute('data-parallax-speed', '0.5');
}
const heroSection = document.querySelector('.page-hero');
if (heroSection && !heroSection.hasAttribute('data-parallax-speed')) {
heroSection.setAttribute('data-parallax-speed', '1.0');
heroSection.setAttribute('data-parallax-speed', '0.5');
}
// 查找视差元素