PageSourceSearch

https://www.tataelxsi.com/FrontEnd/js/about.js?v=b959232c0693841af9498a50fea1233a

js tataelxsi.com collected 2026-10-02 02:51:56 UTC 3,515 bytes, 126 lines download raw bytes

1$(function(){
2    $('.countup').counterUp({
3		 delay: 3,
4		 time: 1200
5         });
6//Insights
7    $(".hminstl > li > a").click(function(e) {
8                e.preventDefault();
9                $(this).parent().siblings().removeClass("active");
10                $(this).parent().addClass("active");
11                var id = $(this).attr('id');
12                var type = $(this).attr('rel');
13                var action = $(this).attr('href');
14                var data = {'id':id,'type':type};
15	$.ajaxSetup({headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}});
16	$.post(action,data,function(data){
17		$('#loadajax').html(data);
18        if (window.initNewsInsightsCarousel) {
19            window.initNewsInsightsCarousel();
20        }
21
22      });
23            });         
24            
25    function initAboutBelowFoldCarousels() {
26        $('.svcpartnr1.owl-carousel').owlCarousel({
27        loop: false,
28        nav: true,
29        dots: false,
30        smartSpeed: 700,
31        responsive: {
32            0: {
33                items: 2
34            },
35            600: {
36                items: 3
37            },
38            1000: {
39                items: 4
40            },
41            1360: {
42                items: 5
43            },
44            1900: {
45                items: 6
46            }
47        }
48    });
49    }
50
51    window.runWhenIdle(initAboutBelowFoldCarousels, 2500);
52      //hanger
53    var lastId,
54    topMenu = $("#top-menu"),
55    topMenuHeight = topMenu.outerHeight()+116,
56    // All list items
57    menuItems = topMenu.find("a"),
58    // Anchors corresponding to menu items
59    scrollItems = menuItems.map(function(){
60      var item = $($(this).attr("href"));
61      if (item.length) { return item; }
62    });
63
64// Bind to scroll
65$(window).scroll(function(){
66   // Get container scroll position
67   var fromTop = $(this).scrollTop()+topMenuHeight;
68   
69   // Get id of current scroll item
70   var cur = scrollItems.map(function(){
71     if ($(this).offset().top < fromTop)
72       return this;
73   });
74   // Get the id of the current element
75   cur = cur[cur.length-1];
76   var id = cur && cur.length ? cur[0].id : "";
77   
78   if (lastId !== id) {
79       lastId = id;
80       // Set/remove active class
81       menuItems
82         .parent().removeClass("active")
83         .end().filter("[href='#"+id+"']").parent().addClass("active");
84   }                   
85});
86    
87    $(document).ready(function () {
88//    $(document).on("scroll", onScroll);
89    
90    //smoothscroll
91    $('a[href^="#"]').on('click', function (e) {
92        e.preventDefault();
93//        $(document).off("scroll");
94        
95        $('a').each(function () {
96            $(this).removeClass('active');
97        })
98        $(this).addClass('active');
99      
100        var target = this.hash,
101            menu = target;
102        $target = $(target);
103        $(function () {
104            window.location.hash = target;
105//            $(document).on("scroll", onScroll);
106        });
107    });
108});
109    if ($(window).width() < 1050) {
110        //hanger
111    $('#amtes').on('click', function (e) {
112        e.preventDefault();
113        $(this).toggleClass('active');
114         $('.shnger',$(this).parent()).slideToggle();
115        });
116    
117    $('.shnger > li > a').on('click', function (e) {
118        e.preventDefault();
119        $(this).parent().siblings().removeClass('active');
120        $(this).parent().addClass('active');
121        $('#amtes').text($(this).text());
122        $('#amtes').removeClass('active');
123         $('.shnger').slideUp();
124        });
125    }
126});

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.