这是林泊百科的迁移技术测试站点,所有改动不会同步到林泊百科上,此站点将会在正式迁移后关闭,请勿存放重要数据
MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
小无编辑摘要 |
无编辑摘要 |
||
| (未显示2个用户的12个中间版本) | |||
| 第1行: | 第1行: | ||
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$("span.mw-summary-preset span.mw-summary-preset-item").click(function(){ | |||
a = $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").get(0); | |||
a.value += $(this).children().text(); | |||
}); | |||
$(".lw-treebut").click(function(){ | |||
p = $(this).parents(".mw-parser-output").first(); | |||
p.find(".lw-treediv").css("display","none"); | |||
p.find(".lw-treediv." + $(this).attr("id")).css("display","block"); | |||
}); | |||
}); | }); | ||
2022年9月24日 (六) 21:20的最新版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
$(document).ready(function(){
$("span.mw-summary-preset span.mw-summary-preset-item").click(function(){
a = $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").get(0);
a.value += $(this).children().text();
});
$(".lw-treebut").click(function(){
p = $(this).parents(".mw-parser-output").first();
p.find(".lw-treediv").css("display","none");
p.find(".lw-treediv." + $(this).attr("id")).css("display","block");
});
});