1 jQuery( document ).ready(function($) { 2 3 4 $(".wp-block-file").each(function( index ){ 5 var linkText = $(this).find("a:first").attr("href"); 6 7 if (linkText != "") { 8 var res = linkText.split("."); 9 //We have a file type 10 console.log(res); 11 console.log(res.length); 12 if (res.length > 0) { 13 resstr = res[res.length-1]; 14 15 $(this).addClass("file"); 16 17 if (resstr.substring(0, 3) == "pdf") { 18 $(this).addClass("pdf"); 19 } 20 21 if (resstr.substring(0, 3) == "doc") { 22 $(this).addClass("word"); 23 } 24 25 } 26 } 27 } 28 29 ) 30 31 $('.accreds-slider').slick({ 32 slidesToShow: 3, 33 slidesToScroll: 1, 34 autoplay: true, 35 autoplaySpeed: 10000, 36 arrows: false, 37 centerMode: true, 38 speed: 400, 39 dots: true, 40 responsive: [ 41 { 42 breakpoint: 1080, 43 settings: { 44 slidesToShow: 3, 45 slidesToScroll: 1, 46 } 47 }, 48 { 49 breakpoint: 640, 50 settings: { 51 slidesToShow: 2, 52 slidesToScroll: 1 53 } 54 }, 55 { 56 breakpoint: 480, 57 settings: { 58 slidesToShow: 1, 59 slidesToScroll: 1 60 } 61 } 62 ] 63 }); 64 65 $('.quote-slider').slick({ 66 slidesToShow: 1, 67 slidesToScroll: 1, 68 autoplay: true, 69 autoplaySpeed: 10000, 70 arrows: true, 71 speed: 400, 72 dots: true, 73 prevArrow: '.ir-prev', 74 nextArrow: '.ir-next', 75 }); 76 77 $('.image-slider').slick({ 78 slidesToShow: 1, 79 slidesToScroll: 1, 80 autoplay: true, 81 autoplaySpeed: 10000, 82 arrows: true, 83 speed: 400, 84 dots: true, 85 }); 86 87 smoothScroll.init(); 88 });
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.