Offline.options = {
checkOnLoad: true,
interceptRequests: true,
requests: true,
deDupBody: true
};
var run = function(){
if (Offline.state === 'up')
Offline.check();
};
setInterval(run, 1000);
$('.main-header__info').click(function() {
if ($('.main-header__info').hasClass('main-header__info__active')){
$('.news__block').css({
'display': 'none'
});
$('.main-header__mobile').css({
'display': 'block'
});
$('.main-header__info').removeClass('main-header__info__active');
} else {
$('.main-header__info').addClass('main-header__info__active');
$('.news__block').css({
'display': 'block'
});
$('.main-header__mobile').css({
'display': 'none'
});
}
});