You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

2 years ago
/* Theme Name: Jobya - Responsive Landing Page Template
Author: Themesdesign
Version: 1.0.0
File Description: Main JS file of the template
*/
(function ($) {
'use strict';
// Loader
$(window).on('load', function() {
$('#status').fadeOut();
$('#preloader').delay(350).fadeOut('slow');
$('body').delay(350).css({
'overflow': 'visible'
});
});
// Selectize
$('#select-category, #select-lang,#select-country').selectize({
create: true,
sortField: {
field: 'text',
direction: 'asc'
},
dropdownParent: 'body'
});
// Checkbox all select
$("#customCheckAll").click(function() {
$(".all-select").prop('checked', $(this).prop('checked'));
});
// Nice Select
$('.nice-select').niceSelect();
// Back to top
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.back-to-top').fadeIn();
} else {
$('.back-to-top').fadeOut();
}
});
$('.back-to-top').click(function(){
$("html, body").animate({ scrollTop: 0 }, 3000);
return false;
});
})(jQuery)