bimap.push({ a: { b: 1, c: { d: 2 } } }); bimap.key('a.b'); // => 1 bimap.val(2); // => "acd"
$.breakpoint.on
, which is also capable of accepting an array in order to respond to different, predefined, dimensions (resolutions) of the device. Also, there is $.breakpoint.off
to remove handlers and $.breakpoint.changeBreakpoints
to change globally recognized (installed) device sizes (permissions). var makeChanges = function (breakpointName) { if (breakpointName === 'palm') { // make changes for mobile } else if (breakpointName === 'lap') { // make changes for small screen width } else { // `breakpointName` is 'default' as the new page width matches neither 'palm' nor 'lap' } }; $.breakpoint.on(['palm', 'lap'], makeChanges);
$.breakpoint.off(makeChanges);
{ palm: { max: 719 }, lap: { max: 1023, min: 720 }, 'lap-and-up': { min: 720 }, portable: { max: 1023 }, desk: { min: 1024 } }
Source: https://habr.com/ru/post/237083/
All Articles