Javascript module to responsively modify elements when css cannot be used. Also ties css media query breakpoints into js breakpoint so they are the same.
To use, put the following in your site.js:
$(document).ready(function (event, data) {
//initialize javascript media queries
WSLApp.JSMediaQueries.init();
WSLApp.JSMediaQueries.apply();
});
The processMediaQuery function will be run on every resize after the specified throttle.
Any transormations that need to occure can be put inthe ResponsiveElements file as a new function and called from jsMediaQueries (to decouple the action from the breakpoint logic).
This package has been deprecated
Author message:
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
@legtech/jsmediaqueries
1.0.0 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i @legtech/jsmediaqueries
Weekly Downloads
1
Version
1.0.0
License
MIT
Unpacked Size
5.15 kB
Total Files
4