Sha256: 2a23f0ac99d379f04bd9ee4b307c77a342e278a46b1cbdf3ee1475880418cfef

Contents?: true

Size: 477 Bytes

Versions: 27

Compression:

Stored size: 477 Bytes

Contents

const ExpandBlock = (e) => {
  let ting = $(e.target),
      target = ting.parent().siblings(Site.page.artwork).children(Site.code.wrap);

  if (target.css("display") == "none") {
    gsap.set(target,{ display : Config.display });
    gsap.set(ting,{ text : "Hide" });
  } else {
    gsap.set(target,{ clearProps : "display" });
    gsap.set(ting,{ text : "Show" });
  }
}

if (Config.style == "docs") {

  $(Site.code.expand).click(function(e) {
    ExpandBlock(e);
  });

}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
futuro-0.7.4 assets/js/footer/custom/ExpandBlock.js
futuro-0.7.3 assets/js/footer/custom/ExpandBlock.js
futuro-0.7.2 assets/js/footer/custom/ExpandBlock.js
futuro-0.7.1 assets/js/footer/custom/ExpandBlock.js
futuro-0.7.0 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.9 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.8 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.7 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.6 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.5 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.4 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.3 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.2 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.1 assets/js/footer/custom/ExpandBlock.js
futuro-0.6.0 assets/js/footer/custom/ExpandBlock.js
futuro-0.5.9 assets/js/footer/custom/ExpandBlock.js
futuro-0.5.8 assets/js/footer/custom/ExpandBlock.js
futuro-0.5.7 assets/js/footer/custom/ExpandBlock.js
futuro-0.5.6 assets/js/footer/custom/ExpandBlock.js
futuro-0.5.5 assets/js/footer/custom/ExpandBlock.js