.selector {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
dots: false,
fade: true,
asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
slidesToShow: 3,
slidesToScroll: 1,
asNavFor: '.slider-for',
arrows: true,
dots: false,
centerMode: true,
focusOnSelect: true
});
<?
$hh = file_get_contents('ссылка');
$document = phpQuery::newDocument($hh);
$hb = $document->find('div.b-pb-publication-body')->removeAttr('class');
foreach ($hb as $text) {
$pqtext = pq($text);
$pqtext->find('p')->removeAttr('class');
$pqtext->find("div.b-pb-publication-body__background:contains('больше')")->remove();
$pqtext->find('div')->removeAttr('class');
$pqtext->find('div > figure')->removeAttr('class');
$pqtext->find('div > figure > img')->removeAttr('class');
};
$detail_text_res = $hb->html(); // $detail_text_res - текст статьи
print_r($detail_text_res);
?>