PageSourceSearch

https://tyagipublicschool.com/themes/3/js/custom.js

js tyagipublicschool.com collected 2026-09-29 02:21:34 UTC 6,903 bytes, 323 lines download raw bytes

1$(document).ready(function() {
2  "use strict";
3
4  // Sicky Menubar
5  $(window).on("scroll", function() {
6    var scroll = $(window).scrollTop();
7    if (scroll < 150) {
8      $(".menu-sticky").removeClass("sticky");
9    } else {
10      $(".menu-sticky").addClass("sticky");
11    }
12  });
13
14  // WOW Js
15  new WOW().init();
16
17  // Full Screen Search
18    $('.search-trigger').on('click', function (e) {
19        e.preventDefault();
20        $('.search-wrap').animate({ opacity: 'toggle' }, 500);
21        $('.nav-search, #search-close').addClass("open");
22    });
23    $('.search-close').on('click', function (e) {
24        e.preventDefault();
25        $('.search-wrap').animate({ opacity: 'toggle' }, 500);
26        $('.nav-search, #search-close').removeClass("open");
27    });
28    function closeSearch() {
29        $('.search-wrap').fadeOut(200);
30        $('.nav-search, #search-close').removeClass("open");
31    }
32    $(document.body).on('click', function (e) {
33        closeSearch();
34    });
35    $(".search-trigger, .main-search-input").on('click', function (e) {
36        e.stopPropagation();
37    });
38
39    // Shopping Cart
40	$('a.cart-bar').on('click', function(e){
41	    e.preventDefault();
42	    $('.cart-overlay').addClass('visible');
43	    $('.cart-sidebar').addClass('open');
44	});
45	$('.close-cart, .cart-overlay').on('click', function(e){
46	    e.preventDefault();
47	    $('.cart-overlay').removeClass('visible');
48	    $('.cart-sidebar').removeClass('open');
49	});
50
51  // Mobile Menu
52  jQuery("nav#dropdown").meanmenu({
53    meanScreenWidth: "767"
54  });
55
56  // Date Picker
57  $("#datetimepicker").datetimepicker();
58
59  // Owl Slider
60  $(".slider-wrapper").owlCarousel({
61    autoplay: true,
62    autoplayTimeout: 5000,
63    animateOut: "fadeOut",
64    animateIn: "fadeIn",
65    autoplayHoverPause: true,
66    smartSpeed: 700,
67    loop: true,
68    responsiveClass: true,
69    items: 1,
70    nav: true,
71    navText: [
72      '<img src="images/left-arrow.png" alt="" />',
73      '<img src="images/right-arrow.png" alt="" />'
74    ],
75    margin: 0,
76    dots: false,
77    responsive: {
78      0: {
79        items: 1
80      },
81      576: {
82        items: 1
83      },
84      768: {
85        items: 1
86      },
87      992: {
88        items: 1
89      }
90    }
91  });
92
93  $(".slider-wrapper").on("translate.owl.carousel", function() {
94    $(".slider-item .slider-heading")
95      .removeClass("wow fadeInDown")
96      .hide();
97    $(".slider-item .slider-para")
98      .removeClass("wow fadeInUp")
99      .hide();
100    $(".slider-item .slider-btn")
101      .removeClass("wow fadeInUp")
102      .hide();
103  });
104
105  $(".slider-wrapper").on("translated.owl.carousel", function() {
106    $(".owl-item.active .slider-item .slider-heading")
107      .addClass("animated fadeInDown")
108      .show();
109    $(".owl-item.active .slider-item .slider-para")
110      .addClass("animated fadeInUp")
111      .show();
112    $(".owl-item.active .slider-item .slider-btn")
113      .addClass("animated fadeInUp")
114      .show();
115  });
116
117  $(".owl-doctor").owlCarousel({
118    autoplay: true,
119    autoplayTimeout: 3000,
120    autoplayHoverPause: true,
121    smartSpeed: 700,
122    loop: true,
123    responsiveClass: true,
124    items: 4,
125    nav: false,
126    margin: 30,
127    dots: false,
128    responsive: {
129      0: {
130        items: 1
131      },
132      576: {
133        items: 2
134      },
135      768: {
136        items: 3
137      },
138      992: {
139        items: 4
140      }
141    }
142  });
143
144  $(".owl-testimonial").owlCarousel({
145    autoplay: true,
146    autoplayTimeout: 3000,
147    autoplayHoverPause: true,
148    smartSpeed: 700,
149    loop: true,
150    responsiveClass: true,
151    items: 2,
152    nav: false,
153    margin: 30,
154    dots: true,
155    responsive: {
156      0: {
157        items: 1
158      },
159      576: {
160        items: 1
161      },
162      768: {
163        items: 1
164      },
165      992: {
166        items: 2
167      }
168    }
169  });
170  $(".partners-slider").owlCarousel({
171    autoplay: true,
172    autoplayTimeout: 3000,
173    autoplayHoverPause: true,
174    smartSpeed: 700,
175    loop: true,
176    responsiveClass: true,
177    items: 4,
178    nav: true,
179	navText: ['<i class="fa fa-arrow-left"></i>','<i class="fa fa-arrow-right"></i>'],
180    margin: 30,
181	responsive: {
182                0 : {
183                    items: 2
184                },
185
186                550 : {
187                    items: 3
188                },
189
190                992 : {
191                    items: 4
192                },
193
194                1200 : {
195                    items: 5
196                }
197            }
198  });
199
200  $(".m-slider").owlCarousel({
201    autoplay: true,
202    autoplayTimeout: 3000,
203    autoplayHoverPause: true,
204    smartSpeed: 700,
205    loop: true,
206    responsiveClass: true,
207    items: 1,
208    nav: false,
209    margin: 0,
210    dots: false
211  });
212
213  $(".topbar-slider").owlCarousel({
214    animateOut: 'slideOutDown',
215    animateIn: 'flipInX',
216    autoplay: true,
217    autoplayTimeout: 3000,
218    autoplayHoverPause: false,
219    smartSpeed: 700,
220    loop: true,
221    responsiveClass: true,
222    items: 1,
223    nav: false,
224    margin: 0,
225    dots: false
226  });
227
228  // Isotope Gallery
229  $(window).on("load", function() {
230    $(".gallery-items").isotope({
231      itemSelector: ".grid-item",
232      percentPosition: true,
233      masonry: {
234        columnWidth: ".grid-item"
235      }
236    });
237    $("ul.gallery-filter > li").on("click", function() {
238      $("ul.gallery-filter > li").removeClass("active");
239      $(this).addClass("active");
240      var selector = $(this).attr("data-filter");
241      $(".gallery-items").isotope({
242        filter: selector,
243        animationOptions: {
244          duration: 750,
245          easing: "linear",
246          queue: true
247        }
248      });
249      return false;
250    });
251
252  });
253  
254  //$(document).ready(function(e) {
255    //Preloader
256    $("#preloader").fadeOut("500");
257  //});
258
259  // Magnific-popup
260  $(".grid-item").magnificPopup({
261    delegate: ".fc-icon a",
262    type: "image",
263    gallery: {
264      // options for gallery
265      enabled: true
266    },
267    removalDelay: 300,
268    mainClass: "mfp-fade"
269  });
270
271  $('#video-btn').magnificPopup({
272		type: 'iframe',
273		iframe: {
274			markup: '<div class="mfp-iframe-scaler">' +
275					'<div class="mfp-close"></div>' +
276					'<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' +
277				  '</div>',
278			patterns: {
279				youtube: {
280					index: 'youtube.com/',
281					id: 'v=',
282					src: 'http://www.youtube.com/embed/%id%?autoplay=1'
283				}
284			},
285			srcAction: 'iframe_src'
286		}
287	});
288
289  // Counter Up
290  $(".counter").counterUp({
291    delay: 10,
292    time: 2000
293  });
294
295  // Smooth Scroll
296  smoothScroll.init({
297    speed: 700
298  });
299
300  // Syotimer
301  $("#timer-wrapper").syotimer({
302    year: 2019,
303    month: 6,
304    day: 1,
305    hour: 7,
306    minute: 30
307  });
308
309  // Back To Top
310  $(window).scroll(function() {
311    if ($(this).scrollTop() > 500) {
312      $(".back-to-top a").fadeIn();
313    } else {
314      $(".back-to-top a").fadeOut();
315    }
316  });
317});
318
319function showcart()
320{
321	$('.cart-overlay').addClass('visible');
322	$('.cart-sidebar').addClass('open');
323}

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.