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.top = '0';
} else {
navbar.style.top = '-100px';
}
prevScrollpos = currentScrollPos;
}
}, 25) // 防止快速滚动时频繁触发
})(window, document, 'header');
</script>
-->
|
2 months ago | |
|---|---|---|
| .. | ||
| config | 2 months ago | |
| controllers | 2 months ago | |
| core | 9 years ago | |
| errors | 9 years ago | |
| helpers | 2 months ago | |
| hooks | 9 years ago | |
| language/english | 9 years ago | |
| libraries | 9 months ago | |
| logs | 9 years ago | |
| mammoth | 4 years ago | |
| models | 8 months ago | |
| third_party | 2 months ago | |
| views | 2 months ago | |
| .htaccess | 9 years ago | |
| index.html | 9 years ago | |