I am checking the example code. I am not so familiar with Jquery. I never saw this kind of code in JavaScript. He is using Jquery ready function. But inside I can't understand the last line code
timelineComponents['eventsContent'].on('swiperight', function(){
var mq = checkMQ();
( mq == 'mobile' ) && showNewContent(timelineComponents, timelineTotWidth, 'prev');});
Why at the end there is and operation. Is it like If condition? Does it mean that when mq is mobile, then run function showNewContent?
Here is resources code: https://codepen.io/ritz078/pen/LGRWjE