$('.main-tabs__slider a').click(function(event ) {
if($(this).hasClass('active')) {
event.preventDefault();
}
});
$("a[rel='m_PageScroll2id']").mPageScroll2id({
offset:220
});
<div class='arrow'>
<div class='next'></div>
<div class='prev'></div>
</div>
<div class='date'>
<div id='d1'>2017</div>
<div id='d2'>2016</div>
</div>
<div class='content'>
<div data-content='d1'>1</div>
<div data-content='d2'>2</div>
</div>
<div id='d1' class='date-active'>2017</div>
<div data-content='d1' class='content-active'>1</div>