The administration panel and web client for ParEdu
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.

43 lines
1.0 KiB

4 years ago
$(function () {
initCounters();
initCharts();
});
//Widgets count plugin
function initCounters() {
$('.count-to').countTo();
}
//Charts
function initCharts() {
//Chart Bar
$('.chart.chart-bar').sparkline(undefined, {
type: 'bar',
barColor: '#fff',
negBarColor: '#fff',
barWidth: '4px',
height: '34px'
});
//Chart Pie
$('.chart.chart-pie').sparkline(undefined, {
type: 'pie',
height: '50px',
sliceColors: ['rgba(255,255,255,0.70)', 'rgba(255,255,255,0.85)', 'rgba(255,255,255,0.95)', 'rgba(255,255,255,1)']
});
//Chart Line
$('.chart.chart-line').sparkline(undefined, {
type: 'line',
width: '60px',
height: '45px',
lineColor: '#fff',
lineWidth: 1.3,
fillColor: 'rgba(0,0,0,0)',
spotColor: 'rgba(255,255,255,0.40)',
maxSpotColor: 'rgba(255,255,255,0.40)',
minSpotColor: 'rgba(255,255,255,0.40)',
spotRadius: 3,
highlightSpotColor: '#fff'
});
}