Sha256: 9eb460ec65788047dbc429866b5ad44750c488bab660a42f5a278be4f4f0d1aa
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 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:Site.open}); PrintWidth(); } else { gsap.set(overMobi,{clearProps:"display"}); } } } $(CheckWidth); $(window).resize(CheckWidth);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
futuro-0.4.1 | assets/js/footer/custom/CheckWidth.js |