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