Difference between revisions of "Template:BNU-CHINA/article"
Line 24: | Line 24: | ||
$("article h2").each(function (index, item) { | $("article h2").each(function (index, item) { | ||
− | $("ul.sub-nav"). | + | $("ul.sub-nav").append($("<li>").append( |
$("<a>").addClass("btn-filter btn") | $("<a>").addClass("btn-filter btn") | ||
.attr("data-tartget", index) | .attr("data-tartget", index) | ||
Line 30: | Line 30: | ||
)); | )); | ||
}); | }); | ||
+ | |||
+ | $("ul.sub-nav").append($("<li>").append( | ||
+ | $("<a>").addClass("btn-filter btn") | ||
+ | attr("href", "#") | ||
+ | .text("Top ▴") | ||
+ | )); | ||
$("ul.sub-nav a").click(function () { | $("ul.sub-nav a").click(function () { |
Revision as of 20:20, 17 September 2015