2023年政策修订增补工作正在进行中,欢迎参与!
MediaWiki:Gadget-libJQuery.js
跳转到导航
跳转到搜索
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox/Safari:按住“Shift”的同时单击“刷新”,或按“Ctrl-F5”或“Ctrl-R”(Mac为“⌘-R”)
- Google Chrome:按“Ctrl-Shift-R”(Mac为“⌘-Shift-R”)
- Internet Explorer:按住“Ctrl”的同时单击“刷新”,或按“Ctrl-F5”
- Opera:在“工具→首选项”中清除缓存
- 如果您已登录但该页面出现未登录状态,请尝试在地址栏的地址最后添加代码
?_=1
来访问最新页面。 - 添加代码后的本页地址如下:
-{R|https://moegirl.icu/MediaWiki:Gadget-libJQuery.js?_=1}-
萌娘百科界面管理员团队提醒您
本页面由萌娘百科界面管理员团队在其 GitHub 库内进行维护,通过机器人自动生成可被 MediaWiki Gadget 扩展接受的版本并保存到此处。
如果您有任何意见或建议,建议您到技术实现版提出。
- 本页面的内容为自动生成,手动修改可能会被覆盖,源码可在此处查看;
- 最新修订由 U:AnnAngela 与 U:Bhsd、GH:github-actions[bot] 共同做出,相关 commit 为:bf83eaea - ci: use eslint flat config (#400) [展开/折叠]
Co-authored-by: Bhsd <55071315+bhsd-harry📧users.noreply.github.com>↩Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com>
/** * ------------------------------------------------------------------------- * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!! * ------------------------------------------------------------------------- */ var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/libJQuery/MediaWiki:Gadget-libJQuery.js|user=[[U:AnnAngela]]|co-authors=[[U:Bhsd]]、GH:github-actions[bot]|longId=bf83eaea8eb4d94405bdf6885ec072fec997dd56|shortId=bf83eaea|summary=ci: use eslint flat config (#400)|body=<nowiki>Co-authored-by: Bhsd <55071315+bhsd-harry📧users.noreply.github.com>↩Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com></nowiki>}}'; /* <pre> */ "use strict"; (function ($, mw) { $.extend({ createIcon: function (iconClass) { return $("<span>", { "class": "ui-icon ".concat(iconClass, " jquery-inline-icon"), text: " " }); }, createNotifyArea: function (textNode, icon, state) { return $("<div>", { "class": "ui-widget" }).append($("<div>", { "class": "".concat(state, " ui-corner-all"), style: "margin-top:20px; padding:0.7em;" }).append($("<p>").append($.createIcon(icon).css("margin-right", ".3em"), textNode))); }, ucFirst: function (str) { return str.charAt(0).toUpperCase() + str.slice(1); } }); mw.messages.set({ "libjq-cancel-title": "关闭该对话框 [Esc]", "libjq-proceed-title": "在单行输入框内按下回车键", "libjq-report-title": "报告错误以改进本工具" }); var buttonConfig = { proceed: { icon: "ui-icon-circle-check", "class": "ui-button-green", title: "libjq-proceed-title" }, cancel: { icon: "ui-icon-circle-close", "class": "ui-button-red", title: "libjq-cancel-title" }, report: { icon: "ui-icon-circle-check", "class": "", title: "libjq-report-title" } }; $.extend($.fn, { specialButton: function (which) { return this.button({ icons: { primary: buttonConfig[which].icon } }).addClass(buttonConfig[which]["class"]).attr("title", mw.msg(buttonConfig[which].title)); }, _jqInteraction: function () { var _this = this; return this.on({ mouseenter: function () { _this.addClass("ui-state-hover"); }, mouseleave: function () { _this.removeClass("ui-state-hover").removeClass("ui-state-active"); } }).on("focusin", function () { _this.addClass("ui-state-focus"); }).on("focusout", function () { _this.removeClass("ui-state-focus"); }).on("mousedown", function (e) { if (0 === e.originalEvent.button) { _this.addClass("ui-state-active"); } }).on("mouseup", function () { _this.removeClass("ui-state-active"); }); } }); }(jQuery, mediaWiki)); /* </pre> */