All checks were successful
Deploy Static Sites / deploy (push) Successful in 7s
- 新增 airlabs-art/ 子目录存放主站点静态内容 - nginx-conf 增加 apex+www 显式 server 块指向 airlabs-art/ - workflow 跳过 airlabs-art 的子域名自动生成,追加裸域+www HTTP 规则 - workflow 新增同步 nginx ConfigMap 并 rollout restart 的步骤 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
1001 B
JavaScript
31 lines
1001 B
JavaScript
document.addEventListener('DOMContentLoaded', () => {
|
|
// Scroll Animation (Fade Up)
|
|
const observerOptions = {
|
|
threshold: 0.1,
|
|
rootMargin: "0px 0px -50px 0px"
|
|
};
|
|
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('visible');
|
|
}
|
|
});
|
|
}, observerOptions);
|
|
|
|
const fadeElements = document.querySelectorAll('.fade-up');
|
|
fadeElements.forEach(el => observer.observe(el));
|
|
|
|
// Header Blur Effect on Scroll
|
|
const header = document.querySelector('.header');
|
|
window.addEventListener('scroll', () => {
|
|
if (window.scrollY > 50) {
|
|
header.style.background = 'rgba(10, 10, 10, 0.95)';
|
|
header.style.boxShadow = '0 5px 20px rgba(0,0,0,0.5)';
|
|
} else {
|
|
header.style.background = 'rgba(10, 10, 10, 0.8)';
|
|
header.style.boxShadow = 'none';
|
|
}
|
|
});
|
|
});
|