/******/ (function() { // webpackBootstrap var __webpack_exports__ = {}; /*!*******************************************!*\ !*** ./src/js/blocks/hero-banner/view.js ***! \*******************************************/ (function ($) { 'use strict'; // Hero Banner/Slider $(document).ready(function () { jQuery('.hero-banner .hero-banner__slider').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: true, autoplay: true, autoplaySpeed: 5000, infinite: true, speed: 1000 }); }); })(jQuery); /******/ })() ; //# sourceMappingURL=view.js.map; /******/ (function() { // webpackBootstrap var __webpack_exports__ = {}; /*!******************************************!*\ !*** ./src/js/blocks/highlights/view.js ***! \******************************************/ /** * File history. * * Handles history blocks. */ (function ($) { 'use strict'; $('.highlights-list__box').each(function (index) { if ($(this).find('.highlights-list__box-cnt').find('a').length > 0) { const buttonText = $(this).find('.highlights-list__box-cnt').find('a').text(); const title = $(this).find('.h5').text(); const h5Text = $(this).find('h5').text(); // only 5 words of description const description = $(this).find('.highlights-list__box-cnt').find('p').text().split(' ').slice(0, 5).join(' '); if (title == '' && h5Text == '') { $(this).find('.highlights-list__box-cnt').find('a').attr('aria-label', `${buttonText}: ${description}...`); } else { $(this).find('.highlights-list__box-cnt').find('a').attr('aria-label', `${buttonText}: ${title || h5Text}: ${description}`); } } }); })(jQuery); /******/ })() ; //# sourceMappingURL=view.js.map; /******/ (function() { // webpackBootstrap var __webpack_exports__ = {}; /*!*********************************************!*\ !*** ./src/js/blocks/contact-cards/view.js ***! \*********************************************/ /** * File history. * * Handles history blocks. */ (function ($) { 'use strict'; $('.contact-cards__item').each(function () { const buttonText = $(this).find('.btn-main.contact-cards__btn-one').find('a').text(); const title = $(this).find('.contact-cards__title').text(); $(this).find('.btn-main.contact-cards__btn-one').find('a').attr('aria-label', `${buttonText}: ${title}`); }); })(jQuery); /******/ })() ; //# sourceMappingURL=view.js.map; /******/ (function() { // webpackBootstrap var __webpack_exports__ = {}; /*!****************************************************!*\ !*** ./src/js/blocks/logo-list-with-title/view.js ***! \****************************************************/ /** * File view.js. * * Handles logo list blocks. */ (function ($) { "use strict"; $(document).ready(function () { checkLastRowItems(); $(window).on("resize", function () { checkLastRowItems(); }); }); function checkLastRowItems() { $(".logo-list-with-title").each(function () { let totalItems = $(this).find(".logo-list-with-title__row .logo-list-with-title__item").length; if (0 < totalItems) { let windowWidth = $(window).outerWidth(); let itemsPerRow = 2; if (991 < windowWidth) { itemsPerRow = 4; } else if (576 < windowWidth) { itemsPerRow = 3; } $(this).find(".logo-list-with-title__row .logo-list-with-title__item").removeClass("last-row-item"); // Calculate the number of rows and items in the last row let itemsInLastRow = totalItems % itemsPerRow || itemsPerRow; // Calculate the starting index of the last row items let startIndex = totalItems - itemsInLastRow + 1; // Add a class to the last row items for (let i = startIndex; i <= totalItems; i++) { $(this).find(".logo-list-with-title__row .logo-list-with-title__item:nth-child(" + i + ")").addClass("last-row-item"); } } }); } })(jQuery); /******/ })() ; //# sourceMappingURL=view.js.map;