JavaScript
2
Вклад в тег
if (window.matchMedia("(min-width: 400px)").matches) {
/* the viewport is at least 400 pixels wide */
} else {
/* the viewport is less than 400 pixels wide */
}
$paginator = $cat_page->find('.menunew > a');
$pages= [];
foreach ($paginator as $page) {
$pq = pq($page);
$pages[] = $pq->attr('href');
}