Sha256: fcfbab2320d72045021a17dc138ded304519c2b0d59fb57b3fffbb632fd033e5
Contents?: true
Size: 466 Bytes
Versions: 11
Compression:
Stored size: 466 Bytes
Contents
const ActiveBook = () => { if (!$(body).hasClass("type-home")) { let list = $(body)[0].classList, lnk = $(Site.topbar.lnk)[0].classList[2], active = ""; $(list).each(function(i,val) { if (val.startsWith("book-")) { active = val.slice(5); gsap.set(Site.topbar.lnk + "." + active,{ borderBottom : "3px solid" }); } }); } } $(function() { if(Config.install != "theme") { $(ActiveBook); } });
Version data entries
11 entries across 11 versions & 1 rubygems