MediaWiki:Common.js:修订间差异
来自Limbo Wiki Mirror
小 试着弄了Tab表? |
小无编辑摘要 |
||
| 第3行: | 第3行: | ||
$("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);}); | $("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);}); | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
a = $(".lw-treebut"); | a = $(".lw-treebut"); | ||
b = a.size(); | b = a.size(); | ||
| 第10行: | 第9行: | ||
a.get(i).innerHTML = "<button type=\"button\">" + a.get(i).innerHTML +"</button>" | a.get(i).innerHTML = "<button type=\"button\">" + a.get(i).innerHTML +"</button>" | ||
} | } | ||
$(".lw-Tabs").tabs(); | |||
}); | }); | ||
2021年12月14日 (二) 22:22的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
$("#lw-title").ready(function(){$("title").html($("#lw-title").get(0).innerHTML);});
$("#lw-firsthead").ready(function(){$("h1#firstHeading").html($("#lw-firsthead").get(0).innerHTML);});
$(document).ready(function(){
a = $(".lw-treebut");
b = a.size();
var i;
for (i = 0; i < b; i++){
a.get(i).innerHTML = "<button type=\"button\">" + a.get(i).innerHTML +"</button>"
}
$(".lw-Tabs").tabs();
});
