Widget:GadgetsToc:修订间差异

imported>Irukaza
无编辑摘要
imported>Irukaza
无编辑摘要
第11行: 第11行:
     tocRoot.html('<div class="toctitle"><h1>' + wgULS("目录", "目錄") + '</h1></div>');
     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("h1").each((_, ele) => {
     root.find("h2").each((_, ele) => {
         const $ele = $(ele);
         const $ele = $(ele);
         const next = $ele.next();
         const next = $ele.next();