/*=========== Custom Function JS Made by Deepak Dubey ==============*/
jQuery(document).ready(function($) {
	 $("#currentYear").text( (new Date).getFullYear() );
	   $(".college_slide").owlCarousel({
                    items: 3, margin:20, slideBy:2,
					loop: true,dots:false,autoplay:true,nav:true,
					smartSpeed:1200,autoplayTimeout: 4000, 
					autoplayHoverPause: true,responsiveClass:true,
					//animateOut: 'animate__zoomOut',
					//animateIn: 'animate__zoomIn',
					navText: [ '<span class="bi bi-chevron-compact-left"></span>', '<span class="bi bi-chevron-compact-right"></span>' ],
					responsive:{
        0:{
            items:1, slideBy:1,
        },
        768:{
            items:2, 
        },
        1000:{
            items:4, 
        }
    }	});
	 
Fancybox.bind("[data-fancybox]", {
  // Your custom options
});	 

 
 
/* Font Sizer 
$("p, a, h3, h5, h6, li, span, td, th").jfontsize({
 btnMinusClasseId: "#jfontsize-m",
 btnDefaultClasseId: "#jfontsize-d",
 btnPlusClasseId: "#jfontsize-p",
});  */

/* Tooltip Script */
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
  return new bootstrap.Tooltip(tooltipTriggerEl)
})
 
 

/*---stickey menu---*/
$(window).on('scroll',function() {    
  var scroll = $(window).scrollTop();
 if (scroll < 100) {
 $(".sticky-header").removeClass("sticky");
 }else{
 $(".sticky-header").addClass("sticky");
  }
}); 
 

// Nav submenu show hide on mobile //
jQuery(".sub-menu, .mega-menu").parent('li').addClass('has-child');
			jQuery("<div class='bi bi-chevron-right submenu-toogle'></div>").insertAfter(".has-child > a");

			jQuery('.has-child a+.submenu-toogle').on('click',function(ev) {

				jQuery(this).parent().siblings(".has-child ").children(".sub-menu, .mega-menu").slideUp(500, function(){
					jQuery(this).parent().removeClass('nav-active');
				});

				jQuery(this).next(jQuery('.sub-menu, .mega-menu ')).slideToggle(500, function(){
					jQuery(this).parent().toggleClass('nav-active');
				});

				ev.stopPropagation();
			});
	// Mobile side drawer function //
			jQuery('#mobile-side-drawer').on('click', function () { 
				jQuery('.mobile-sider-drawer-menu').toggleClass('active');
			}); 


 
		});			
					
   