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

Version Path
futuro-0.6.9 assets/js/footer/custom/ActiveBook.js
futuro-0.6.8 assets/js/footer/custom/ActiveBook.js
futuro-0.6.7 assets/js/footer/custom/ActiveBook.js
futuro-0.6.6 assets/js/footer/custom/ActiveBook.js
futuro-0.6.5 assets/js/footer/custom/ActiveBook.js
futuro-0.6.4 assets/js/footer/custom/ActiveBook.js
futuro-0.6.3 assets/js/footer/custom/ActiveBook.js
futuro-0.6.2 assets/js/footer/custom/ActiveBook.js
futuro-0.6.1 assets/js/footer/custom/ActiveBook.js
futuro-0.6.0 assets/js/footer/custom/ActiveBook.js
futuro-0.5.9 assets/js/footer/custom/ActiveBook.js