You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
<!--
<script>
(function (w, d, i) {
function debounce(func, wait) {
let timeout;
return function () {
const context = this;
const args = arguments;
clearTimeout(timeout);
timeout = setTimeout(() => func.apply(context, args), wait);
};
}
var navbar = d.getElementById(i);
var prevScrollpos = w.pageYOffset;
w.onscroll = debounce(function () {
var currentScrollPos = w.pageYOffset;
if (Math.abs(currentScrollPos - prevScrollpos) > 5) { // 滚动阈值
if (prevScrollpos > currentScrollPos) {
navbar.style.transform = 'translateY(0)';
} else {
navbar.style.transform = 'translateY(-150px)';
}
prevScrollpos = currentScrollPos;
}
}, 25) // 防止快速滚动时频繁触发
})(window, document, 'pc_nav');
</script>
-->
|
3 weeks ago | |
|---|---|---|
| .. | ||
| config | 4 weeks ago | |
| controllers | 4 weeks ago | |
| core | ||
| errors | ||
| helpers | 1 month ago | |
| hooks | ||
| language/english | ||
| libraries | 8 months ago | |
| logs | ||
| mammoth | 4 years ago | |
| models | 7 months ago | |
| third_party | 4 weeks ago | |
| views | 3 weeks ago | |
| .htaccess | ||
| index.html | ||