append an anchor link after each subheader · colby/colbyolson.com@472befd · GitHub

Skip to content Sign up Sign in </textarea> '"` This repository Explore Features Enterprise Pricing Watch 1 Star 2 Fork 0 colby / colbyolson.com Code Issues 1 Pull requests 0 Pulse Graphs Permalink Browse files append an anchor link after each subheader master 1 parent cd6660e commit 472befd95ec997e9ed1877ef16c86f4673102a25 colby committed Feb 2, 2016 Unified Split Showing 1 changed file with 7 additions and 0 deletions . +7 −0 lib/footer.html Show notes View 7 lib/footer.html @@ -2,9 +2,16 @@ < script > + $ ( " h2, h3, h4 " ). each ( function () + { + var current = $ ( this ); + $ ( this ). append ( " &nbsp;<a class='anchor' href= " + window . location . pathname + " # " + $ ( this ). at...

Linked on 2016-02-03 03:37:27 | Similar Links