Files
谢宇宁andClaude Opus 5.5 3639d2184a Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 14:47:17 +07:00

41 lines
1.0 KiB
HTML

{{define "downloadAppFloat"}} {{if .appConfig.AppAddr}}
<link rel="stylesheet" href="/static/css/downloadAppFloat.css?v=6" />
<a
class="download-fab"
href="{{.appConfig.AppAddr}}"
target="_blank"
rel="sponsored nofollow noopener noreferrer"
aria-label="下载 App"
>
<img
class="download-fab-icon"
src="/static/images/phone.svg"
alt="下载黄果短剧APP"
/>
<span class="download-fab-text">下载 App</span>
</a>
<script>
(function () {
var button = document.querySelector(".download-fab");
if (!button) return;
var revealTimer = 0;
function reveal() {
revealTimer = 0;
button.classList.remove("is-scrolling");
}
function onScroll() {
button.classList.add("is-scrolling");
if (revealTimer) window.clearTimeout(revealTimer);
revealTimer = window.setTimeout(reveal, 180);
}
window.addEventListener("scroll", onScroll, { passive: true });
document.addEventListener("scroll", onScroll, {
passive: true,
capture: true,
});
})();
</script>
{{end}} {{end}}