frontend: Make buttons nicer

This commit is contained in:
Tom Wiesing 2022-10-14 21:15:31 +02:00
parent cdc7d69ad9
commit ebdbe9fabd
No known key found for this signature in database
16 changed files with 60 additions and 35 deletions

View file

@ -0,0 +1 @@
const e=e=>{const n=document.getElementsByTagName("h"+e);Array.from(n).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const n=document.createElement("a");return n.className="header-link",n.href="#"+e,n.innerHTML="#",n})(e.id))}))};new Array(6).fill(0).forEach(((n,r)=>e(r+1)));