1var sliderTimer; 2 3$(function () { 4 5 sliderTimer = setTimeout(function () { sliderMoveNext($(".jumbotron .slider")) }, 5000); 6 7 $(".carriers .owl-carousel").owlCarousel({ 8 nav: false, 9 autoplay: true, 10 autoplayTimeout: 3500, 11 autoplayHoverPause: false, 12 loop: true, 13 responsive: { 14 0: { 15 items: 1, 16 }, 17 500: { 18 items: 2, 19 }, 20 769: { 21 items: 3, 22 }, 23 1000: { 24 items: 4, 25 }, 26 1200: { 27 items: 5, 28 } 29 } 30 }); 31 32 33 $(".post").click(function (e) { 34 document.location.href = $(this).attr("href"); 35 }); 36 37 $(".post").hover( 38 function () { 39 $(this).css("opacity", ".4"); 40 }, 41 function () { 42 $(this).css("opacity", "1"); 43 }); 44 45 $(".post .subText a").hover( 46 function (e) { 47 $(this).closest(".post").css("opacity", "1"); 48 }, 49 function (e) { 50 $(this).closest(".post").css("opacity", ".4"); 51 }); 52 53 //+- Testimonials 54 var $testimonialsSlider = $('.slider.testimonials'); 55 if ($testimonialsSlider.find('.slide').length > 0) { 56 window.setInterval(function () { 57 SetNextTestimonial($testimonialsSlider); 58 }, 7500); 59 } else { 60 $testimonialsSlider.hide(); 61 } 62}); 63 64function sliderMoveNext(slider) { 65 if ($(slider).find(".slide").length > 1) { 66 var activeSlide = $(slider).find(".slide.active"); 67 $(".slide.past").removeClass("past"); 68 $(activeSlide).removeClass("active").addClass("past"); 69 if ($(activeSlide).next(".slide").length > 0) { 70 $(activeSlide).next(".slide").addClass("active"); 71 } else { 72 $(activeSlide).siblings(".slide").first().addClass("active"); 73 } 74 sliderTimer = setTimeout(function () { sliderMoveNext($(".jumbotron .slider")) }, 5000); 75 } else { 76 } 77} 78 79function SetNextTestimonial($slider) { 80 var $activeSlider = $slider.find(".slide.active"); 81 $activeSlider.removeClass('active'); 82 if ($activeSlider.next().length > 0) { 83 $activeSlider.next().addClass('active'); 84 } else { 85 $slider.find('.slide').first().addClass('active'); 86 } 87}
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.