PageSourceSearch

https://www.tatacapital.com/etc.clientlibs/tata-capital-web/compon…/tcl-customer-testimonials-ef-clientlib.js

js tatacapital.com collected 2026-09-24 09:38:13 UTC 2,307 bytes, 95 lines download raw bytes

1function sliderFunc(sliderParent, sliderProp = sliderProperties) {
2  if (sliderParent.length) {
3    if (sliderParent.hasClass("slick-initialized")) {
4      sliderParent.slick("unslick");
5    } else {
6      sliderParent.not(".slick-initialized").slick(sliderProp);
7    }
8  }
9}
10
11/*customer-say slider*/
12var CustomerSaySlider = {
13  dots:  $('.customer-row').length > 3,
14  infinite: true,
15  speed: 300,
16  slidesToShow: 3,
17  slidesToScroll: 3,
18  arrows: true,
19  responsive: [
20    {
21      breakpoint: 992,
22      settings: {
23        slidesToShow: 2,
24        slidesToScroll: 1,
25      },
26    },
27    {
28      breakpoint: 768,
29      settings: {
30        slidesToShow: 2,
31      },
32    },
33    {
34      breakpoint: 768,
35      settings: {
36        slidesToShow: 1,
37        arrows: false,
38        centerMode: true,
39        centerPadding: "30px",
40        infinite: true,
41      },
42    },
43    {
44      breakpoint: 576,
45      settings: {
46        slidesToShow: 1,
47        centerMode: true,
48        centerPadding: "30px",
49        infinite: true,
50      },
51    },
52  ],
53};
54/*customer-say slider*/
55
56sliderFunc($(".jsCustomerSaySlider"), CustomerSaySlider);
57
58// const myTimeout = setTimeout(simpleBar, 2000);
59/*simple scroll bar*/
60/*function simpleBar(){
61if ($(".simple-bar").length > 0) {
62  $(".simple-bar").each(function (e) {
63    new SimpleBar($(".simple-bar")[e]);
64  });
65}
66}*/
67/*simple scroll bar*/
68$(".list-star").each(function (e, index) {
69  var ratinghtml = "";
70  var rating = index.dataset.rating;
71  for (var i = 0; i < rating; i++) {
72    var elem = document.createElement("img");
73    elem.setAttribute(
74      "src",
75      "/content/dam/tata-capital-web/assets/img/star-fill.svg",
76    );
77    elem.setAttribute("alt", "star");
78    elem.setAttribute("height", "14");
79    elem.setAttribute("width", "14");
80    $(".list-star")[e].append(elem);
81  }
82});
83$(document).ready(function () {
84    $('[data-cta="Customer Testimonial"]').click(function(e){
85        if(e.currentTarget.text){
86            var ctaText = e.currentTarget.text.trim();
87        }
88        var componentName = e.currentTarget.dataset.cta;
89        if(e.currentTarget.parentElement.textContent){
90        var ctaTitle = "Customer Speak Read All";
91        }
92        var productCode = productCodeId;
93        ctaInteraction(ctaText,componentName,ctaTitle,productCode)
94    })
95});

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.