1$('.banner .slider--gallery').each(function() { 2 $(this).closest('.banner__body').css('max-width', '100%'); 3}); 4 5$('.banner .layout').each(function() { 6 const itemCount = $(this).find('.layout__item').length; 7 $(this).addClass('layout--with-' + itemCount + '-items'); 8}); 9 10$('.banner--intro').each(function() { 11 const bannerInterval = window.setInterval(() => { 12 // Bugfix: DSOL-619 13 if ($('.js-flyout-toggle.is-active').length) { 14 return; 15 } 16 17 const $itemActive = $(this).find('.js-banner-intro-theme-setTheme.active'); 18 if ($itemActive.parent().next('li').length) { 19 $itemActive.parent().next('li').find('.js-banner-intro-theme-setTheme').trigger('click', {computerInteracted: true}); 20 } else { 21 $(this).find('.js-banner-intro-theme-setTheme:eq(0)').trigger('click', {computerInteracted: true}); 22 } 23 }, 5000); 24 25 $(this).find('.js-banner-intro-theme-setTheme').each(function() { 26 $(this).on('click', (e, custom) => { 27 if (custom === undefined || custom.computerInteracted === undefined) { 28 clearInterval(bannerInterval); 29 } 30 }); 31 }); 32}); 33 34$('.slick').each(function() { 35 let direction = 'forward'; 36 37 const slickInterval = window.setInterval(() => { 38 // Bugfix: DSOL-619 39 if ($('.js-flyout-toggle.is-active').length) { 40 return; 41 } 42 43 const $next = $(this).find('button.slick-next'); 44 const $prev = $(this).find('button.slick-prev'); 45 46 if ($next.hasClass('slick-disabled')) { 47 direction = 'backward'; 48 } 49 50 if ($prev.hasClass('slick-disabled')) { 51 direction = 'forward'; 52 } 53 54 if (direction === 'forward') { 55 $next.trigger('click', {computerInteracted: true}); 56 } else { 57 $prev.trigger('click', {computerInteracted: true}); 58 } 59 60 $next.on('click', (e, custom) => { 61 if (custom === undefined || custom.computerInteracted === undefined) { 62 clearInterval(slickInterval); 63 } 64 }); 65 66 $prev.on('click', (e, custom) => { 67 if (custom === undefined || custom.computerInteracted === undefined) { 68 clearInterval(slickInterval); 69 } 70 }); 71 }, 5000); 72});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.