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.
59 lines
2.0 KiB
59 lines
2.0 KiB
/*=========================================================================================
|
|
File Name: content-sidebar.js
|
|
Description: Invoices list datables configurations
|
|
----------------------------------------------------------------------------------------
|
|
Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
|
|
Version: 1.0
|
|
Author: PIXINVENT
|
|
Author URL: http://www.themeforest.net/user/pixinvent
|
|
==========================================================================================*/
|
|
|
|
$(document).ready(function() {
|
|
/***********************************
|
|
* js of small Slider *
|
|
************************************/
|
|
|
|
var sm_options = {
|
|
start: [30,70],
|
|
behaviour: 'drag',
|
|
connect: true,
|
|
range: {
|
|
'min': 20,
|
|
'max': 80
|
|
}
|
|
};
|
|
var smallSlider = document.getElementById('small-slider');
|
|
noUiSlider.create(smallSlider, sm_options);
|
|
|
|
|
|
/*************************************
|
|
* Default Score Rating *
|
|
**************************************/
|
|
$.fn.raty.defaults.path = '../../../app-assets/images/raty/';
|
|
|
|
$('#score-rating').raty({
|
|
score: 3
|
|
});
|
|
|
|
if($(".sidebar-sticky").length){
|
|
var headerNavbarHeight,
|
|
footerNavbarHeight;
|
|
|
|
// Header & Footer offset only for right & left sticky sidebar
|
|
if($("body").hasClass('content-right-sidebar') || $("body").hasClass('content-left-sidebar')){
|
|
headerNavbarHeight = $('.header-navbar').height();
|
|
footerNavbarHeight = $('footer.footer').height();
|
|
}
|
|
// Header & Footer offset with padding for detached right & left dsticky sidebar
|
|
else{
|
|
headerNavbarHeight = $('.header-navbar').height()+24;
|
|
footerNavbarHeight = $('footer.footer').height()+10;
|
|
}
|
|
|
|
$(".sidebar-sticky").sticky({
|
|
topSpacing: headerNavbarHeight,
|
|
bottomSpacing: footerNavbarHeight
|
|
});
|
|
|
|
}
|
|
}); |