1$(function () { 2 const $btn = $('.show__menu') 3 const $sidebar = $('.sidebar') 4 const $blur = $('.blur__asside') 5 const $closeBtn = $('.sidebar__close') 6 7 $btn.on('click', function () { 8 $sidebar.toggleClass('active') 9 $blur.toggleClass('active') 10 }) 11 12 function closeSidebar() { 13 $sidebar.removeClass('active') 14 $blur.removeClass('active') 15 } 16 17 $blur.on('click', closeSidebar) 18 $closeBtn.on('click', closeSidebar) 19 20 $('.partners-carousel').slick({ 21 variableWidth: false, 22 arrows: true, 23 dots: false, 24 speed: 400, 25 prevArrow: $('.carousel-prev'), 26 nextArrow: $('.carousel-next'), 27 infinite: false, 28 slidesToShow: 12, 29 slidesToScroll: 12, 30 responsive: [ 31 { 32 breakpoint: 1200, 33 settings: { 34 slidesToShow: 8, 35 slidesToScroll: 8 36 } 37 }, 38 { 39 breakpoint: 992, 40 settings: { 41 slidesToShow: 6, 42 slidesToScroll: 6 43 } 44 }, 45 { 46 breakpoint: 768, 47 settings: { 48 slidesToShow: 3, 49 slidesToScroll: 3 50 } 51 } 52 ] 53 }) 54 55 $('.our-partners-carousel').slick({ 56 variableWidth: false, 57 arrows: true, 58 dots: false, 59 speed: 400, 60 prevArrow: $('.carousel-prev'), 61 nextArrow: $('.carousel-next'), 62 infinite: false, 63 slidesToShow: 8, 64 slidesToScroll: 8, 65 responsive: [ 66 { 67 breakpoint: 992, 68 settings: { 69 slidesToShow: 6, 70 slidesToScroll: 6 71 } 72 }, 73 { 74 breakpoint: 768, 75 settings: { 76 slidesToShow: 3, 77 slidesToScroll: 3 78 } 79 } 80 ] 81 }) 82 83 var $btnTop = $(".back-to-top"); 84 var showAfter = 300; 85 86 function toggleBtn() { 87 if ($(window).scrollTop() > showAfter) { 88 $btnTop.addClass("is-visible"); 89 } else { 90 $btnTop.removeClass("is-visible"); 91 } 92 } 93 94 toggleBtn(); 95 $(window).on("scroll", toggleBtn); 96 97 $btnTop.on("click", function () { 98 $("html, body").stop(true).animate({ scrollTop: 0 }, 400); 99 }); 100 101}) 102 103$(window).on('load', function () { 104 $('.fe-preloader').fadeOut(300, function () { 105 $(this).remove() 106 }) 107}) 108 109$(document).on("click", '.toc a[href^="#"]', function (e) { 110 e.preventDefault() 111 112 const target = $($(this).attr("href")) 113 if (!target.length) return 114 115 $("html, body").animate( 116 { scrollTop: target.offset().top - 80 }, 117 500 118 ) 119})
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.