function click(){
let p = new Promise(ajax.bind(this));
p.then(console.log(this.parentNode.parentNode.querySelectorAll(".style-products-wrapper .active-style-product")),
console.log("ошибка"));
}
function deleteCookie(name) {
setCookie(name, "", {
'max-age': -1
})
}
почти не использую jquery