js/GridColumnCarousel.js
//Gets the size of the reference element and sets it as the size of the col items
Gets the size of the reference element and sets it as the size of the col items
Gets the size of the reference element and sets it as the size of the col items
function initializeSize() {
      colItemWidth = refElem.getBoundingClientRect().width;
      for(var i = 0; i < colItems.length; i++) {
        colItems[i].style.width = colItemWidth+'px';
      }
      slideWidth = elem.getBoundingClientRect().width;
      pagesCount = Math.ceil(colItems.length / (slideWidth / colItemWidth));
    }
function initializeSize ( ) { colItemWidth = refElem . getBoundingClientRect ( ) . width ; for ( var i = 0 ; i < colItems . length ; i ++ ) { colItems [ i ] . style . width = colItemWidth + 'px' ; } slideWidth = elem . getBoundingClientRect ( ) . width ; pagesCount = Math . ceil ( colItems . length / ( slideWidth / colItemWidth ) ) ; }
Gets the size of the reference element and sets it as the size of the col items
Gets the size of the reference element and sets it as the size of the col items
//set the width on all the col items //Get the width of a slide //Calculate how many pages are necessary