Widget:GadgetsToc:修订间差异
imported>Irukaza 无编辑摘要 |
imported>Irukaza 无编辑摘要 |
||
| 第9行: | 第9行: | ||
"class": "toc", | "class": "toc", | ||
}); | }); | ||
tocRoot.html('<div class="toctitle"><h1>' + wgULS("目录 | tocRoot.html('<div class="toctitle"><h1>' + wgULS("目录") + '</h1></div>'); | ||
const container = $("<div>").addClass("gadgetsTocContainer").appendTo(tocRoot); | const container = $("<div>").addClass("gadgetsTocContainer").appendTo(tocRoot); | ||
root.find("h2").each((_, ele) => { | root.find("h2").each((_, ele) => { | ||