fix: 在文件末尾再次添加 easing 函数备用
- 确保在所有脚本加载完成后 easing 函数仍然可用 - 解决其他插件覆盖 jQuery 导致 easing 丢失的问题
This commit is contained in:
@@ -3889,3 +3889,21 @@ void 0;
|
|||||||
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);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user