Каталог
// Сектор скрипт Trassir > https://trassir.ru/ | |
// Хар-ки | |
var chars = ; | |
$(".product__additional-characteristics-table .characteristics__table-row").each(function(i,e){ | |
chars += $.trim($(".characteristics__table-description", $(e)).text()) + | + $.trim($(".characteristics__table-value", $(e)).text().replace(/ |
? | |
/g, "").replace(/s+/g, )) + | |
; | |
}); | |
console.log(ХАРАКТЕРИСТИКИ); | |
console.log(chars); | |
// Фото | |
var imgs = ; | |
$(".product-item-detail-slider-image img").each(function(i,e){ | |
imgs += https://trassir.ru + $.trim($(e).attr("src")) + | |
; | |
}); | |
console.log(ФОТО); | |
console.log(imgs); | |
// Доки | |
var docs = ; | |
$(".product__document").each(function(i,e){ | |
var link = $.trim($("a",$(e)).attr("href")); | |
if (link.indexOf(.pdf) + 1) { | |
docs += https://trassir.ru + encodeURI(link) + | + $.trim($(".document__title",$(e)).text()) + |
; | |
} | |
}); | |
console.log(ДОКИ); | |
console.log(docs); |