Although my CSS is getting better I just simply do not understand javascript yet.
I am using a slider on a simple (one break point) responsive micro site.
All I want to do is add a variable on the js running the slider so
Desktop
$(function () {
$(“.rslides”).responsiveSlides({
auto: true,
pager: true,
nav: false,
speed: 1000,
});
});
And then at the first breakpoint I just want to swap the pager and nav round:
$(function () {
$(“.rslides”).responsiveSlides({
auto: true,
pager: false,
nav: true,
speed: 1000,
});
});
So how do add a media query to this script so that I can swap between these two options?
Thanks