Sha256: 13a8f0006e062d881d55697088eec91eb874ed26087cfe0ab01b393117ff04cb

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

const ExpandBlock = (e) => {
  let ting = $(e.target),
      target = ting.parent().siblings('.area._page-artwork').children('.code-wrap');

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

$('.block._expand-block').click(function(e) {
  ExpandBlock(e);
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
futuro-0.4.6 assets/js/footer/custom/ExpandBlock.js
futuro-0.4.5 assets/js/footer/custom/ExpandBlock.js
futuro-0.4.4 assets/js/footer/custom/ExpandBlock.js
futuro-0.4.3 assets/js/footer/custom/ExpandBlock.js
futuro-0.4.2 assets/js/footer/custom/ExpandBlock.js