微件:Intro:修订间差异
来自SOKA CAFE
第1行: | 第1行: | ||
<html lang="zh-CN"> | <html lang="zh-CN"> | ||
<head> | <head> | ||
第15行: | 第14行: | ||
body { | body { | ||
font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; | font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; | ||
overflow: hidden; | /* -- REMOVED -- These lines caused the scrolling issue on the main page. */ | ||
height: 100vh; | /* overflow: hidden; */ | ||
/* height: 100vh; */ | |||
} | } | ||
第305行: | 第305行: | ||
let isMuted = false; | let isMuted = false; | ||
let animationDuration = 4500; // 动画总时长(毫秒) | let animationDuration = 4500; // 动画总时长(毫秒) | ||
let animationTimer; // To clear the automatic skip | |||
// 创建花瓣背景 | // 创建花瓣背景 | ||
第356行: | 第357行: | ||
// 跳过动画 | // 跳过动画 | ||
function skipAnimation() { | function skipAnimation() { | ||
// ADDED: Restore scrolling on the body | |||
document.body.style.overflow = ''; | |||
// Clear the automatic timeout if the button was clicked | |||
clearTimeout(animationTimer); | |||
container.style.opacity = '0'; | container.style.opacity = '0'; | ||
第384行: | 第391行: | ||
// 初始化 | // 初始化 | ||
function init() { | function init() { | ||
// ADDED: Disable scrolling on the body when the animation starts | |||
document.body.style.overflow = 'hidden'; | |||
createPetals(); | createPetals(); | ||
第414行: | 第424行: | ||
// 设置自动结束 | // 设置自动结束 | ||
setTimeout(skipAnimation, animationDuration); | animationTimer = setTimeout(skipAnimation, animationDuration); | ||
// 事件监听 | // 事件监听 |
2025年8月30日 (六) 06:43的版本

八叶莲华会社
传统与创新的完美融合

八叶莲华会社
“中华Air本文化的活化石,了解Air本文化的最好途径”