Sha256: 2b965f0d5907965a5d7725b12d122b24684e06a77d79fb99f6564db3ac76e7e2
Contents?: true
Size: 413 Bytes
Versions: 5
Compression:
Stored size: 413 Bytes
Contents
const ActiveBook = () => { if (!$(body).hasClass("type-home")) { let list = $(body)[0].classList, 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
5 entries across 5 versions & 1 rubygems