js/GridColumnCarousel.js
//and then how many navigation dots are necessary and injects them.
and then how many navigation dots are necessary and injects them.
and then how many navigation dots are necessary and injects them .
function initializeDots() {
      while (pageIndicatorsContainerElem.firstChild) {
          pageIndicatorsContainerElem.firstChild.removeEventListener('click', onIndicatorClick);
          pageIndicatorsContainerElem.removeChild(pageIndicatorsContainerElem.firstChild);
      }
      for (var i = 0; i < pagesCount; i++) {
        var indicator = document.createElement('li');
        indicator.classList.add('grid-column-carousel__page-indicator');
        if(i === 0) {
          indicator.classList.add('active');
        }
        indicator.addEventListener('click', onIndicatorClick);
        pageIndicatorsContainerElem.appendChild(indicator);
      }
    }
function initializeDots ( ) { while ( pageIndicatorsContainerElem . firstChild ) { pageIndicatorsContainerElem . firstChild . removeEventListener ( 'click' , onIndicatorClick ) ; pageIndicatorsContainerElem . removeChild ( pageIndicatorsContainerElem . firstChild ) ; } for ( var i = 0 ; i < pagesCount ; i ++ ) { var indicator = document . createElement ( 'li' ) ; indicator . classList . add ( 'grid-column-carousel__page-indicator' ) ; if ( i === 0 ) { indicator . classList . add ( 'active' ) ; } indicator . addEventListener ( 'click' , onIndicatorClick ) ; pageIndicatorsContainerElem . appendChild ( indicator ) ; } }
and then how many navigation dots are necessary and injects them.
and then how many navigation dots are necessary and injects them .
//remove all items from the list add add a new list of items