See what our customers are saying
"); let groupIdx = 0; let itemPerSlide = 1; items.forEach((item, idx) => { let itemp = itemTpl.map(renderTemplate(item)).join(''); row.append(itemp); if ((idx + 1) % itemPerSlide === 0 || (idx + 1) === items.length) { let wrapper = jQuery('
'); wrapper.addClass((groupIdx === 0) ? 'active' : ''); jQuery(id + ' .carousel-inner').append(wrapper.append(row)); row = jQuery('
'); let indicator = jQuery('
'); indicator.addClass((groupIdx === 0) ? 'active' : ''); jQuery(id + ' .carousel-indicators').append(indicator) groupIdx++; } }); if (items.length <= itemPerSlide) { jQuery(id + ' .carousel-controls').hide(); } else { jQuery(id + ' .carousel-controls').show(); } } const prWhyItems = [ { "stars": "★ ★ ★ ★ ★", "quote": "“Quicken is very intuitive and is easy to link with online accounts. I love the integration and planning I am able to do that goes above using excel or other online companies.” ", "name": "— dnathan13 | Deluxe for Mac", }, { "stars": "★ ★ ★ ★ ★", "quote": "“Quicken stands out for its ease of use, amazing functionalities at an affordable price with great support!” ", "name": "— Daniel | Premier for Mac", }, ]; document.addEventListener("DOMContentLoaded", function (event) { const pressNewsTpl = jQuery('script[data-template="pr-why-carousel-tpl"]'); createCarousel('#crs-ha-why', pressNewsTpl, prWhyItems); // Prevent mobile scroll from triggering resize event var width = jQuery(window).width(), height = jQuery(window).height(); jQuery(window).resize(function () { if (jQuery(window).width() != width || jQuery(window).height() != height) { const pressNewsTpl = jQuery('script[data-template="pr-why-carousel-tpl"]'); jQuery('#crs-ha-why .carousel-inner').empty(); jQuery('#crs-ha-why .carousel-indicators').empty(); createCarousel('#crs-ha-why', pressNewsTpl, prWhyItems); } }); });