官网改版上线:关于我们与联系我们页重构、首页AI主视觉v4、品牌标识与导航交互;同步测试与设计文档
这个提交包含在:
@@ -0,0 +1,22 @@
|
||||
/* Keep the public navigation readable while content passes beneath it. */
|
||||
(function () {
|
||||
'use strict';
|
||||
var root = document.documentElement;
|
||||
var pending = false;
|
||||
|
||||
function update() {
|
||||
root.classList.toggle('nhc-nav-scrolled', window.scrollY > 40);
|
||||
pending = false;
|
||||
}
|
||||
|
||||
function onScroll() {
|
||||
if (!pending) {
|
||||
pending = true;
|
||||
window.requestAnimationFrame(update);
|
||||
}
|
||||
}
|
||||
|
||||
update();
|
||||
window.addEventListener('scroll', onScroll, { passive: true });
|
||||
window.addEventListener('pageshow', update);
|
||||
}());
|
||||
在新工单中引用
屏蔽一个用户