${title}
${text}
"); 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 pressNewsItems = [ { "img": "https://www.quicken.com/sites/default/files/net-worth2.png", "title": "See all your financial accounts together", "text": "Connect your banking, loans, investments, 401(k), IRA, assets, and more. With all your accounts together, you can get a consolidated view of your finances, all in one place.", }, { "img": "https://www.quicken.com/sites/default/files/one-step-update.png", "title": "Keep your accounts up to date automatically", "text": "Update all your accounts at once with just one click. Quicken automatically categorizes each transaction for you—and lets you edit them however you like.", }, { "img": "https://www.quicken.com/sites/default/files/track-and-organize2.png", "title": "Make sure you’re spending where you want to", "text": "Let Quicken create a fully customizable 12-month budget based on your actual income and expenses. Track all your bills together, see what’s coming up, and never pay late fees again.", }, { "img": "https://www.quicken.com/sites/default/files/savings-goals.png", "title": "Manage and grow your savings", "text": "Create savings goals & track your progress over time. You can even include your savings goals in your budget.", }, { "img": "https://www.quicken.com/sites/default/files/spending-report.png", "title": "Customize anything and everything", "text": "Want to see your finances your way? Create fully customizable views & reports and even add your own tags to track anything you want to, across all your categories and accounts.", }, ]; document.addEventListener("DOMContentLoaded", function (event) { const pressNewsTpl = jQuery('script[data-template="dx-carousel-tpl"]'); createCarousel('#crs-ha-prf', pressNewsTpl, pressNewsItems); // 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="dx-carousel-tpl"]'); jQuery('#crs-ha-prf .carousel-inner').empty(); jQuery('#crs-ha-prf .carousel-indicators').empty(); createCarousel('#crs-ha-prf', pressNewsTpl, pressNewsItems); } }); });