Sha256: fbf7c8fe19a37ce8eb6d39c0b36db86f4ee077026cb665fca4a97a2f341efc2f

Contents?: true

Size: 1.35 KB

Versions: 22

Compression:

Stored size: 1.35 KB

Contents

const RespondBrowse = () => {

  BookLinks.hover(function(e) {

    CreateMatch(this);

    gsap.set(BookLinks,ClearBackground);

    gsap.set(this,BackgroundShade);

    CheckBookClass(this);

    ChapterBooks.each(function(index,value) {

      CheckBookClass(value);

      IfFound(value);

      gsap.set(value.children,ClearBackground);

      gsap.set(value.children[0],BackgroundShade);

    });

    PageBooks.each(function(index,value) {

      CheckBookClass(value);

      IfFound(value);

      gsap.set(value.children,DisplayNone);

      gsap.set(value.children[0],ClearDisplay);

      gsap.set(value.children[0].children,ClearBackground);

      gsap.set(value.children[0].children[0],BackgroundShade);

    });

  });

  ChapterLinks.hover(function(e) {

    let parent = this.parentElement;

    CreateMatch(parent,"book");

    CreateMatch(this,"chapter");

    gsap.set(ChapterLinks,ClearBackground);

    gsap.set(this,BackgroundShade);

    PageChapters.each(function(index,value) {

      CheckChapterClass(value);

      IfFound(value);

      gsap.set(value.children,ClearBackground);

      gsap.set(value.children[0],BackgroundShade);

    });

  });

  PageLinks.hover(function(e) {

    gsap.set(PageLinks,ClearBackground);

    gsap.set(this,BackgroundShade);

  });

}

if (!SiteIsTheme) { if (!BodyIsHome) { if (Browseable) { RespondBrowse(); } } }

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
futuro-0.7.6 assets/js/footer/custom/RespondBrowse.js
futuro-0.7.5 assets/js/footer/custom/RespondBrowse.js