diff --git a/pages/wordpress-pages/projects-test.html b/pages/wordpress-pages/projects-test.html index 64260ef2..3d051dd4 100644 --- a/pages/wordpress-pages/projects-test.html +++ b/pages/wordpress-pages/projects-test.html @@ -127,11 +127,11 @@
If you’re interested in working with ODI, we’d love to hear from you.
- + \ No newline at end of file diff --git a/src/js/cagov-paginator.js b/src/js/cagov-paginator.js index e4ec8dcf..c9e09936 100644 --- a/src/js/cagov-paginator.js +++ b/src/js/cagov-paginator.js @@ -15,6 +15,7 @@ class CAGovPaginator extends HTMLElement { console.log("number blocks",this.pagedBlocks.length); this.nbrPages = Math.ceil(this.pagedBlocks.length / this.perPage); this.currentPage = 1; // !!! pull from URL + this.boundPaginationHandler = this.paginationHandler.bind(this); console.log("nbrPages",this.nbrPages); if(document.readyState === 'complete') { @@ -31,10 +32,47 @@ class CAGovPaginator extends HTMLElement { // this.pagedContainer = document.querySelector(this.pagedContainerSelector); // this.pagedBlocks = this.pagedContainer.querySelectorAll(this.pagedBlockSelector); // console.log("number blocks",this.pagedBlocks.length); + console.log("drawPaginator"); var markup = `