PageSourceSearch

https://tieconchandigarh.com/assets/js/main.js

js tieconchandigarh.com collected 2026-10-04 09:57:31 UTC 9,949 bytes, 295 lines download raw bytes

1(function($){
2	"use strict";
3	jQuery(document).on('ready', function () {
4		
5		// Mean Menu
6		jQuery('.mean-menu').meanmenu({
7			meanScreenWidth: "991"
8		});
9
10		// Header Sticky
11		$(window).on('scroll',function() {
12            if ($(this).scrollTop() > 120){  
13                $('.elkevent-nav').addClass("is-sticky");
14            }
15            else{
16                $('.elkevent-nav').removeClass("is-sticky");
17            }
18        });
19        
20        // Home Slides
21		$('.home-slides').owlCarousel({
22			loop: true,
23			nav: true,
24			dots: false,
25			autoplayHoverPause: true,
26            autoplay: true,
27            items: 1,
28            navText: [
29                "<i class='icofont-rounded-left'></i>",
30                "<i class='icofont-rounded-right'></i>"
31            ],
32        });
33        $(".home-slides").on("translate.owl.carousel", function(){
34            $(".home-slides p").removeClass("animated fadeInDown").css("opacity", "0");
35            $(".home-slides h1").removeClass("animated fadeInUp").css("opacity", "0");
36            $(".home-slides ul").removeClass("animated zoomIn").css("opacity", "0");
37            $(".home-slides .btn, .home-slides .video-btn").removeClass("animated fadeInDown").css("opacity", "0");
38            $(".home-slides .banner-image img").removeClass("animated fadeInUp").css("opacity", "0");
39        });
40        $(".home-slides").on("translated.owl.carousel", function(){
41            $(".home-slides p").addClass("animated fadeInDown").css("opacity", "1");
42            $(".home-slides h1").addClass("animated fadeInUp").css("opacity", "1");
43            $(".home-slides ul").addClass("animated zoomIn").css("opacity", "1");
44            $(".home-slides .btn, .home-slides .video-btn").addClass("animated fadeInDown").css("opacity", "1");
45            $(".home-slides .banner-image img").addClass("animated fadeInUp").css("opacity", "1");
46        });
47
48		// Popup Video
49		$('.popup-youtube').magnificPopup({
50			disableOn: 320,
51			type: 'iframe',
52			mainClass: 'mfp-fade',
53			removalDelay: 160,
54			preloader: false,
55			fixedContentPos: false
56		});
57
58		// Count Time 
59        function makeTimer() {
60            var endTime = new Date("March 18, 2021 00:00:00 GMT+0530");			
61            var endTime = (Date.parse(endTime)) / 1000;
62            var now = new Date();
63            var now = (Date.parse(now) / 1000);
64            var timeLeft = endTime - now;
65            var days = Math.floor(timeLeft / 86400); 
66            var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
67            var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
68            var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
69            if (hours < "10") { hours = "0" + hours; }
70            if (minutes < "10") { minutes = "0" + minutes; }
71            if (seconds < "10") { seconds = "0" + seconds; }
72            $("#days").html(days + "<span>Days</span>");
73            $("#hours").html(hours + "<span>Hours</span>");
74            $("#minutes").html(minutes + "<span>Minutes</span>");
75            $("#seconds").html(seconds + "<span>Seconds</span>");		
76        }
77        setInterval(function() { makeTimer(); }, 1000);
78
79        // Tabs
80        (function ($) {
81            $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current');
82            $('.tab ul.tabs li a').on('click', function (g) {
83                var tab = $(this).closest('.tab'), 
84                index = $(this).closest('li').index();
85                tab.find('ul.tabs > li').removeClass('current');
86                $(this).closest('li').addClass('current');
87                tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideUp();
88                tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown();
89                g.preventDefault();
90            });
91        })(jQuery);
92        
93        // Accordion
94        $(function() {
95            $('.accordion').find('.accordion-title').on('click', function(){
96                // Adds Active Class
97                $(this).toggleClass('active');
98                // Expand or Collapse This Panel
99                $(this).next().slideToggle('fast');
100                // Hide The Other Panels
101                $('.accordion-content').not($(this).next()).slideUp('fast');
102                // Removes Active Class From Other Titles
103                $('.accordion-title').not($(this)).removeClass('active');		
104            });
105        });
106
107        // Tooltip JS
108        $(function () {
109            $('[data-toggle="tooltip"]').tooltip()
110        });
111
112        // Platinum Partner Slides
113		$('.platinum-partner-slides').owlCarousel({
114			loop: true,
115			nav: false,
116			dots: false,
117			autoplayHoverPause: true,
118			autoplay: true,
119            navText: [
120                "<i class='icofont-rounded-left'></i>",
121                "<i class='icofont-rounded-right'></i>"
122            ],
123			responsive: {
124                0: {
125                    items:2,
126                },
127                768: {
128                    items:3,
129                },
130                1200: {
131                    items:5,
132				}
133            }
134        });
135        
136        // Gold Partner Slides
137		$('.gold-partner-slides').owlCarousel({
138			loop: true,
139			nav: false,
140			dots: false,
141			autoplayHoverPause: true,
142			autoplay: true,
143            navText: [
144                "<i class='icofont-rounded-left'></i>",
145                "<i class='icofont-rounded-right'></i>"
146            ],
147			responsive:{
148                0: {
149                    items:2,
150                },
151                768: {
152                    items:3,
153                },
154                1200: {
155                    items:5,
156				}
157            }
158        });
159        
160        // Blog Slides
161		$('.blog-slides').owlCarousel({
162			loop: true,
163			nav: false,
164			dots: true,
165			autoplayHoverPause: true,
166			autoplay: true,
167            navText: [
168                "<i class='icofont-rounded-left'></i>",
169                "<i class='icofont-rounded-right'></i>"
170            ],
171			responsive:{
172                0: {
173                    items:1,
174                },
175                768: {
176                    items:3,
177                },
178                1200: {
179                    items:6,
180				}
181            }
182        });
183        
184        // Schedule Slides
185		$('.schedule-slides').owlCarousel({
186			loop: true,
187			nav: true,
188			dots: false,
189			autoplayHoverPause: true,
190            autoplay: true,
191            items: 1,
192            navText: [
193                "<i class='icofont-rounded-left'></i>",
194                "<i class='icofont-rounded-right'></i>"
195            ],
196        });
197        
198        // Check distance to top and display back-to-top.
199        jQuery( window ).on('scroll', function() {
200            if ( $( this ).scrollTop() > 800 ) {
201                $( '.back-to-top' ).addClass( 'show-back-to-top' );
202            } else {
203                $( '.back-to-top' ).removeClass( 'show-back-to-top' );
204            }
205        });
206        $('.back-to-top').on('click', function() {
207            $("html, body").animate({ scrollTop: "0" },  500);
208        });
209
210        // Subscribe form
211		$(".newsletter-form").validator().on("submit", function (event) {
212			if (event.isDefaultPrevented()) {
213			// handle the invalid form...
214				formErrorSub();
215				submitMSGSub(false, "Please enter your email correctly.");
216			} else {
217				// everything looks good!
218				event.preventDefault();
219			}
220		});
221		function callbackFunction (resp) {
222			if (resp.result === "success") {
223				formSuccessSub();
224			}
225			else {
226				formErrorSub();
227			}
228		}
229		function formSuccessSub(){
230			$(".newsletter-form")[0].reset();
231			submitMSGSub(true, "Thank you for subscribing!");
232			setTimeout(function() {
233				$("#validator-newsletter").addClass('hide');
234			}, 4000)
235		}
236		function formErrorSub(){
237			$(".newsletter-form").addClass("animated shake");
238			setTimeout(function() {
239				$(".newsletter-form").removeClass("animated shake");
240			}, 1000)
241		}
242		function submitMSGSub(valid, msg){
243			if(valid){
244				var msgClasses = "validation-success";
245			} else {
246				var msgClasses = "validation-danger";
247			}
248			$("#validator-newsletter").removeClass().addClass(msgClasses).text(msg);
249		}
250		// AJAX MailChimp
251		$(".newsletter-form").ajaxChimp({
252			url: "https://envytheme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&amp;id=42d6d188d9", // Your url MailChimp
253			callback: callbackFunction
254		});
255
256	});
257
258	// Lax JS
259	window.onload = function() {
260		lax.setup() // init
261		const updateLax = () => {
262			lax.update(window.scrollY)
263			window.requestAnimationFrame(updateLax)
264		}
265		window.requestAnimationFrame(updateLax)
266    }
267
268    // Odometer JS
269    $('.odometer').appear(function(e) {
270        var odo = $(".odometer");
271        odo.each(function() {
272            var countNumber = $(this).attr("data-count");
273            $(this).html(countNumber);
274        });
275    });
276
277	// WOW JS
278	$(window).on ('load', function (){
279        if ($(".wow").length) { 
280            var wow = new WOW({
281            boxClass:     'wow',      // animated element css class (default is wow)
282            animateClass: 'animated', // animation css class (default is animated)
283            offset:       20,          // distance to the element when triggering the animation (default is 0)
284            mobile:       true,       // trigger animations on mobile devices (default is true)
285            live:         true,       // act on asynchronously loaded content (default is true)
286          });
287          wow.init();
288        }
289	});
290	
291	// Preloader Area
292	jQuery(window).on('load', function() {
293	    $('.preloader').fadeOut();
294	});
295}(jQuery));

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.