1jQuery(function ($) { 2 initWinPageScroll(); 3 initTMCarouselNorm(); 4 initAos(); 5}); 6 7$('.initCarousel').slick({ 8 infinite: true, 9 // dots: true, 10 centerPadding: '60px', 11 slidesToScroll: 3, 12 slidesToShow: 3, 13 prevArrow: $('.carousel-control-prev'), 14 nextArrow: $('.carousel-control-next'), 15 responsive: [{ 16 breakpoint: 800, 17 settings: { 18 slidesToShow: 1, 19 slidesToScroll: 1 20 } 21 } 22 23 ] 24}); 25 26function initWinPageScroll() { 27 $(window).scroll(function () { 28 var scrollPos = $(document).scrollTop(); 29 if (scrollPos > 60) { 30 $('.navbar').addClass('animate'); 31 } else { 32 $('.navbar').removeClass('animate'); 33 } 34 }); 35} 36 37function initAos() { 38 setTimeout(function () { 39 AOS.init(); 40 }, 100); 41} 42 43function initTMCarouselNorm() { 44 setTimeout(function () { 45 carouselNormalization($('#bjTmCarouselMob .carousel-item')); 46 carouselNormalization($('#bjTmCarousel .carousel-item')); 47 }, 100); 48} 49 50function carouselNormalization(e) { 51 var items = e, 52 heights = [], 53 tallest; 54 55 if (items.length) { 56 function normalizeHeights() { 57 items.each(function () { 58 heights.push($(this).height()); 59 }); 60 tallest = Math.max.apply(null, heights); 61 items.each(function () { 62 $(this).css('min-height', tallest + 'px'); 63 }); 64 }; 65 normalizeHeights(); 66 67 $(window).on('resize orientationchange', function () { 68 tallest = 0, heights.length = 0; 69 items.each(function () { 70 $(this).css('min-height', '0'); 71 }); 72 normalizeHeights(); 73 }); 74 } 75} 76 77function getParameterByName(e, t) { 78 t = t ? "?" + t : window.location.search; 79 var a = new RegExp("[?&]" + e.replace(/\[/g, "\\[").replace(/\]/g, "\\]") + "(?:=([^&#]*))?(?:[&#]|$)").exec(t); 80 return a ? (a[1] ? decodeURIComponent(a[1].replace(/\+/g, " ")) : "") : null; 81}
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.