With twitter-bootstrap it is possible to achieve responsive behavior by applying css to markup like visible-lg visible-md visible-sm responsive-utilities for example.
But how about if i want to apply specific JavaScript for specific resolution.
lets say I have javascript like that:
$('.mainHeader').affix({
offset: {
top: 585
}
});
I want value top make dynamic based on current resolution.
lets say if current resolution visible-lg I want top: 20, if current resolution visible-md I want top: 300 etc..
Is there any clever way to achieve that with twitter-bootstrap?