1). Add the following snippet to the cover_init
function (before $isMobile
is first used):
var minWidthForVideo = parseInt(el.attr('data-min-width-for-video')) || null;
var imageMode = $isMobile;
var windowWidth = $(window).width();
if (minWidthForVideo && windowWidth < minWidthForVideo) {
imageMode = true;
}
2). Replace $isMobile
with imageMode
everywhere in this function.
Add data-min-width-for-video="800"
property to the specific .t-cover__carrier
element of your choice.
Replace 800
with any value you like.
That's it!