MediaWiki:Common.js:修订间差异
来自Limbo Wiki
无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
$("#lw-title").ready(function(){$("title").html($("#lw-title").get(0).innerHTML);}); | $("#lw-title").ready(function(){$("title").html($("#lw-title").get(0).innerHTML);}); | ||
$("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);}); | $("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);}); | ||
$(" | $("#lw-treebut").ready(function(){$("#lw-fakebut").html("<button type=\"button\">" + $("div#lw-treebut").get(0).innerHTML) +"</button>");}); |
2021年11月28日 (日) 04:33的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ $("#lw-title").ready(function(){$("title").html($("#lw-title").get(0).innerHTML);}); $("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);}); $("#lw-treebut").ready(function(){$("#lw-fakebut").html("<button type=\"button\">" + $("div#lw-treebut").get(0).innerHTML) +"</button>");});