1jQuery(document).ready(function ($) { 2 3 const $titanioAccordion = $('#titanio-accordion'); 4 5 if ($titanioAccordion.length) { 6 7 const $accordionContent = $titanioAccordion.find('.titanio-accordion-content'); 8 9 $titanioAccordion.on('click', '.titanio-accordion-header', function () { 10 $accordionContent.slideUp(); 11 12 13 let content = $(this).closest('.titanio-accordion-container') 14 .toggleClass('accordion-close') 15 .find('.titanio-accordion-content'); 16 17 18 if (content.is(':visible')) { 19 content.slideUp(); 20 } else { 21 content.slideDown(); 22 } 23 }); 24 } 25 26 27 28 29 // TIMELINE 30 const $sliderFor = $('.slider-for'); 31 const $sliderNav = $('.slider-nav'); 32 33 if ($sliderFor.length) { 34 let slickSliderFor = $('.slider-for').slick({ 35 infinite: false, 36 slidesToShow: 1, 37 slidesToScroll: 1, 38 arrows: false, 39 }); 40 41 let slickSliderNav = $('.slider-nav').slick({ 42 infinite: false, 43 slidesToShow: 10, 44 slidesToScroll: 1, 45 asNavFor: '.slider-for', 46 dots: false, 47 centerMode: false, 48 focusOnSelect: true, 49 arrows: false 50 }); 51 52 53 slickSliderFor.on('beforeChange', function (event, slick, currentSlide, nextSlide) { 54 let index = nextSlide; 55 56 $sliderNav.find('.slick-slide').removeClass('slick-current'); 57 $sliderNav.find('.slick-slide').eq(index).addClass('slick-current'); 58 }); 59 60 61 $('.timeline-slider-buttons').on('click', '.slider-button-prev', function () { 62 slickSliderFor.slick('slickPrev'); 63 }); 64 65 $('.timeline-slider-buttons').on('click', '.slider-button-next', function () { 66 slickSliderFor.slick('slickNext'); 67 }); 68 } 69 70 71 const slickTemplatesCarousel = $('.templates-carousel-widget').slick({ 72 infinite: true, 73 slidesToShow: 1, 74 slidesToScroll: 1, 75 adaptiveHeight: true, 76 vertical: true, 77 dots: true, 78 arrows: true, 79 appendArrows: $('.slider-controls'), 80 appendDots: $('.slider-controls'), 81 responsive: [ 82 { 83 breakpoint: 768, 84 settings: { 85 vertical: false 86 } 87 } 88 ] 89 }); 90 91 92 93 94 95 96 // --------------------------------------------------------------------------- 97 98 const $slickCarouselTabs = $('#slick-carousel-tabs'); 99 100 setTimeout(() => { 101 if ($slickCarouselTabs.length) { 102 const initCarouselTabs = () => { 103 if ($(window).width() > 768) { 104 $slickCarouselTabs.slick('unslick'); 105 } else { 106 $slickCarouselTabs.slick({ 107 infinite: true, 108 speed: 300, 109 slidesToShow: 1, 110 slidesToScroll: 1, 111 adaptiveHeight: true, 112 arrows: false, 113 dots: false, 114 }); 115 } 116 } 117 118 $(window).on('resize', function () { 119 initCarouselTabs(); 120 }); 121 122 initCarouselTabs(); 123 124 125 $('#custom-prev-button').on('click', function () { 126 $slickCarouselTabs.slick('slickPrev'); 127 }); 128 129 $('#custom-next-button').on('click', function () { 130 $slickCarouselTabs.slick('slickNext'); 131 }); 132 } 133 }, 2000); 134 135 136 137 138 function goToSlide(index) { 139 const $dots = $('.premium-vscroll-dot-item'); 140 const $target = $dots.filter(`[data-index="${index}"]`); 141 142 if ($target.length) { 143 $target.find('.premium-vscroll-nav-link').trigger('click'); 144 } 145 } 146 147 setTimeout(() => { 148 $('.premium-vscroll-dots').on('click', '#slide-prev', function () { 149 const $active = $('.premium-vscroll-dot-item.active'); 150 const currentIndex = parseInt($active.attr('data-index')); 151 const prevIndex = currentIndex > 0 ? currentIndex - 1 : currentIndex; 152 153 154 if (currentIndex == 0) { 155 goToSlide($('.premium-vscroll-dot-item').length - 1); 156 } else { 157 goToSlide(prevIndex); 158 } 159 }); 160 161 $('.premium-vscroll-dots').on('click', '#slide-next', function () { 162 const $active = $('.premium-vscroll-dot-item.active'); 163 const currentIndex = parseInt($active.attr('data-index')); 164 const maxIndex = $('.premium-vscroll-dot-item').length - 1; 165 const nextIndex = currentIndex < maxIndex ? currentIndex + 1 : currentIndex; 166 167 if (currentIndex == maxIndex) { 168 goToSlide(0); 169 } else { 170 goToSlide(nextIndex); 171 } 172 }); 173 }, 1000); 174 175 $('.premium-vscroll-dots').prepend('<button id="slide-prev" style="position: absolute; box-shadow: none; border: 0; top: -22px; height: 19px;
175 z-index:99; cursor:pointer"></button>'); 176 $('.premium-vscroll-dots').append('<button id="slide-next" style="position: absolute; box-shadow: none; border: 0; bottom: -22px; height: 19px; z-index:99; cursor:pointer"></button>'); 177 178 179 180});
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.