fix: 在文件末尾再次添加 easing 函数备用

- 确保在所有脚本加载完成后 easing 函数仍然可用
- 解决其他插件覆盖 jQuery 导致 easing 丢失的问题
This commit is contained in:
2026-01-16 21:50:50 +08:00
parent cdf343f4b4
commit ce5f7c8bfa

View File

@@ -3888,4 +3888,22 @@ void 0;
else { init(); } else { init(); }
if (document.readyState !== 'complete') { initLoadingBar(); } if (document.readyState !== 'complete') { initLoadingBar(); }
})(); })();
/* ========== End of Modern UI Enhancements ========== */ /* ========== End of Modern UI Enhancements ========== */
// ========== jQuery Easing 备用(确保在所有脚本加载后仍可用)==========
(function() {
if (typeof jQuery === 'undefined') return;
var $ = jQuery;
if (!$.easing) $.easing = {};
if (!$.easing.easeOutCirc) {
$.easing.easeOutCirc = function(x) {
return Math.sqrt(1 - Math.pow(x - 1, 2));
};
}
if (!$.easing.easeOutExpo) {
$.easing.easeOutExpo = function(x) {
return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
};
}
})();