这是林泊百科的迁移技术测试站点,所有改动不会同步到林泊百科上,此站点将会在正式迁移后关闭,请勿存放重要数据

MediaWiki:Common.js:修订间差异

来自Limbo Wiki
跳转到导航 跳转到搜索
Sam0324留言 | 贡献
修bug?
DeathMark留言 | 贡献
无编辑摘要
 
(未显示2个用户的37个中间版本)
第1行: 第1行:
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
$().ready(function(){
$(document).ready(function(){
  $("#lw-title").ready(function(){
  $("span.mw-summary-preset span.mw-summary-preset-item").click(function(){
   $("title").html($("#lw-title").get(0).innerHTML);
   a = $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").get(0);
   $("#lw-title").html("");
   a.value += $(this).children().text();
  });
  });
  $("#lw-firsthead").ready(function(){
  $(".lw-treebut").click(function(){
   $("#firstHeading").html($("#lw-firsthead").get(0).innerHTML);
   p = $(this).parents(".mw-parser-output").first();
   $("#lw-firsthead").html("");
  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");
 });
});