Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/talentorbit.codeskitter.site/public/js/
Upload File :
Current File : /home/users/unlimited/www/talentorbit.codeskitter.site/public/js/script.js

"use strict";



/* ==== Jquery Functions ==== */
(function($) {
	

	$('[data-toggle="offcanvas"]').on("click", function () {
        $(".navbar-collapse").toggleClass("show");
    });

	const header = document.getElementById('siteheader');
	const scrollThreshold = 500;

	window.onscroll = () => window.pageYOffset > scrollThreshold ? header.classList.add('issticky') : header.classList.remove('issticky');


	/* ==== Revolution Slider ==== */
	if($('.tp-banner').length > 0){
		$('.tp-banner').show().revolution({
			delay:6000,
	        startheight:400,
	        startwidth: 670,
	        hideThumbs: 1000,
	        navigationType: 'none',
	        touchenabled: 'on',
	        onHoverStop: 'on',
	        navOffsetHorizontal: 0,
	        navOffsetVertical: 0,
	        dottedOverlay: 'none',
	        fullWidth: 'on'
		});
	}
	
	
	/* ==== Testimonials Slider ==== */	
  	$(".testimonialsList").owlCarousel({      
	   loop:true,
		margin:30,
		nav:true,
		responsiveClass:true,
		responsive:{
			0:{
				items:1,
				nav:true
			},
			768:{
				items:1,
				nav:true
			},
			1170:{
				items:3,
				nav:true,
				loop:true
			}
		}
  	});
  	
  	/* ==== ftjobslist Slider ==== */	
  	$(".ftjobslist").owlCarousel({      
	   loop:false,
		margin:30,
		nav:true,
		responsiveClass:true,
		responsive:{
			0:{
				items:1,
				nav:true
			},
			768:{
				items:2,
				nav:true
			},
			1170:{
				items:4,
				nav:true,
				loop:true
			}
		}
  	});
  	
  	
  	
  	/* ==== Seekers Slider ==== */	
  	$(".homeseekerlist").owlCarousel({      
	   loop:false,
		margin:15,
		nav:true,
		responsiveClass:true,
		responsive:{
			0:{
				items:1,
				nav:true
			},
			768:{
				items:3,
				nav:true
			},
			1170:{
				items:4,
				nav:true
			}
		}
  	});


/* ==== Seekers Slider ==== */	
$(".categorylisting").owlCarousel({      
	loop:false,
	 margin:15,
	 nav:true,
	 responsiveClass:true,
	 responsive:{
		 0:{
			 items:2,
			 nav:true
		 },
		 768:{
			 items:3,
			 nav:true
		 },
		 1170:{
			 items:7,
			 nav:true
		 }
	 }
   });

  	
  	
$(".custom-prev").click(function() {
$(".homeseekerlist").trigger('prev.owl.carousel');
});

$(".custom-next").click(function() {
$(".homeseekerlist").trigger('next.owl.carousel');
});

	
	/* ==== employerList Slider ==== */	
function employerListOwlSlider(){
    var owl = $('.employerList'),
        dataGroupItem = owl.data('group-item'),
        owlItem = owl.find(".item-child").length;

    var groupNumber = Math.ceil(owlItem / dataGroupItem);
    for(var i = 0; i < groupNumber; i++) {
        owl.append('<div class="item-' + (i + 1) + '"></div>');

        var item = owl.children('.item-child');
        var flag = 0;
        item.each(function(){
            $(this).appendTo('.employerList .item-' + (i + 1));
            if(flag == (dataGroupItem - 1)) {
                return false;
            }
            flag++;
        });
    }

    owl.owlCarousel({
        loop: false,
        margin: 15,
        responsiveClass: true,
        responsive: {
            0: {
                items: 1
            },
            767: {
                items: 2
            },
            1170: {
                items: 5
            }
        }
    });
}

$(".custom-prev-employerList").click(function() {
    $(".employerList").trigger('prev.owl.carousel');
});

$(".custom-next-employerList").click(function() {
    $(".employerList").trigger('next.owl.carousel');
});




$(".custom-prev-categorylisting").click(function() {
    $(".categorylisting").trigger('prev.owl.carousel');
});

$(".custom-next-categorylisting").click(function() {
    $(".categorylisting").trigger('next.owl.carousel');
});

// Initialize both sliders
employerListOwlSlider();
//categoryListingOwlSlider();

	
	
	//Top search bar open/close
    if (!$('.srchbox').hasClass("searchStayOpen")) {
        $("#jbsearch").click(function() {
            $(".srchbox").addClass("openSearch");
            $(".additional_fields").slideDown();
        });


        $(".srchbox").click(function(e) {
            e.stopPropagation();
        });
    }

	

	window.onload = () => {
        $('#show_alert').modal('show');
    }
	
})(jQuery);


$(document).ready(function() {
	$('.openmbnav').click(function() {
		let $nav = $('#usermbnav');
		
		if ($nav.hasClass('show')) {
			$nav.removeClass('show'); // Slide out
			setTimeout(() => {
				$nav.css('display', 'none'); // Hide after animation ends
			}, 500); // Match this to the duration of the CSS animation (0.5s)
		} else {
			$nav.css('display', 'block'); // Display it
			setTimeout(() => {
				$nav.addClass('show'); // Slide in
			}, 10); // Small delay to allow display:block to take effect before animating
		}
	});
});


$(document).ready(function() {
    // Open the filter jobs menu
    $('.filterjobsnav').click(function() {
        let $nav = $('#filterjobs');
        
        if ($nav.hasClass('show')) {
            $nav.removeClass('show'); // Slide out
            setTimeout(() => {
                $nav.css('display', 'none'); // Hide after the animation completes
            }, 500);
        } else {
            $nav.css('display', 'block'); // Display the menu
            setTimeout(() => {
                $nav.addClass('show'); // Slide in
            }, 10);
        }
    });

    // Close the filter jobs menu using the close button
    $('.close-filterjobs').click(function() {
        let $nav = $('#filterjobs');
        $nav.removeClass('show');
        setTimeout(() => {
            $nav.css('display', 'none');
        }, 500);
    });
    
    // Close the filter jobs menu when clicking outside
    $(document).click(function(event) {
        if (!$(event.target).closest('#filterjobs, .filterjobsnav').length) {
            let $nav = $('#filterjobs');
            if ($nav.hasClass('show')) {
                $nav.removeClass('show');
                setTimeout(() => {
                    $nav.css('display', 'none');
                }, 500);
            }
        }
    });


	
	


});