1$(document).ready(function(){ 2 3 var tIndexCS = gsap.timeline(); 4 tIndexCS 5 .to(".index-testimonial-text-1", {opacity: 1, display: "inline-block", duration: 0.5}) 6 .to(".index-testimonial-title-inner-container-1", {opacity: 1, display: "flex", duration: 0.5},"<") 7 .to(".testimonial-prev-arrow", {color: "#d4d4d4"},"<") 8 9 testimonialCounter = 1; 10 11 $(".testimonial-next-arrow").on("click", function(){ 12 testimonialCounter += 1; 13 if (testimonialCounter > 4) { 14 testimonialCounter = 4; 15 tIndexCS 16 .to(".index-testimonial-text-4", {opacity: 1, display: "inline-block"}) 17 .to(".index-testimonial-title-inner-container-4", {opacity: 1, display: "flex"},"<") 18 .to(".testimonial-next-arrow", {color: "#d4d4d4"},"<") 19 } else if (testimonialCounter === 4) { 20 tIndexCS 21 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 22 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 23 .to(".index-testimonial-text-4", {opacity: 1, display: "inline-block", duration: 1}) 24 .to(".index-testimonial-title-inner-container-4", {opacity: 1, display: "flex", duration: 1},"<") 25 .to(".testimonial-next-arrow", {color: "#d4d4d4"},"<") 26 } else if (testimonialCounter === 3) { 27 tIndexCS 28 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 29 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 30 .to(".index-testimonial-text-3", {opacity: 1, display: "inline-block", duration: 1}) 31 .to(".index-testimonial-title-inner-container-3", {opacity: 1, display: "flex", duration: 1},"<") 32 } else if (testimonialCounter === 2) { 33 tIndexCS 34 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 35 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 36 .to(".index-testimonial-text-2", {opacity: 1, display: "inline-block", duration: 1}) 37 .to(".index-testimonial-title-inner-container-2", {opacity: 1, display: "flex", duration: 1},"<") 38 .to(".testimonial-prev-arrow", {color: "#323232"},"<") 39 } 40 }); 41 42 $(".testimonial-prev-arrow").on("click", function(){ 43 testimonialCounter -= 1; 44 if (testimonialCounter < 1) { 45 testimonialCounter = 1; 46 tIndexCS 47 .to(".index-testimonial-text-1", {opacity: 1, display: "inline-block"}) 48 .to(".index-testimonial-title-inner-container-1", {opacity: 1, display: "flex"},"<") 49 .to(".testimonial-prev-arrow", {color: "#d4d4d4"},"<") 50 } else if (testimonialCounter === 1) { 51 tIndexCS 52 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 53 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 54 .to(".index-testimonial-text-1", {opacity: 1, display: "inline-block", duration: 1}) 55 .to(".index-testimonial-title-inner-container-1", {opacity: 1, display: "flex", duration: 1},"<") 56 .to(".testimonial-prev-arrow", {color: "#d4d4d4"},"<") 57 } else if (testimonialCounter === 2) { 58 tIndexCS 59 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 60 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 61 .to(".index-testimonial-text-2", {opacity: 1, display: "inline-block", duration: 1}) 62 .to(".index-testimonial-title-inner-container-2", {opacity: 1, display: "flex", duration: 1},"<") 63 } else if (testimonialCounter === 3) { 64 tIndexCS 65 .to(".index-testimonial-text", {opacity: 0, display: "none"}) 66 .to(".index-testimonial-title-inner-container", {opacity: 0, display: "none"},"<") 67 .to(".index-testimonial-text-3", {opacity: 1, display: "inline-block", duration: 1}) 68 .to(".index-testimonial-title-inner-container-3", {opacity: 1, display: "flex", duration: 1},"<") 69 .to(".testimonial-next-arrow", {color: "#323232"},"<") 70 } 71 }); 72});
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.