$(function () {
$(document).on('yacounter7794355inited', function () {
$('.container-new-year .addtocart').submit(function () {
ym(7794355,'reachGoal','NY_add_to_cart');
});
});
})
$(document).ready(function() {
$('#tabs').easytabs({
updateHash: true
});
});
$(function() {
$(window).scroll(function() {
if($(this).scrollTop() != 0) {
$('#toTop').fadeIn();
} else {
$('#toTop').fadeOut();
}
});
$('#toTop').click(function() {
$('body,html').animate({scrollTop:0},800);
});
});
jQuery(document).ready(function($) {
$.quickorder.locale='ru_RU';
$.quickorder.aftercallback='';
;
});
$(document).ready(function () {
$("#search").searchautocomplete({"serviceUrl":"\/search\/autocomplete\/","minChars":1000});
});
var arrived_ignore_stock_count = 1;
$.itemsetsFrontend.init();
(function() {
return new Promise(function (resolve, reject) {
var s;
s = document.createElement('script');
s.src = '/wa-apps/shop/plugins/itemsets/js/itemsetsFrontendLocaleOriginal.js';
s.onload = resolve;
s.onerror = reject;
document.body.appendChild(s);
})
})()
new Promise(function(e,n){var r;(r=document.createElement("script")).src="/wa-apps/shop/plugins/optimizer/js/optimizer-register.js?0.0.1231731109656",r.onload=e,r.onerror=n,document.head.appendChild(r)});
new Promise(function(e,n){var r;(r=document.createElement("script")).src="/wa-apps/shop/plugins/deliveryinfo/js/deliveryinfo_front.js",r.onload=e,r.onerror=n,document.head.appendChild(r)});
var fired = false;
$(document).ready(() => {
console.log('------------------TRIGGER')
if (fired === false) {
fired = true;
var asyncLoadScripts = window.setTimeout(() => {
$.ajax({
type: "GET",
url: "/async/",
async:true,
cache: true,
data: {
main_action : 'page',
ulk : '1', yandexsale : '',
canonical : 'https://kremlinstore.ru/types/',
mainPage : 'https://kremlinstore.ru',
ref : '',
config : '{"opt":null,"vk_api_id":4387331,"now":"?1731109656"}',
cart_code : '',
user_id : '',
},
success: function(html){
$("body").append(html);
}
});
}, 100)
}
});