Каталог
// ФОТО | |
console.log(ФОТО); | |
var ph = ; | |
if ($(".section-head__img").attr("src").length > 0) { | |
ph += https://energon.ru + $(".section-head__img").attr("src") + | |
; | |
} | |
$(".spec-block__img, .models-charts__img").each(function(i,e){ | |
ph += https://energon.ru + $(e).attr("src") + | |
; | |
}); | |
console.log(ph); | |
// Хар-ки | |
var out = ; | |
$(".battery-design .catalog-list-row__title.catalog-list-row__name").each(function(i,e){ | |
if (i > 0) { | |
out += $.trim($(e).text().replace(/ | |
? | |
/g, " ").replace(/s+/g, )) + | + $.trim($(".battery-design .catalog-list-row__cell.catalog-list-row__title").eq(i).text().replace(/ |
? | |
/g, " ").replace(/s+/g, )) + | |
; | |
} | |
}); | |
$(".spec-list__item").each(function(i,e){ | |
out += $.trim($(".spec-item-b__title", $(e)).text().replace(/ | |
? | |
/g, " ").replace(/s+/g, )) + | + $.trim($(".spec-item-b__value", $(e)).text().replace(/ |
? | |
/g, " ").replace(/s+/g, )) + | |
; | |
}); | |
console.log(ХАР-КИ); | |
console.log(out); | |
// Доки | |
var docs = ; | |
console.log(ДОКИ); | |
console.log(https://energon.ru + $.trim($(".mainbtn.mainbtn--link").attr("href")) + | Документация); |