Sha256: 0e16ed507941ab6dc26e909fd956f8d031a206328d461734f2d09e85a5fad592

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

const PrintWidth = () => {
  var size = $(document)[0].documentElement.clientWidth,
      more = Site.width - size + 'px',
      percent = (100/Site.width) * size + '%';

  $('.width').html(more);
  gsap.set('.bar._mobile',{width:percent});
}

const CheckWidth = () => {
  if (!Site.mobile) {
    if (IsMobile) {
      gsap.set(overMobi,{display:open});
      PrintWidth();
    } else {
      gsap.set(overMobi,{clearProps:"display"});
    }
  }
}

$(CheckWidth);

$(window).resize(CheckWidth);

Version data entries

5 entries across 5 versions & 1 rubygems

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