From ce5f7c8bfa6af9acf190c522a1851952b468fe5f Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 16 Jan 2026 21:50:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E6=96=87=E4=BB=B6=E6=9C=AB?= =?UTF-8?q?=E5=B0=BE=E5=86=8D=E6=AC=A1=E6=B7=BB=E5=8A=A0=20easing=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=A4=87=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 确保在所有脚本加载完成后 easing 函数仍然可用 - 解决其他插件覆盖 jQuery 导致 easing 丢失的问题 --- argontheme.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/argontheme.js b/argontheme.js index 66251b2..727d4ec 100644 --- a/argontheme.js +++ b/argontheme.js @@ -3888,4 +3888,22 @@ void 0; else { init(); } if (document.readyState !== 'complete') { initLoadingBar(); } })(); -/* ========== End of Modern UI Enhancements ========== */ \ No newline at end of file +/* ========== 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); + }; + } +})();