Sha256: 7698aa57ebf47644308f9c648a01865fb2e5ded3913c977a661f64312bc982d7
Contents?: true
Size: 658 Bytes
Versions: 49
Compression:
Stored size: 658 Bytes
Contents
const PrintWidth = () => { var size = $(document)[0].documentElement.clientWidth, more = Site.desktop.width - size + "px", percent = (100/Site.desktop.width) * size + "%"; $(".width").html(more); gsap.set(Overlay.mobile.bar,{width:percent}); } const CheckWidth = () => { if (!Site.desktop.active) { gsap.set(site,{ clearProps : "display" }); gsap.set(Overlay.mobile.screen,{ display : Config.display }); PrintWidth(); } else { gsap.set(Overlay.mobile.screen,{ clearProps : "display" }); gsap.set(site,{ display : Config.display }); } } if (!Config.respond) { $(CheckWidth); $(window).resize(CheckWidth); }
Version data entries
49 entries across 49 versions & 1 rubygems