14
$('.connectedSortable').sortable({
15
placeholder: 'sort-highlight',
16
connectWith: '.connectedSortable',
17
handle: '.card-header, .nav-tabs',
18
forcePlaceholderSize: true,
21
$('.connectedSortable .card-header').css('cursor', 'move')
24
$('.todo-list').sortable({
25
placeholder: 'sort-highlight',
27
forcePlaceholderSize: true,
32
$('.textarea').summernote()
34
$('.daterange').daterangepicker({
36
Today: [moment(), moment()],
37
Yesterday: [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
38
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
39
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
40
'This Month': [moment().startOf('month'), moment().endOf('month')],
41
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
43
startDate: moment().subtract(29, 'days'),
45
}, function (start, end) {
47
alert('You chose: ' + start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'))
68
$('#world-map').vectorMap({
70
backgroundColor: 'transparent',
73
fill: 'rgba(255, 255, 255, 0.7)',
75
stroke: 'rgba(0,0,0,.2)',
83
scale: ['#ffffff', '#0154ad'],
84
normalizeFunction: 'polynomial'
87
onRegionLabelShow: function (e, el, code) {
88
if (typeof visitorsData[code] !== 'undefined') {
89
el.html(el.html() + ': ' + visitorsData[code] + ' new visitors')
95
var sparkline1 = new Sparkline($('#sparkline-1')[0], { width: 80, height: 50, lineColor: '#92c1dc', endColor: '#ebf4f9' })
96
var sparkline2 = new Sparkline($('#sparkline-2')[0], { width: 80, height: 50, lineColor: '#92c1dc', endColor: '#ebf4f9' })
97
var sparkline3 = new Sparkline($('#sparkline-3')[0], { width: 80, height: 50, lineColor: '#92c1dc', endColor: '#ebf4f9' })
99
sparkline1.draw([1000, 1200, 920, 927, 931, 1027, 819, 930, 1021])
100
sparkline2.draw([515, 519, 520, 522, 652, 810, 370, 627, 319, 630, 921])
101
sparkline3.draw([15, 19, 20, 22, 33, 27, 31, 27, 19, 30, 21])
104
$('#calendar').datetimepicker({
110
$('#chat-box').overlayScrollbars({
116
var salesChartCanvas = document.getElementById('revenue-chart-canvas').getContext('2d')
119
var salesChartData = {
120
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
123
label: 'Digital Goods',
124
backgroundColor: 'rgba(60,141,188,0.9)',
125
borderColor: 'rgba(60,141,188,0.8)',
127
pointColor: '#3b8bba',
128
pointStrokeColor: 'rgba(60,141,188,1)',
129
pointHighlightFill: '#fff',
130
pointHighlightStroke: 'rgba(60,141,188,1)',
131
data: [28, 48, 40, 19, 86, 27, 90]
134
label: 'Electronics',
135
backgroundColor: 'rgba(210, 214, 222, 1)',
136
borderColor: 'rgba(210, 214, 222, 1)',
138
pointColor: 'rgba(210, 214, 222, 1)',
139
pointStrokeColor: '#c1c7d1',
140
pointHighlightFill: '#fff',
141
pointHighlightStroke: 'rgba(220,220,220,1)',
142
data: [65, 59, 80, 81, 56, 55, 40]
147
var salesChartOptions = {
148
maintainAspectRatio: false,
169
var salesChart = new Chart(salesChartCanvas, {
171
data: salesChartData,
172
options: salesChartOptions
176
var pieChartCanvas = $('#sales-chart-canvas').get(0).getContext('2d')
186
backgroundColor: ['#f56954', '#00a65a', '#f39c12']
194
maintainAspectRatio: false,
200
var pieChart = new Chart(pieChartCanvas, {
207
var salesGraphChartCanvas = $('#line-chart').get(0).getContext('2d')
210
var salesGraphChartData = {
211
labels: ['2011 Q1', '2011 Q2', '2011 Q3', '2011 Q4', '2012 Q1', '2012 Q2', '2012 Q3', '2012 Q4', '2013 Q1', '2013 Q2'],
214
label: 'Digital Goods',
219
borderColor: '#efefef',
222
pointColor: '#efefef',
223
pointBackgroundColor: '#efefef',
224
data: [2666, 2778, 4912, 3767, 6810, 5670, 4820, 15073, 10687, 8432]
229
var salesGraphChartOptions = {
230
maintainAspectRatio: false,
262
var salesGraphChart = new Chart(salesGraphChartCanvas, {
264
data: salesGraphChartData,
265
options: salesGraphChartOptions