I'm looking for a way to make "arrows: true" dependent on whether the user is on mobile or not. This is for a slideshow that involves liquid template language
this.settings = {
accessibility: true,
arrows: true,
dots: false,
fade: true,
draggable: true,
touchThreshold: 20,
autoplay: this.$slideshow.data('autoplay'),
autoplaySpeed: this.$slideshow.data('speed')
};
I've tried setting and using a variable to no avail. Are there any straightforward ways to do this?
Edit:
I've tried the following (it most likely has errors):
var noarrow
if ($(window).width() <= 670) {
} noarrow = "false",
else {
noarrow = "true"
}
arrow: "no arrow"