showcar-ui
Version:
Showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.
15 lines (12 loc) • 477 B
JavaScript
// This needs to be build in your webpack:
(function () {
var paginationElement = document.querySelector('.sc-pagination'),
itemsPerPage = 20,
activePage = 1,
totalCount = 700,
urlTemplate = 'http://www.autoscout24.com/listWithPagination?page={page}&size={size}',
unlimited = true;
if (paginationElement) {
new Pager(paginationElement, itemsPerPage, activePage, totalCount, urlTemplate, unlimited);
}
})();