Good day! Please tell me how to check for initialization of the jPages plugin. It is necessary that in the mobile version it was called, and with the tablet, desktop, if it was called earlier, it was destroyed. If not called, it is called. Thanks a lot in advance!
$(window).bind("load resize", function() { var windowWidth = screen.width; if(windowWidth < 768){ $("div.catalog_holder").jPages({ containerID : "itemContainer", fallback : 500, perPage : 1, midRange : 4 }); }else if(...){ $("div.catalog_holder").jPages("destroy"); } });