export function createPagination(num) { $('#navPagination').css("display", "flex"); $("#navPagination").html(""); var navbar = document.createElement('nav'); var ulNav = document.createElement('ul'); ulNav.className = "pagination"; var liNavP = document.createElement('li'); //liNavP.className = "page-item"; liNavP.id = "prev"; var aPrev = document.createElement('a'); aPrev.className = "page-link"; aPrev.innerHTML = "«"; liNavP.append(aPrev); ulNav.append(liNavP); for (var i=1; i