Answer the question
In order to leave comments, you need to log in
Using Media in JavaScript?
Not strong in JS, you need to write media queries for this function in JS so that "step: 3" changes at a certain screen size to "step: 2" or "step: 1".
jQuery(function($){
$('ul#items').easyPaginate({
step:3
});
});
Answer the question
In order to leave comments, you need to log in
This is done using matchMedia in js.
Documentation = {
Russian: https://developer.mozilla.org/en/docs/Web/API/Wind... ,
English: https://www.w3schools.com/jsref/met_win_matchmedia.asp
}
Material: https: //loftblog.ru/material/izuchaem-matchmedia-a...
If you are a fan of jQuery and cannot live without it: https://habr.com/post/318972/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question