');
!window.jQuery.cookie && document.write('');
$(window).on('load', function () {
var cookieEnabled = function () {
if (typeof navigator != 'undefined' && typeof navigator.cookieEnabled != 'undefined') {
return navigator.cookieEnabled;
} else {
return false;
}
};
if (cookieEnabled()) {
$('body').addClass('scroll-disabled');
(function () {
var images = [],
fancyboxImage = 'fancybox-image';
if ($.cookie('banner_220') === null) {
images.push({
href: '/uploads/2420ad5bacddd952d26c4bc17d8cbc42.png',
link: 'https://docs.google.com/forms/d/e/1FAIpQLSd2yICqKmZBVjNItw3KxuIQ8IIjJMfAC3NJaqar-Y-sPaTB0A/viewform?usp=sf_link',
id: '220',
name: 'Опросник Капсулы РГМ',
place: 'once_a_day'
});
$.cookie(
'banner_220',
1,
{path: '/', expires: new Date('2021-01-15T23:59:59+03:00')}
);
}
if ($.cookie('banner_205') === null) {
images.push({
href: '/uploads/2288486f367866fea75bff669cb7b572.png',
link: 'https://www.instagram.com/gumballs_russia/',
id: '205',
name: 'Instagram',
place: 'once_a_day'
});
$.cookie(
'banner_205',
1,
{path: '/', expires: new Date('2021-01-15T23:59:59+03:00')}
);
}
if ($.cookie('banner_186') === null) {
images.push({
href: '/uploads/d7d4355790288eca834a5992fe35d398.png',
link: '/category/mjachi-pryguny?filter_property=30603353%3A13435569',
id: '186',
name: 'Всплывашка мячи Skyballs',
place: 'once_a_day'
});
$.cookie(
'banner_186',
1,
{path: '/', expires: new Date('2021-01-15T23:59:59+03:00')}
);
}
if ($.cookie('banner_151') === null) {
images.push({
href: '/uploads/071a82bd217647d6f7eaaf98171d3835.gif',
link: 'https://gumballs.ru/product/torgovyj-avtomat-alfa',
id: '151',
name: 'Всплывашка Альфа',
place: 'once_a_day'
});
$.cookie(
'banner_151',
1,
{path: '/', expires: new Date('2021-01-15T23:59:59+03:00')}
);
}
setTimeout(function () {
$.fancybox.open(images, {
beforeShow: function () {
var $fancyboxImage = $('.' + fancyboxImage),
$link = $('', {
target: '_blank',
href: this.link,
class: 'ones-a-day-link',
'data-id': this.id,
'data-name': this.name,
'data-place': this.place,
'data-banner-number': this.index + 1
});
$link.on('click', function () {
$.fancybox.close();
});
$fancyboxImage.wrap($link);
},
padding: 0,
nextEffect: 'none',
prevEffect: 'none',
mouseWheel: false
});
}, 0);
}());
}
});
//-->