PageSourceSearch

https://leksttelecom.net/assets/js/main.js

js leksttelecom.net collected 2026-09-24 13:51:44 UTC 5,059 bytes, 175 lines download raw bytes

1
2!(function($) {
3  "use strict";
4
5  // Set the count down timer
6  if ($('.countdown').length) {
7    var count = $('.countdown').data('count');
8    var template = $('.countdown').html();
9    $('.countdown').countdown(count, function(event) {
10      $(this).html(event.strftime(template));
11    });
12  }
13
14  // Back to top button
15  $(window).scroll(function() {
16    if ($(this).scrollTop() > 100) {
17      $('.back-to-top').fadeIn('slow');
18    } else {
19      $('.back-to-top').fadeOut('slow');
20    }
21  });
22
23  $('.back-to-top').click(function() {
24    $('html, body').animate({
25      scrollTop: 0
26    }, 1500, 'easeInOutExpo');
27    return false;
28  });
29
30})(jQuery);
31
32// home slider
33$(document).ready(function(){
34
35  $('.site-slider').owlCarousel({
36      loop: true,
37      auto: true,
38      dots: false,
39      mouseDrag: true,
40      autoplay: true,
41      items: 1,
42      nav: true,
43      navText:["<div class='nav-btn prev-slide'><i class='material-icons'>arrow_backward</i></div>","<div class='nav-btn next-slide'><i class='material-icons'>arrow_forward</i></div>"],
44      slideTransition: 'linear',
45      autoplayTimeout: 10000,
46      autoplaySpeed: 3000,
47    onTranslated: function() {
48        var $slideHeading = $('.site-slider .owl-item.active .slider-text h3');
49        var $slidePara = $('.site-slider .owl-item.active .slider-text p');
50        var $slidebtn = $('.site-slider .owl-item.active .slider-text .banner-btns');
51  
52          $slideHeading.addClass('animate-in-fast').on('animationend', function(){
53          $slideHeading.removeClass('animate-in-fast').addClass('opacFull');
54        });
55  
56          $slidePara.addClass('animate-in-slow').on('animationend', function(){
57          $slidePara.removeClass('animate-in-slow').addClass('opacFull');
58        });
59  
60          $slidebtn.addClass('animate-in-slow').on('animationend', function(){
61          $slidebtn.removeClass('animate-in-slow').addClass('opacFull');
62        });
63      },
64    onChange: function(){
65      var $slideHeading = $('.site-slider .owl-item.active .slider-text h3');
66      var $slidePara = $('.site-slider .owl-item.active .slider-text p');
67      var $slidebtn = $('.site-slider .owl-item.active .slider-text .banner-btns');
68  
69      $slideHeading.removeClass('opacFull');
70      $slidePara.removeClass('opacFull');
71      $slidebtn.removeClass('opacFull');
72  
73    }
74      });
75  });
76  
77  $(window).on('load', function(){
78  var $slideHeading = $('.site-slider .owl-item.active .slider-text h3');
79  var $slidePara = $('.site-slider .owl-item.active .slider-text p');
80  var $slidebtn = $('.site-slider .owl-item.active .slider-text .banner-btns');
81  
82      $slideHeading.addClass('animate-in-fast').on('animationend', function(){
83      $slideHeading.removeClass('animate-in-fast').addClass('opacFull');
84      $slidebtn.removeClass('animate-in-fast').addClass('opacFull');
85  });
86  
87      $slidePara.addClass('animate-in-slow').on('animationend', function(){
88      $slidePara.removeClass('animate-in-slow').addClass('opacFull');
89      $slidebtn.removeClass('animate-in-slow').addClass('opacFull');
90  });
91  });
92
93//project slider
94$(document).ready(function(){
95
96  //Slick Carousel Controllers
97  $(".latest-project").slick({
98  centerMode: true,
99  centerPadding: "0px",
100  dots: true,
101  slidesToShow: 3,
102  infinite: true,
103  arrows: false,
104  lazyLoad: "ondemand",
105  responsive: [
106      {
107      breakpoint: 1024,
108      settings: {
109          slidesToShow: 2,
110          centerMode: false
111      }
112      },
113      {
114      breakpoint: 767,
115      settings: {
116          slidesToShow: 1
117      }
118      }
119  ]
120  });
121}); 
122
123// page loader
124$(window).load(function() {
125  $('#loading').hide();
126});
127
128// testimonial slider
129
130  $("#testimonial-slider").owlCarousel({
131      items:2,
132      itemsDesktop:[1000,2],
133      itemsDesktopSmall:[979,2],
134      itemsTablet:[768,2],
135      itemsMobile:[650,1],
136      pagination:true,
137      navigation:false,
138      slideSpeed:1000,
139      autoPlay:true
140  });
141
142  // brands slider
143
144  $('.brand-carousel').owlCarousel({
145    loop:true,
146    items:5,
147    margin: 10,
148    itemsDesktop:[1000,2],
149    itemsDesktopSmall:[979,2],
150    itemsTablet:[768,2],
151    itemsMobile:[650,1],
152    pagination:true,
153    navigation:false,
154    slideSpeed:1000,
155    autoPlay:true
156  });
157
158  // form validator
159  function ValidateEmail(email) {
160    // alert(1);
161		var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
162		return expr.test(email);
163	};
164	// $("#demo").live("click", function () {
165	$("#demo").click(function() {
166		if(!ValidateEmail($("#txtEmail").val())) {
167			$("#error").addClass("error-msg-display");
168		} else {
169			$("#error").removeClass("error-msg-display");
170			// $( "#success" ).addClass("success-msg-display");
171			$("#success").addClass("success-msg-display").delay(3000).queue(function() {
172				$(this).removeClass("success-msg-display").dequeue();
173			});
174		}
175	});

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.