PageSourceSearch

https://orsj.org/wp-content/themes/education-pro/assets/js/custom.js?ver=7.0.6

js orsj.org collected 2026-10-01 11:34:15 UTC 9,135 bytes, 344 lines download raw bytes

1/**
2 * Exoplanet Custom JS
3 *
4 * @package Exoplanet
5 *
6 * Distributed under the MIT license - http://opensource.org/licenses/MIT
7 */
8
9jQuery(function($){
10  "use strict";
11    jQuery('.menu > ul').superfish({
12      delay:       500,                            
13      animation:   {opacity:'show',height:'show'},  
14      speed:       'fast'                         
15    });
16
17    /* Top Search */
18    jQuery('.search-box span i').click(function(){
19        jQuery(".serach_outer").toggle();
20    });
21});
22
23/* Mobile responsive Menu*/
24
25function openNav() {
26  document.getElementById("mySidenav").style.width = "250px";
27}
28
29function closeNav() {
30  document.getElementById("mySidenav").style.width = "0";
31}
32
33jQuery(function() {
34  //----- OPEN
35  jQuery('[data-popup-open]').on('click', function(e) {
36    var targeted_popup_class = jQuery(this).attr('data-popup-open');
37    jQuery('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
38
39    e.preventDefault();
40  });
41
42  //----- CLOSE
43  jQuery('[data-popup-close]').on('click', function(e) {
44    var targeted_popup_class = jQuery(this).attr('data-popup-close');
45    jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
46
47    e.preventDefault();
48  });
49});
50
51jQuery('document').ready(function(){
52
53    var owl = jQuery('.slider_bottom_box .owl-carousel');
54      owl.owlCarousel({
55      margin:20,
56      nav: false,
57      autoplay : true,
58      lazyLoad: true,
59      autoplayTimeout: 3000,
60      loop: false,
61      dots:false,
62      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
63      responsive: {
64        0: {
65          items: 2
66        },
67        600: {
68          items: 2
69        },
70        1000: {
71          items: 4
72        }
73      },
74      autoplayHoverPause : true,
75      mouseDrag: true
76    });
77    var owl = jQuery('#courses .owl-carousel');
78      owl.owlCarousel({
79      margin: 10,
80      nav:false,
81      autoplay : true,
82      lazyLoad: true,
83      autoplayTimeout: 3000,
84      loop: false,
85      dots: false,
86      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
87      responsive: {
88        0: {
89          items: 1
90        },
91        576: {
92          items: 2
93        },
94        1000: {
95          items: 4
96        }
97      },
98      autoplayHoverPause : true,
99      mouseDrag: true
100    });
101    var owl = jQuery('#testimonial .owl-carousel');
102      owl.owlCarousel({
103      margin: 10,
104      nav:false,
105      autoplay : false,
106      lazyLoad: true,
107      autoplayTimeout: 3000,
108      loop: false,
109      dots: true,
110      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
111      responsive: {
112        0: {
113          items: 1
114        },
115        600: {
116          items: 1
117        },
118        1000: {
119          items: 1
120        }
121      },
122      autoplayHoverPause : true,
123      mouseDrag: true
124    });
125    var owl = jQuery('#how-it-work .owl-carousel');
126      owl.owlCarousel({
127      margin: 25,
128      nav: false,
129      autoplay : true,
130      lazyLoad: true,
131      autoplayTimeout: 8000,
132      loop: false,
133      dots: false,
134      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
135      responsive: {
136        0: {
137          items: 2
138        },
139        600: {
140          items: 3
141        },
142        1000: {
143          items: 4
144        }
145      },
146      autoplayHoverPause : true,
147      mouseDrag: true
148    }); 
149
150    var owl = jQuery('#latest_news .owl-carousel');
151      owl.owlCarousel({
152      margin:30,
153      nav: false,
154      autoplay : true,
155      lazyLoad: true,
156      autoplayTimeout: 3000,
157      loop: false,
158      dots:false,
159      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
160      responsive: {
161        0: {
162          items: 1
163        },
164        576: {
165          items: 2
166        },
167        1000: {
168          items: 3
169        }
170      },
171      autoplayHoverPause : true,
172      mouseDrag: true
173    });
174
175    var owl = jQuery('#teacher .owl-carousel');
176      owl.owlCarousel({
177      margin:20,
178      nav: false,
179      autoplay : true,
180      lazyLoad: true,
181      autoplayTimeout: 3000,
182      loop: false,
183      dots:false,
184      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
185      responsive: {
186        0: {
187          items: 1
188        },
189        576: {
190          items: 2
191        },
192        1000: {
193          items: 4
194        }
195      },
196      autoplayHoverPause : true,
197      mouseDrag: true
198    });
199
200    var owl = jQuery('#event .owl-carousel');
201      owl.owlCarousel({
202      margin:20,
203      nav: false,
204      autoplay : true,
205      lazyLoad: true,
206      autoplayTimeout: 3000,
207      loop: false,
208      dots:false,
209      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
210      responsive: {
211        0: {
212          items: 1
213        },
214        600: {
215          items: 1
216        },
217        1000: {
218          items: 2
219        }
220      },
221      autoplayHoverPause : true,
222      mouseDrag: true
223    });
224    var owl = jQuery('#featured .owl-carousel');
225      owl.owlCarousel({
226      margin:0,
227      nav: false,
228      autoplay : true,
229      lazyLoad: true,
230      autoplayTimeout: 3000,
231      loop: false,
232      dots:false,
233      navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
234      responsive: {
235        0: {
236          items: 1
237        },
238        576: {
239          items: 2
240        },
241        1000: {
242          items: 3
243        }
244      },
245      autoplayHoverPause : true,
246      mouseDrag: true
247    });
248});
249
250jQuery('document').ready(function(){
251
252  jQuery('.count').each(function () {
253      jQuery(this).prop('Counter',0).animate({
254          Counter: jQuery(this).text()
255      }, {
256          duration: 8000,
257          easing: 'swing',
258          step: function (now) {
259             jQuery(this).text(Math.ceil(now));
260          }
261      });
262  });
263
264  var footer1=jQuery('#contact-details').outerHeight();
265  jQuery('.google-map iframe').height(footer1);
266
267  // ------------ Scroll Top ---------------
268
269  jQuery(window).scroll(function() {
270    if (jQuery(this).scrollTop() >= 50) {        // If page is scrolled more than 50px
271      jQuery('#return-to-top').fadeIn(200);    // Fade in the arrow
272    } else {
273      jQuery('#return-to-top').fadeOut(200);   // Else fade out the arrow
274    }
275  });
276  jQuery('#return-to-top').click(function() {      // When arrow is clicked
277    jQuery('body,html').animate({
278      scrollTop : 0                       // Scroll to top of body
279    }, 2000);
280  });
281  var mydate =jQuery('.dealsdate').val();
282  jQuery(".countdown").each(function(){
283      testing(jQuery(this),mydate);
284  });
285});
286
287// ------------ Sticky Navbar -------------------
288
289window.onscroll = function() { myScrollNav() };
290
291var navbar = document.getElementById("header");
292var sticky = navbar.offsetTop;
293function myScrollNav() {
294  if (window.pageYOffset > sticky) {
295    //alert(window.pageYOffset);
296    navbar.classList.add("sticky");
297    navbar.classList.add("stickynavbar");
298  } else {
299    navbar.classList.remove("sticky");
300    navbar.classList.remove("stickynavbar");
301  }
302}
303
304jQuery(function() {
305  jQuery("#addClass").click(function () {
306    jQuery('#qnimate').addClass('popup-box-on');
307      });
308    jQuery("#removeClass").click(function () {
309      jQuery('#qnimate').removeClass('popup-box-on');
310    });
311})
312
313
314// Weekly Deal Counter
315function testing($timer,mydate){
316    // Set the date we're counting down to
317    var countDownDate = new Date(mydate).getTime();
318
319    // Update the count down every 1 second
320    var x = setInterval(function() {
321
322        // Get todays date and time
323        var now = new Date().getTime();
324        
325        // Find the distance between now an the count down date
326        var distance = countDownDate - now;
327        
328        // Time calculations for days, hours, minutes and seconds
329        var days = Math.floor(distance / (1000 * 60 * 60 * 24));
330        var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
331        var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
332        var seconds = Math.floor((distance % (1000 * 60)) / 1000);
333        
334        // Output the result in an element with id="timer"
335
336        $timer.html( "<div class='numbers1'>" + days + "<br><span class='nofont'>DAYS</span>" + "</div>" + "   " +"<div class='numbers2'>" + hours + "<br><span class='nofont'>HOURS</span>" + "</div>" + "   " + "<div class='numbers3'>" + minutes + "<br><span class='nofont'>MIN</span>" + "</div>" + "   " + "<div class='numbers4'>" + seconds + "<br><span class='nofont'>SEC</spn" + "</div>");
337        
338        // If the count down is over, write some text 
339        if (distance < 0) {
340            clearInterval(x);
341            $timer.html("Timer Up -EVENT EXPIRED");
342        }
343    }, 1000);
344}

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.