Commit 221dd712bbe2d8b15d5eb017ac7302f2ed324e3a
1 parent
cc8a193d
menu
Showing
2 changed files
with
459 additions
and
440 deletions
Show diff stats
backend/web/js/custom.js
1 | /** | 1 | /** |
2 | * Resize function without multiple trigger | 2 | * Resize function without multiple trigger |
3 | - * | 3 | + * |
4 | * Usage: | 4 | * Usage: |
5 | - * $(window).smartresize(function(){ | 5 | + * $(window).smartresize(function(){ |
6 | * // code here | 6 | * // code here |
7 | * }); | 7 | * }); |
8 | */ | 8 | */ |
@@ -16,8 +16,8 @@ | @@ -16,8 +16,8 @@ | ||
16 | var obj = this, args = arguments; | 16 | var obj = this, args = arguments; |
17 | function delayed () { | 17 | function delayed () { |
18 | if (!execAsap) | 18 | if (!execAsap) |
19 | - func.apply(obj, args); | ||
20 | - timeout = null; | 19 | + func.apply(obj, args); |
20 | + timeout = null; | ||
21 | } | 21 | } |
22 | 22 | ||
23 | if (timeout) | 23 | if (timeout) |
@@ -25,11 +25,11 @@ | @@ -25,11 +25,11 @@ | ||
25 | else if (execAsap) | 25 | else if (execAsap) |
26 | func.apply(obj, args); | 26 | func.apply(obj, args); |
27 | 27 | ||
28 | - timeout = setTimeout(delayed, threshold || 100); | 28 | + timeout = setTimeout(delayed, threshold || 100); |
29 | }; | 29 | }; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | - // smartresize | 32 | + // smartresize |
33 | jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); }; | 33 | jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); }; |
34 | 34 | ||
35 | })(jQuery,'smartresize'); | 35 | })(jQuery,'smartresize'); |
@@ -49,8 +49,8 @@ var CURRENT_URL = window.location.href.split('#')[0].split('?')[0], | @@ -49,8 +49,8 @@ var CURRENT_URL = window.location.href.split('#')[0].split('?')[0], | ||
49 | $NAV_MENU = $('.nav_menu'), | 49 | $NAV_MENU = $('.nav_menu'), |
50 | $FOOTER = $('footer'); | 50 | $FOOTER = $('footer'); |
51 | 51 | ||
52 | - | ||
53 | - | 52 | + |
53 | + | ||
54 | // Sidebar | 54 | // Sidebar |
55 | function init_sidebar() { | 55 | function init_sidebar() { |
56 | // TODO: This is some kind of easy fix, maybe we can improve this | 56 | // TODO: This is some kind of easy fix, maybe we can improve this |
@@ -99,10 +99,10 @@ var setContentHeight = function () { | @@ -99,10 +99,10 @@ var setContentHeight = function () { | ||
99 | } | 99 | } |
100 | }); | 100 | }); |
101 | 101 | ||
102 | -// toggle small or large menu | 102 | +// toggle small or large menu |
103 | $MENU_TOGGLE.on('click', function() { | 103 | $MENU_TOGGLE.on('click', function() { |
104 | console.log('clicked - menu toggle'); | 104 | console.log('clicked - menu toggle'); |
105 | - | 105 | + |
106 | if ($BODY.hasClass('nav-md')) { | 106 | if ($BODY.hasClass('nav-md')) { |
107 | $SIDEBAR_MENU.find('li.active ul').hide(); | 107 | $SIDEBAR_MENU.find('li.active ul').hide(); |
108 | $SIDEBAR_MENU.find('li.active').addClass('active-sm').removeClass('active'); | 108 | $SIDEBAR_MENU.find('li.active').addClass('active-sm').removeClass('active'); |
@@ -126,7 +126,7 @@ $MENU_TOGGLE.on('click', function() { | @@ -126,7 +126,7 @@ $MENU_TOGGLE.on('click', function() { | ||
126 | }).parent().addClass('active'); | 126 | }).parent().addClass('active'); |
127 | 127 | ||
128 | // recompute content when resizing | 128 | // recompute content when resizing |
129 | - $(window).smartresize(function(){ | 129 | + $(window).smartresize(function(){ |
130 | setContentHeight(); | 130 | setContentHeight(); |
131 | }); | 131 | }); |
132 | 132 | ||
@@ -154,15 +154,15 @@ $(document).ready(function() { | @@ -154,15 +154,15 @@ $(document).ready(function() { | ||
154 | var $BOX_PANEL = $(this).closest('.x_panel'), | 154 | var $BOX_PANEL = $(this).closest('.x_panel'), |
155 | $ICON = $(this).find('i'), | 155 | $ICON = $(this).find('i'), |
156 | $BOX_CONTENT = $BOX_PANEL.find('.x_content'); | 156 | $BOX_CONTENT = $BOX_PANEL.find('.x_content'); |
157 | - | 157 | + |
158 | // fix for some div with hardcoded fix class | 158 | // fix for some div with hardcoded fix class |
159 | if ($BOX_PANEL.attr('style')) { | 159 | if ($BOX_PANEL.attr('style')) { |
160 | $BOX_CONTENT.slideToggle(200, function(){ | 160 | $BOX_CONTENT.slideToggle(200, function(){ |
161 | $BOX_PANEL.removeAttr('style'); | 161 | $BOX_PANEL.removeAttr('style'); |
162 | }); | 162 | }); |
163 | } else { | 163 | } else { |
164 | - $BOX_CONTENT.slideToggle(200); | ||
165 | - $BOX_PANEL.css('height', 'auto'); | 164 | + $BOX_CONTENT.slideToggle(200); |
165 | + $BOX_PANEL.css('height', 'auto'); | ||
166 | } | 166 | } |
167 | 167 | ||
168 | $ICON.toggleClass('fa-chevron-up fa-chevron-down'); | 168 | $ICON.toggleClass('fa-chevron-up fa-chevron-down'); |
@@ -297,7 +297,7 @@ if (typeof NProgress != 'undefined') { | @@ -297,7 +297,7 @@ if (typeof NProgress != 'undefined') { | ||
297 | }); | 297 | }); |
298 | } | 298 | } |
299 | 299 | ||
300 | - | 300 | + |
301 | //hover and retain popover when on popover content | 301 | //hover and retain popover when on popover content |
302 | var originalLeave = $.fn.popover.Constructor.prototype.leave; | 302 | var originalLeave = $.fn.popover.Constructor.prototype.leave; |
303 | $.fn.popover.Constructor.prototype.leave = function(obj) { | 303 | $.fn.popover.Constructor.prototype.leave = function(obj) { |
@@ -334,16 +334,16 @@ if (typeof NProgress != 'undefined') { | @@ -334,16 +334,16 @@ if (typeof NProgress != 'undefined') { | ||
334 | function gd(year, month, day) { | 334 | function gd(year, month, day) { |
335 | return new Date(year, month - 1, day).getTime(); | 335 | return new Date(year, month - 1, day).getTime(); |
336 | } | 336 | } |
337 | - | ||
338 | - | 337 | + |
338 | + | ||
339 | function init_flot_chart(){ | 339 | function init_flot_chart(){ |
340 | - | 340 | + |
341 | if( typeof ($.plot) === 'undefined'){ return; } | 341 | if( typeof ($.plot) === 'undefined'){ return; } |
342 | - | 342 | + |
343 | console.log('init_flot_chart'); | 343 | console.log('init_flot_chart'); |
344 | - | ||
345 | - | ||
346 | - | 344 | + |
345 | + | ||
346 | + | ||
347 | var arr_data1 = [ | 347 | var arr_data1 = [ |
348 | [gd(2012, 1, 1), 17], | 348 | [gd(2012, 1, 1), 17], |
349 | [gd(2012, 1, 2), 74], | 349 | [gd(2012, 1, 2), 74], |
@@ -363,7 +363,7 @@ if (typeof NProgress != 'undefined') { | @@ -363,7 +363,7 @@ if (typeof NProgress != 'undefined') { | ||
363 | [gd(2012, 1, 6), 6], | 363 | [gd(2012, 1, 6), 6], |
364 | [gd(2012, 1, 7), 9] | 364 | [gd(2012, 1, 7), 9] |
365 | ]; | 365 | ]; |
366 | - | 366 | + |
367 | var arr_data3 = [ | 367 | var arr_data3 = [ |
368 | [0, 1], | 368 | [0, 1], |
369 | [1, 9], | 369 | [1, 9], |
@@ -383,9 +383,9 @@ if (typeof NProgress != 'undefined') { | @@ -383,9 +383,9 @@ if (typeof NProgress != 'undefined') { | ||
383 | [15, 4], | 383 | [15, 4], |
384 | [16, 9] | 384 | [16, 9] |
385 | ]; | 385 | ]; |
386 | - | 386 | + |
387 | var chart_plot_02_data = []; | 387 | var chart_plot_02_data = []; |
388 | - | 388 | + |
389 | var chart_plot_03_data = [ | 389 | var chart_plot_03_data = [ |
390 | [0, 1], | 390 | [0, 1], |
391 | [1, 9], | 391 | [1, 9], |
@@ -405,13 +405,13 @@ if (typeof NProgress != 'undefined') { | @@ -405,13 +405,13 @@ if (typeof NProgress != 'undefined') { | ||
405 | [15, 4], | 405 | [15, 4], |
406 | [16, 9] | 406 | [16, 9] |
407 | ]; | 407 | ]; |
408 | - | ||
409 | - | 408 | + |
409 | + | ||
410 | for (var i = 0; i < 30; i++) { | 410 | for (var i = 0; i < 30; i++) { |
411 | chart_plot_02_data.push([new Date(Date.today().add(i).days()).getTime(), randNum() + i + i + 10]); | 411 | chart_plot_02_data.push([new Date(Date.today().add(i).days()).getTime(), randNum() + i + i + 10]); |
412 | } | 412 | } |
413 | - | ||
414 | - | 413 | + |
414 | + | ||
415 | var chart_plot_01_settings = { | 415 | var chart_plot_01_settings = { |
416 | series: { | 416 | series: { |
417 | lines: { | 417 | lines: { |
@@ -456,7 +456,7 @@ if (typeof NProgress != 'undefined') { | @@ -456,7 +456,7 @@ if (typeof NProgress != 'undefined') { | ||
456 | }, | 456 | }, |
457 | tooltip: false | 457 | tooltip: false |
458 | } | 458 | } |
459 | - | 459 | + |
460 | var chart_plot_02_settings = { | 460 | var chart_plot_02_settings = { |
461 | grid: { | 461 | grid: { |
462 | show: true, | 462 | show: true, |
@@ -519,8 +519,8 @@ if (typeof NProgress != 'undefined') { | @@ -519,8 +519,8 @@ if (typeof NProgress != 'undefined') { | ||
519 | min: chart_plot_02_data[0][0], | 519 | min: chart_plot_02_data[0][0], |
520 | max: chart_plot_02_data[20][0] | 520 | max: chart_plot_02_data[20][0] |
521 | } | 521 | } |
522 | - }; | ||
523 | - | 522 | + }; |
523 | + | ||
524 | var chart_plot_03_settings = { | 524 | var chart_plot_03_settings = { |
525 | series: { | 525 | series: { |
526 | curvedLines: { | 526 | curvedLines: { |
@@ -543,58 +543,58 @@ if (typeof NProgress != 'undefined') { | @@ -543,58 +543,58 @@ if (typeof NProgress != 'undefined') { | ||
543 | } | 543 | } |
544 | } | 544 | } |
545 | }; | 545 | }; |
546 | - | ||
547 | - | 546 | + |
547 | + | ||
548 | if ($("#chart_plot_01").length){ | 548 | if ($("#chart_plot_01").length){ |
549 | console.log('Plot1'); | 549 | console.log('Plot1'); |
550 | - | 550 | + |
551 | $.plot( $("#chart_plot_01"), [ arr_data1, arr_data2 ], chart_plot_01_settings ); | 551 | $.plot( $("#chart_plot_01"), [ arr_data1, arr_data2 ], chart_plot_01_settings ); |
552 | } | 552 | } |
553 | - | ||
554 | - | 553 | + |
554 | + | ||
555 | if ($("#chart_plot_02").length){ | 555 | if ($("#chart_plot_02").length){ |
556 | console.log('Plot2'); | 556 | console.log('Plot2'); |
557 | - | ||
558 | - $.plot( $("#chart_plot_02"), | ||
559 | - [{ | ||
560 | - label: "Email Sent", | ||
561 | - data: chart_plot_02_data, | ||
562 | - lines: { | ||
563 | - fillColor: "rgba(150, 202, 89, 0.12)" | ||
564 | - }, | ||
565 | - points: { | ||
566 | - fillColor: "#fff" } | 557 | + |
558 | + $.plot( $("#chart_plot_02"), | ||
559 | + [{ | ||
560 | + label: "Email Sent", | ||
561 | + data: chart_plot_02_data, | ||
562 | + lines: { | ||
563 | + fillColor: "rgba(150, 202, 89, 0.12)" | ||
564 | + }, | ||
565 | + points: { | ||
566 | + fillColor: "#fff" } | ||
567 | }], chart_plot_02_settings); | 567 | }], chart_plot_02_settings); |
568 | - | 568 | + |
569 | } | 569 | } |
570 | - | 570 | + |
571 | if ($("#chart_plot_03").length){ | 571 | if ($("#chart_plot_03").length){ |
572 | console.log('Plot3'); | 572 | console.log('Plot3'); |
573 | - | ||
574 | - | 573 | + |
574 | + | ||
575 | $.plot($("#chart_plot_03"), [{ | 575 | $.plot($("#chart_plot_03"), [{ |
576 | label: "Registrations", | 576 | label: "Registrations", |
577 | data: chart_plot_03_data, | 577 | data: chart_plot_03_data, |
578 | lines: { | 578 | lines: { |
579 | fillColor: "rgba(150, 202, 89, 0.12)" | 579 | fillColor: "rgba(150, 202, 89, 0.12)" |
580 | - }, | 580 | + }, |
581 | points: { | 581 | points: { |
582 | fillColor: "#fff" | 582 | fillColor: "#fff" |
583 | } | 583 | } |
584 | }], chart_plot_03_settings); | 584 | }], chart_plot_03_settings); |
585 | - | 585 | + |
586 | }; | 586 | }; |
587 | - | ||
588 | - } | ||
589 | - | ||
590 | - | 587 | + |
588 | + } | ||
589 | + | ||
590 | + | ||
591 | /* STARRR */ | 591 | /* STARRR */ |
592 | - | 592 | + |
593 | function init_starrr() { | 593 | function init_starrr() { |
594 | - | 594 | + |
595 | if( typeof (starrr) === 'undefined'){ return; } | 595 | if( typeof (starrr) === 'undefined'){ return; } |
596 | console.log('init_starrr'); | 596 | console.log('init_starrr'); |
597 | - | 597 | + |
598 | $(".stars").starrr(); | 598 | $(".stars").starrr(); |
599 | 599 | ||
600 | $('.stars-existing').starrr({ | 600 | $('.stars-existing').starrr({ |
@@ -608,20 +608,20 @@ if (typeof NProgress != 'undefined') { | @@ -608,20 +608,20 @@ if (typeof NProgress != 'undefined') { | ||
608 | $('.stars-existing').on('starrr:change', function (e, value) { | 608 | $('.stars-existing').on('starrr:change', function (e, value) { |
609 | $('.stars-count-existing').html(value); | 609 | $('.stars-count-existing').html(value); |
610 | }); | 610 | }); |
611 | - | 611 | + |
612 | }; | 612 | }; |
613 | - | ||
614 | - | 613 | + |
614 | + | ||
615 | function init_JQVmap(){ | 615 | function init_JQVmap(){ |
616 | 616 | ||
617 | - //console.log('check init_JQVmap [' + typeof (VectorCanvas) + '][' + typeof (jQuery.fn.vectorMap) + ']' ); | ||
618 | - | 617 | + //console.log('check init_JQVmap [' + typeof (VectorCanvas) + '][' + typeof (jQuery.fn.vectorMap) + ']' ); |
618 | + | ||
619 | if(typeof (jQuery.fn.vectorMap) === 'undefined'){ return; } | 619 | if(typeof (jQuery.fn.vectorMap) === 'undefined'){ return; } |
620 | - | 620 | + |
621 | console.log('init_JQVmap'); | 621 | console.log('init_JQVmap'); |
622 | - | 622 | + |
623 | if ($('#world-map-gdp').length ){ | 623 | if ($('#world-map-gdp').length ){ |
624 | - | 624 | + |
625 | $('#world-map-gdp').vectorMap({ | 625 | $('#world-map-gdp').vectorMap({ |
626 | map: 'world_en', | 626 | map: 'world_en', |
627 | backgroundColor: null, | 627 | backgroundColor: null, |
@@ -634,11 +634,11 @@ if (typeof NProgress != 'undefined') { | @@ -634,11 +634,11 @@ if (typeof NProgress != 'undefined') { | ||
634 | scaleColors: ['#E6F2F0', '#149B7E'], | 634 | scaleColors: ['#E6F2F0', '#149B7E'], |
635 | normalizeFunction: 'polynomial' | 635 | normalizeFunction: 'polynomial' |
636 | }); | 636 | }); |
637 | - | 637 | + |
638 | } | 638 | } |
639 | - | 639 | + |
640 | if ($('#usa_map').length ){ | 640 | if ($('#usa_map').length ){ |
641 | - | 641 | + |
642 | $('#usa_map').vectorMap({ | 642 | $('#usa_map').vectorMap({ |
643 | map: 'usa_en', | 643 | map: 'usa_en', |
644 | backgroundColor: null, | 644 | backgroundColor: null, |
@@ -651,17 +651,17 @@ if (typeof NProgress != 'undefined') { | @@ -651,17 +651,17 @@ if (typeof NProgress != 'undefined') { | ||
651 | scaleColors: ['#E6F2F0', '#149B7E'], | 651 | scaleColors: ['#E6F2F0', '#149B7E'], |
652 | normalizeFunction: 'polynomial' | 652 | normalizeFunction: 'polynomial' |
653 | }); | 653 | }); |
654 | - | 654 | + |
655 | } | 655 | } |
656 | - | 656 | + |
657 | }; | 657 | }; |
658 | - | ||
659 | - | 658 | + |
659 | + | ||
660 | function init_skycons(){ | 660 | function init_skycons(){ |
661 | - | 661 | + |
662 | if( typeof (Skycons) === 'undefined'){ return; } | 662 | if( typeof (Skycons) === 'undefined'){ return; } |
663 | console.log('init_skycons'); | 663 | console.log('init_skycons'); |
664 | - | 664 | + |
665 | var icons = new Skycons({ | 665 | var icons = new Skycons({ |
666 | "color": "#73879C" | 666 | "color": "#73879C" |
667 | }), | 667 | }), |
@@ -676,18 +676,18 @@ if (typeof NProgress != 'undefined') { | @@ -676,18 +676,18 @@ if (typeof NProgress != 'undefined') { | ||
676 | icons.set(list[i], list[i]); | 676 | icons.set(list[i], list[i]); |
677 | 677 | ||
678 | icons.play(); | 678 | icons.play(); |
679 | - | ||
680 | - } | ||
681 | - | ||
682 | - | 679 | + |
680 | + } | ||
681 | + | ||
682 | + | ||
683 | function init_chart_doughnut(){ | 683 | function init_chart_doughnut(){ |
684 | - | 684 | + |
685 | if( typeof (Chart) === 'undefined'){ return; } | 685 | if( typeof (Chart) === 'undefined'){ return; } |
686 | - | 686 | + |
687 | console.log('init_chart_doughnut'); | 687 | console.log('init_chart_doughnut'); |
688 | - | 688 | + |
689 | if ($('.canvasDoughnut').length){ | 689 | if ($('.canvasDoughnut').length){ |
690 | - | 690 | + |
691 | var chart_doughnut_settings = { | 691 | var chart_doughnut_settings = { |
692 | type: 'doughnut', | 692 | type: 'doughnut', |
693 | tooltipFillColor: "rgba(51, 51, 51, 0.55)", | 693 | tooltipFillColor: "rgba(51, 51, 51, 0.55)", |
@@ -717,31 +717,31 @@ if (typeof NProgress != 'undefined') { | @@ -717,31 +717,31 @@ if (typeof NProgress != 'undefined') { | ||
717 | ] | 717 | ] |
718 | }] | 718 | }] |
719 | }, | 719 | }, |
720 | - options: { | ||
721 | - legend: false, | ||
722 | - responsive: false | 720 | + options: { |
721 | + legend: false, | ||
722 | + responsive: false | ||
723 | } | 723 | } |
724 | } | 724 | } |
725 | - | 725 | + |
726 | $('.canvasDoughnut').each(function(){ | 726 | $('.canvasDoughnut').each(function(){ |
727 | - | 727 | + |
728 | var chart_element = $(this); | 728 | var chart_element = $(this); |
729 | var chart_doughnut = new Chart( chart_element, chart_doughnut_settings); | 729 | var chart_doughnut = new Chart( chart_element, chart_doughnut_settings); |
730 | - | ||
731 | - }); | ||
732 | - | ||
733 | - } | ||
734 | - | 730 | + |
731 | + }); | ||
732 | + | ||
733 | + } | ||
734 | + | ||
735 | } | 735 | } |
736 | - | 736 | + |
737 | function init_gauge() { | 737 | function init_gauge() { |
738 | - | 738 | + |
739 | if( typeof (Gauge) === 'undefined'){ return; } | 739 | if( typeof (Gauge) === 'undefined'){ return; } |
740 | - | 740 | + |
741 | console.log('init_gauge [' + $('.gauge-chart').length + ']'); | 741 | console.log('init_gauge [' + $('.gauge-chart').length + ']'); |
742 | - | 742 | + |
743 | console.log('init_gauge'); | 743 | console.log('init_gauge'); |
744 | - | 744 | + |
745 | 745 | ||
746 | var chart_gauge_settings = { | 746 | var chart_gauge_settings = { |
747 | lines: 12, | 747 | lines: 12, |
@@ -758,53 +758,53 @@ if (typeof NProgress != 'undefined') { | @@ -758,53 +758,53 @@ if (typeof NProgress != 'undefined') { | ||
758 | strokeColor: '#F0F3F3', | 758 | strokeColor: '#F0F3F3', |
759 | generateGradient: true | 759 | generateGradient: true |
760 | }; | 760 | }; |
761 | - | ||
762 | - | ||
763 | - if ($('#chart_gauge_01').length){ | ||
764 | - | 761 | + |
762 | + | ||
763 | + if ($('#chart_gauge_01').length){ | ||
764 | + | ||
765 | var chart_gauge_01_elem = document.getElementById('chart_gauge_01'); | 765 | var chart_gauge_01_elem = document.getElementById('chart_gauge_01'); |
766 | var chart_gauge_01 = new Gauge(chart_gauge_01_elem).setOptions(chart_gauge_settings); | 766 | var chart_gauge_01 = new Gauge(chart_gauge_01_elem).setOptions(chart_gauge_settings); |
767 | - | ||
768 | - } | ||
769 | - | ||
770 | - | ||
771 | - if ($('#gauge-text').length){ | ||
772 | - | 767 | + |
768 | + } | ||
769 | + | ||
770 | + | ||
771 | + if ($('#gauge-text').length){ | ||
772 | + | ||
773 | chart_gauge_01.maxValue = 6000; | 773 | chart_gauge_01.maxValue = 6000; |
774 | chart_gauge_01.animationSpeed = 32; | 774 | chart_gauge_01.animationSpeed = 32; |
775 | chart_gauge_01.set(3200); | 775 | chart_gauge_01.set(3200); |
776 | chart_gauge_01.setTextField(document.getElementById("gauge-text")); | 776 | chart_gauge_01.setTextField(document.getElementById("gauge-text")); |
777 | - | 777 | + |
778 | } | 778 | } |
779 | - | 779 | + |
780 | if ($('#chart_gauge_02').length){ | 780 | if ($('#chart_gauge_02').length){ |
781 | - | 781 | + |
782 | var chart_gauge_02_elem = document.getElementById('chart_gauge_02'); | 782 | var chart_gauge_02_elem = document.getElementById('chart_gauge_02'); |
783 | var chart_gauge_02 = new Gauge(chart_gauge_02_elem).setOptions(chart_gauge_settings); | 783 | var chart_gauge_02 = new Gauge(chart_gauge_02_elem).setOptions(chart_gauge_settings); |
784 | - | 784 | + |
785 | } | 785 | } |
786 | - | ||
787 | - | 786 | + |
787 | + | ||
788 | if ($('#gauge-text2').length){ | 788 | if ($('#gauge-text2').length){ |
789 | - | 789 | + |
790 | chart_gauge_02.maxValue = 9000; | 790 | chart_gauge_02.maxValue = 9000; |
791 | chart_gauge_02.animationSpeed = 32; | 791 | chart_gauge_02.animationSpeed = 32; |
792 | chart_gauge_02.set(2400); | 792 | chart_gauge_02.set(2400); |
793 | chart_gauge_02.setTextField(document.getElementById("gauge-text2")); | 793 | chart_gauge_02.setTextField(document.getElementById("gauge-text2")); |
794 | - | 794 | + |
795 | } | 795 | } |
796 | - | ||
797 | - | ||
798 | - } | ||
799 | - | 796 | + |
797 | + | ||
798 | + } | ||
799 | + | ||
800 | /* SPARKLINES */ | 800 | /* SPARKLINES */ |
801 | - | 801 | + |
802 | function init_sparklines() { | 802 | function init_sparklines() { |
803 | - | 803 | + |
804 | if(typeof (jQuery.fn.sparkline) === 'undefined'){ return; } | 804 | if(typeof (jQuery.fn.sparkline) === 'undefined'){ return; } |
805 | - console.log('init_sparklines'); | ||
806 | - | ||
807 | - | 805 | + console.log('init_sparklines'); |
806 | + | ||
807 | + | ||
808 | $(".sparkline_one").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { | 808 | $(".sparkline_one").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { |
809 | type: 'bar', | 809 | type: 'bar', |
810 | height: '125', | 810 | height: '125', |
@@ -815,20 +815,20 @@ if (typeof NProgress != 'undefined') { | @@ -815,20 +815,20 @@ if (typeof NProgress != 'undefined') { | ||
815 | barSpacing: 2, | 815 | barSpacing: 2, |
816 | barColor: '#26B99A' | 816 | barColor: '#26B99A' |
817 | }); | 817 | }); |
818 | - | ||
819 | - | 818 | + |
819 | + | ||
820 | $(".sparkline_two").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { | 820 | $(".sparkline_two").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { |
821 | type: 'bar', | 821 | type: 'bar', |
822 | height: '40', | 822 | height: '40', |
823 | barWidth: 9, | 823 | barWidth: 9, |
824 | colorMap: { | 824 | colorMap: { |
825 | - '7': '#a1a1a1' | 825 | + '7': '#a1a1a1' |
826 | }, | 826 | }, |
827 | barSpacing: 2, | 827 | barSpacing: 2, |
828 | barColor: '#26B99A' | 828 | barColor: '#26B99A' |
829 | }); | 829 | }); |
830 | - | ||
831 | - | 830 | + |
831 | + | ||
832 | $(".sparkline_three").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { | 832 | $(".sparkline_three").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], { |
833 | type: 'line', | 833 | type: 'line', |
834 | width: '200', | 834 | width: '200', |
@@ -839,8 +839,8 @@ if (typeof NProgress != 'undefined') { | @@ -839,8 +839,8 @@ if (typeof NProgress != 'undefined') { | ||
839 | spotColor: '#26B99A', | 839 | spotColor: '#26B99A', |
840 | minSpotColor: '#26B99A' | 840 | minSpotColor: '#26B99A' |
841 | }); | 841 | }); |
842 | - | ||
843 | - | 842 | + |
843 | + | ||
844 | $(".sparkline11").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3], { | 844 | $(".sparkline11").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3], { |
845 | type: 'bar', | 845 | type: 'bar', |
846 | height: '40', | 846 | height: '40', |
@@ -851,8 +851,8 @@ if (typeof NProgress != 'undefined') { | @@ -851,8 +851,8 @@ if (typeof NProgress != 'undefined') { | ||
851 | barSpacing: 2, | 851 | barSpacing: 2, |
852 | barColor: '#26B99A' | 852 | barColor: '#26B99A' |
853 | }); | 853 | }); |
854 | - | ||
855 | - | 854 | + |
855 | + | ||
856 | $(".sparkline22").sparkline([2, 4, 3, 4, 7, 5, 4, 3, 5, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6], { | 856 | $(".sparkline22").sparkline([2, 4, 3, 4, 7, 5, 4, 3, 5, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6], { |
857 | type: 'line', | 857 | type: 'line', |
858 | height: '40', | 858 | height: '40', |
@@ -863,8 +863,8 @@ if (typeof NProgress != 'undefined') { | @@ -863,8 +863,8 @@ if (typeof NProgress != 'undefined') { | ||
863 | spotColor: '#34495E', | 863 | spotColor: '#34495E', |
864 | minSpotColor: '#34495E' | 864 | minSpotColor: '#34495E' |
865 | }); | 865 | }); |
866 | - | ||
867 | - | 866 | + |
867 | + | ||
868 | $(".sparkline_bar").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], { | 868 | $(".sparkline_bar").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], { |
869 | type: 'bar', | 869 | type: 'bar', |
870 | colorMap: { | 870 | colorMap: { |
@@ -872,8 +872,8 @@ if (typeof NProgress != 'undefined') { | @@ -872,8 +872,8 @@ if (typeof NProgress != 'undefined') { | ||
872 | }, | 872 | }, |
873 | barColor: '#26B99A' | 873 | barColor: '#26B99A' |
874 | }); | 874 | }); |
875 | - | ||
876 | - | 875 | + |
876 | + | ||
877 | $(".sparkline_area").sparkline([5, 6, 7, 9, 9, 5, 3, 2, 2, 4, 6, 7], { | 877 | $(".sparkline_area").sparkline([5, 6, 7, 9, 9, 5, 3, 2, 2, 4, 6, 7], { |
878 | type: 'line', | 878 | type: 'line', |
879 | lineColor: '#26B99A', | 879 | lineColor: '#26B99A', |
@@ -886,8 +886,8 @@ if (typeof NProgress != 'undefined') { | @@ -886,8 +886,8 @@ if (typeof NProgress != 'undefined') { | ||
886 | spotRadius: 2.5, | 886 | spotRadius: 2.5, |
887 | width: 85 | 887 | width: 85 |
888 | }); | 888 | }); |
889 | - | ||
890 | - | 889 | + |
890 | + | ||
891 | $(".sparkline_line").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], { | 891 | $(".sparkline_line").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], { |
892 | type: 'line', | 892 | type: 'line', |
893 | lineColor: '#26B99A', | 893 | lineColor: '#26B99A', |
@@ -896,14 +896,14 @@ if (typeof NProgress != 'undefined') { | @@ -896,14 +896,14 @@ if (typeof NProgress != 'undefined') { | ||
896 | spotColor: '#34495E', | 896 | spotColor: '#34495E', |
897 | minSpotColor: '#34495E' | 897 | minSpotColor: '#34495E' |
898 | }); | 898 | }); |
899 | - | ||
900 | - | 899 | + |
900 | + | ||
901 | $(".sparkline_pie").sparkline([1, 1, 2, 1], { | 901 | $(".sparkline_pie").sparkline([1, 1, 2, 1], { |
902 | type: 'pie', | 902 | type: 'pie', |
903 | sliceColors: ['#26B99A', '#ccc', '#75BCDD', '#D66DE2'] | 903 | sliceColors: ['#26B99A', '#ccc', '#75BCDD', '#D66DE2'] |
904 | }); | 904 | }); |
905 | - | ||
906 | - | 905 | + |
906 | + | ||
907 | $(".sparkline_discreet").sparkline([4, 6, 7, 7, 4, 3, 2, 1, 4, 4, 2, 4, 3, 7, 8, 9, 7, 6, 4, 3], { | 907 | $(".sparkline_discreet").sparkline([4, 6, 7, 7, 4, 3, 2, 1, 4, 4, 2, 4, 3, 7, 8, 9, 7, 6, 4, 3], { |
908 | type: 'discrete', | 908 | type: 'discrete', |
909 | barWidth: 3, | 909 | barWidth: 3, |
@@ -911,17 +911,17 @@ if (typeof NProgress != 'undefined') { | @@ -911,17 +911,17 @@ if (typeof NProgress != 'undefined') { | ||
911 | width: '85', | 911 | width: '85', |
912 | }); | 912 | }); |
913 | 913 | ||
914 | - | ||
915 | - }; | ||
916 | - | ||
917 | - | 914 | + |
915 | + }; | ||
916 | + | ||
917 | + | ||
918 | /* AUTOCOMPLETE */ | 918 | /* AUTOCOMPLETE */ |
919 | - | 919 | + |
920 | function init_autocomplete() { | 920 | function init_autocomplete() { |
921 | - | 921 | + |
922 | if( typeof (autocomplete) === 'undefined'){ return; } | 922 | if( typeof (autocomplete) === 'undefined'){ return; } |
923 | console.log('init_autocomplete'); | 923 | console.log('init_autocomplete'); |
924 | - | 924 | + |
925 | var countries = { AD:"Andorra",A2:"Andorra Test",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AN:"Netherlands Antilles",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"ร land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthรฉlemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"British Antarctic Territory",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos [Keeling] Islands",CD:"Congo - Kinshasa",CF:"Central African Republic",CG:"Congo - Brazzaville",CH:"Switzerland",CI:"Cรดte dโIvoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CS:"Serbia and Montenegro",CT:"Canton and Enderbury Islands",CU:"Cuba",CV:"Cape Verde",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DD:"East Germany",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FQ:"French Southern and Antarctic Territories",FR:"France",FX:"Metropolitan France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong SAR China",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",JT:"Johnston Island",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MI:"Midway Islands",MK:"Macedonia",ML:"Mali",MM:"Myanmar [Burma]",MN:"Mongolia",MO:"Macau SAR China",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NQ:"Dronning Maud Land",NR:"Nauru",NT:"Neutral Zone",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PC:"Pacific Islands Trust Territory",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestinian Territories",PT:"Portugal",PU:"U.S. Miscellaneous Pacific Islands",PW:"Palau",PY:"Paraguay",PZ:"Panama Canal Zone",QA:"Qatar",RE:"Rรฉunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sรฃo Tomรฉ and Prรญncipe",SU:"Union of Soviet Socialist Republics",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"Saint Vincent and the Grenadines",VD:"North Vietnam",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WK:"Wake Island",WS:"Samoa",YD:"People's Democratic Republic of Yemen",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"Unknown or Invalid Region" }; | 925 | var countries = { AD:"Andorra",A2:"Andorra Test",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AN:"Netherlands Antilles",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"ร land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthรฉlemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"British Antarctic Territory",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos [Keeling] Islands",CD:"Congo - Kinshasa",CF:"Central African Republic",CG:"Congo - Brazzaville",CH:"Switzerland",CI:"Cรดte dโIvoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CS:"Serbia and Montenegro",CT:"Canton and Enderbury Islands",CU:"Cuba",CV:"Cape Verde",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DD:"East Germany",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FQ:"French Southern and Antarctic Territories",FR:"France",FX:"Metropolitan France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong SAR China",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",JT:"Johnston Island",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MI:"Midway Islands",MK:"Macedonia",ML:"Mali",MM:"Myanmar [Burma]",MN:"Mongolia",MO:"Macau SAR China",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NQ:"Dronning Maud Land",NR:"Nauru",NT:"Neutral Zone",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PC:"Pacific Islands Trust Territory",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestinian Territories",PT:"Portugal",PU:"U.S. Miscellaneous Pacific Islands",PW:"Palau",PY:"Paraguay",PZ:"Panama Canal Zone",QA:"Qatar",RE:"Rรฉunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sรฃo Tomรฉ and Prรญncipe",SU:"Union of Soviet Socialist Republics",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"Saint Vincent and the Grenadines",VD:"North Vietnam",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WK:"Wake Island",WS:"Samoa",YD:"People's Democratic Republic of Yemen",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"Unknown or Invalid Region" }; |
926 | 926 | ||
927 | var countriesArray = $.map(countries, function(value, key) { | 927 | var countriesArray = $.map(countries, function(value, key) { |
@@ -935,28 +935,28 @@ if (typeof NProgress != 'undefined') { | @@ -935,28 +935,28 @@ if (typeof NProgress != 'undefined') { | ||
935 | $('#autocomplete-custom-append').autocomplete({ | 935 | $('#autocomplete-custom-append').autocomplete({ |
936 | lookup: countriesArray | 936 | lookup: countriesArray |
937 | }); | 937 | }); |
938 | - | 938 | + |
939 | }; | 939 | }; |
940 | - | 940 | + |
941 | /* AUTOSIZE */ | 941 | /* AUTOSIZE */ |
942 | - | 942 | + |
943 | function init_autosize() { | 943 | function init_autosize() { |
944 | - | 944 | + |
945 | if(typeof $.fn.autosize !== 'undefined'){ | 945 | if(typeof $.fn.autosize !== 'undefined'){ |
946 | - | 946 | + |
947 | autosize($('.resizable_textarea')); | 947 | autosize($('.resizable_textarea')); |
948 | - | 948 | + |
949 | } | 949 | } |
950 | - | ||
951 | - }; | ||
952 | - | 950 | + |
951 | + }; | ||
952 | + | ||
953 | /* PARSLEY */ | 953 | /* PARSLEY */ |
954 | - | 954 | + |
955 | function init_parsley() { | 955 | function init_parsley() { |
956 | - | 956 | + |
957 | if( typeof (parsley) === 'undefined'){ return; } | 957 | if( typeof (parsley) === 'undefined'){ return; } |
958 | console.log('init_parsley'); | 958 | console.log('init_parsley'); |
959 | - | 959 | + |
960 | $/*.listen*/('parsley:field:validate', function() { | 960 | $/*.listen*/('parsley:field:validate', function() { |
961 | validateFront(); | 961 | validateFront(); |
962 | }); | 962 | }); |
@@ -973,7 +973,7 @@ if (typeof NProgress != 'undefined') { | @@ -973,7 +973,7 @@ if (typeof NProgress != 'undefined') { | ||
973 | $('.bs-callout-warning').removeClass('hidden'); | 973 | $('.bs-callout-warning').removeClass('hidden'); |
974 | } | 974 | } |
975 | }; | 975 | }; |
976 | - | 976 | + |
977 | $/*.listen*/('parsley:field:validate', function() { | 977 | $/*.listen*/('parsley:field:validate', function() { |
978 | validateFront(); | 978 | validateFront(); |
979 | }); | 979 | }); |
@@ -990,16 +990,16 @@ if (typeof NProgress != 'undefined') { | @@ -990,16 +990,16 @@ if (typeof NProgress != 'undefined') { | ||
990 | $('.bs-callout-warning').removeClass('hidden'); | 990 | $('.bs-callout-warning').removeClass('hidden'); |
991 | } | 991 | } |
992 | }; | 992 | }; |
993 | - | 993 | + |
994 | try { | 994 | try { |
995 | hljs.initHighlightingOnLoad(); | 995 | hljs.initHighlightingOnLoad(); |
996 | } catch (err) {} | 996 | } catch (err) {} |
997 | - | 997 | + |
998 | }; | 998 | }; |
999 | - | ||
1000 | - | 999 | + |
1000 | + | ||
1001 | /* INPUTS */ | 1001 | /* INPUTS */ |
1002 | - | 1002 | + |
1003 | function onAddTag(tag) { | 1003 | function onAddTag(tag) { |
1004 | alert("Added a tag: " + tag); | 1004 | alert("Added a tag: " + tag); |
1005 | } | 1005 | } |
@@ -1014,24 +1014,24 @@ if (typeof NProgress != 'undefined') { | @@ -1014,24 +1014,24 @@ if (typeof NProgress != 'undefined') { | ||
1014 | 1014 | ||
1015 | //tags input | 1015 | //tags input |
1016 | function init_TagsInput() { | 1016 | function init_TagsInput() { |
1017 | - | ||
1018 | - if(typeof $.fn.tagsInput !== 'undefined'){ | ||
1019 | - | 1017 | + |
1018 | + if(typeof $.fn.tagsInput !== 'undefined'){ | ||
1019 | + | ||
1020 | $('#tags_1').tagsInput({ | 1020 | $('#tags_1').tagsInput({ |
1021 | width: 'auto' | 1021 | width: 'auto' |
1022 | }); | 1022 | }); |
1023 | - | 1023 | + |
1024 | } | 1024 | } |
1025 | - | 1025 | + |
1026 | }; | 1026 | }; |
1027 | - | 1027 | + |
1028 | /* SELECT2 */ | 1028 | /* SELECT2 */ |
1029 | - | 1029 | + |
1030 | function init_select2() { | 1030 | function init_select2() { |
1031 | - | 1031 | + |
1032 | if( typeof (select2) === 'undefined'){ return; } | 1032 | if( typeof (select2) === 'undefined'){ return; } |
1033 | console.log('init_toolbox'); | 1033 | console.log('init_toolbox'); |
1034 | - | 1034 | + |
1035 | $(".select2_single").select2({ | 1035 | $(".select2_single").select2({ |
1036 | placeholder: "Select a state", | 1036 | placeholder: "Select a state", |
1037 | allowClear: true | 1037 | allowClear: true |
@@ -1042,16 +1042,16 @@ if (typeof NProgress != 'undefined') { | @@ -1042,16 +1042,16 @@ if (typeof NProgress != 'undefined') { | ||
1042 | placeholder: "With Max Selection limit 4", | 1042 | placeholder: "With Max Selection limit 4", |
1043 | allowClear: true | 1043 | allowClear: true |
1044 | }); | 1044 | }); |
1045 | - | 1045 | + |
1046 | }; | 1046 | }; |
1047 | - | 1047 | + |
1048 | /* WYSIWYG EDITOR */ | 1048 | /* WYSIWYG EDITOR */ |
1049 | 1049 | ||
1050 | function init_wysiwyg() { | 1050 | function init_wysiwyg() { |
1051 | - | 1051 | + |
1052 | if( typeof ($.fn.wysiwyg) === 'undefined'){ return; } | 1052 | if( typeof ($.fn.wysiwyg) === 'undefined'){ return; } |
1053 | - console.log('init_wysiwyg'); | ||
1054 | - | 1053 | + console.log('init_wysiwyg'); |
1054 | + | ||
1055 | function init_ToolbarBootstrapBindings() { | 1055 | function init_ToolbarBootstrapBindings() { |
1056 | var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier', | 1056 | var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier', |
1057 | 'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times', | 1057 | 'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times', |
@@ -1106,27 +1106,27 @@ if (typeof NProgress != 'undefined') { | @@ -1106,27 +1106,27 @@ if (typeof NProgress != 'undefined') { | ||
1106 | 1106 | ||
1107 | $('.editor-wrapper').each(function(){ | 1107 | $('.editor-wrapper').each(function(){ |
1108 | var id = $(this).attr('id'); //editor-one | 1108 | var id = $(this).attr('id'); //editor-one |
1109 | - | 1109 | + |
1110 | $(this).wysiwyg({ | 1110 | $(this).wysiwyg({ |
1111 | toolbarSelector: '[data-target="#' + id + '"]', | 1111 | toolbarSelector: '[data-target="#' + id + '"]', |
1112 | fileUploadError: showErrorAlert | 1112 | fileUploadError: showErrorAlert |
1113 | - }); | 1113 | + }); |
1114 | }); | 1114 | }); |
1115 | - | ||
1116 | - | 1115 | + |
1116 | + | ||
1117 | window.prettyPrint; | 1117 | window.prettyPrint; |
1118 | prettyPrint(); | 1118 | prettyPrint(); |
1119 | - | 1119 | + |
1120 | }; | 1120 | }; |
1121 | - | 1121 | + |
1122 | /* CROPPER */ | 1122 | /* CROPPER */ |
1123 | - | 1123 | + |
1124 | function init_cropper() { | 1124 | function init_cropper() { |
1125 | - | ||
1126 | - | 1125 | + |
1126 | + | ||
1127 | if( typeof ($.fn.cropper) === 'undefined'){ return; } | 1127 | if( typeof ($.fn.cropper) === 'undefined'){ return; } |
1128 | console.log('init_cropper'); | 1128 | console.log('init_cropper'); |
1129 | - | 1129 | + |
1130 | var $image = $('#image'); | 1130 | var $image = $('#image'); |
1131 | var $download = $('#download'); | 1131 | var $download = $('#download'); |
1132 | var $dataX = $('#dataX'); | 1132 | var $dataX = $('#dataX'); |
@@ -1348,19 +1348,19 @@ if (typeof NProgress != 'undefined') { | @@ -1348,19 +1348,19 @@ if (typeof NProgress != 'undefined') { | ||
1348 | } else { | 1348 | } else { |
1349 | $inputImage.prop('disabled', true).parent().addClass('disabled'); | 1349 | $inputImage.prop('disabled', true).parent().addClass('disabled'); |
1350 | } | 1350 | } |
1351 | - | ||
1352 | - | 1351 | + |
1352 | + | ||
1353 | }; | 1353 | }; |
1354 | - | ||
1355 | - /* CROPPER --- end */ | ||
1356 | - | 1354 | + |
1355 | + /* CROPPER --- end */ | ||
1356 | + | ||
1357 | /* KNOB */ | 1357 | /* KNOB */ |
1358 | - | 1358 | + |
1359 | function init_knob() { | 1359 | function init_knob() { |
1360 | - | 1360 | + |
1361 | if( typeof ($.fn.knob) === 'undefined'){ return; } | 1361 | if( typeof ($.fn.knob) === 'undefined'){ return; } |
1362 | console.log('init_knob'); | 1362 | console.log('init_knob'); |
1363 | - | 1363 | + |
1364 | $(".knob").knob({ | 1364 | $(".knob").knob({ |
1365 | change: function(value) { | 1365 | change: function(value) { |
1366 | //console.log("change : " + value); | 1366 | //console.log("change : " + value); |
@@ -1411,7 +1411,7 @@ if (typeof NProgress != 'undefined') { | @@ -1411,7 +1411,7 @@ if (typeof NProgress != 'undefined') { | ||
1411 | return false; | 1411 | return false; |
1412 | } | 1412 | } |
1413 | } | 1413 | } |
1414 | - | 1414 | + |
1415 | }); | 1415 | }); |
1416 | 1416 | ||
1417 | // Example of infinite knob, iPod click wheel | 1417 | // Example of infinite knob, iPod click wheel |
@@ -1457,27 +1457,27 @@ if (typeof NProgress != 'undefined') { | @@ -1457,27 +1457,27 @@ if (typeof NProgress != 'undefined') { | ||
1457 | v = this.cv; | 1457 | v = this.cv; |
1458 | } | 1458 | } |
1459 | }); | 1459 | }); |
1460 | - | 1460 | + |
1461 | }; | 1461 | }; |
1462 | - | 1462 | + |
1463 | /* INPUT MASK */ | 1463 | /* INPUT MASK */ |
1464 | - | 1464 | + |
1465 | function init_InputMask() { | 1465 | function init_InputMask() { |
1466 | - | 1466 | + |
1467 | if( typeof ($.fn.inputmask) === 'undefined'){ return; } | 1467 | if( typeof ($.fn.inputmask) === 'undefined'){ return; } |
1468 | console.log('init_InputMask'); | 1468 | console.log('init_InputMask'); |
1469 | - | 1469 | + |
1470 | $(":input").inputmask(); | 1470 | $(":input").inputmask(); |
1471 | - | 1471 | + |
1472 | }; | 1472 | }; |
1473 | - | 1473 | + |
1474 | /* COLOR PICKER */ | 1474 | /* COLOR PICKER */ |
1475 | - | 1475 | + |
1476 | function init_ColorPicker() { | 1476 | function init_ColorPicker() { |
1477 | - | 1477 | + |
1478 | if( typeof ($.fn.colorpicker) === 'undefined'){ return; } | 1478 | if( typeof ($.fn.colorpicker) === 'undefined'){ return; } |
1479 | console.log('init_ColorPicker'); | 1479 | console.log('init_ColorPicker'); |
1480 | - | 1480 | + |
1481 | $('.demo1').colorpicker(); | 1481 | $('.demo1').colorpicker(); |
1482 | $('.demo2').colorpicker(); | 1482 | $('.demo2').colorpicker(); |
1483 | 1483 | ||
@@ -1491,17 +1491,17 @@ if (typeof NProgress != 'undefined') { | @@ -1491,17 +1491,17 @@ if (typeof NProgress != 'undefined') { | ||
1491 | }); | 1491 | }); |
1492 | 1492 | ||
1493 | $('.demo-auto').colorpicker(); | 1493 | $('.demo-auto').colorpicker(); |
1494 | - | ||
1495 | - }; | ||
1496 | - | ||
1497 | - | 1494 | + |
1495 | + }; | ||
1496 | + | ||
1497 | + | ||
1498 | /* ION RANGE SLIDER */ | 1498 | /* ION RANGE SLIDER */ |
1499 | - | 1499 | + |
1500 | function init_IonRangeSlider() { | 1500 | function init_IonRangeSlider() { |
1501 | - | 1501 | + |
1502 | if( typeof ($.fn.ionRangeSlider) === 'undefined'){ return; } | 1502 | if( typeof ($.fn.ionRangeSlider) === 'undefined'){ return; } |
1503 | console.log('init_IonRangeSlider'); | 1503 | console.log('init_IonRangeSlider'); |
1504 | - | 1504 | + |
1505 | $("#range_27").ionRangeSlider({ | 1505 | $("#range_27").ionRangeSlider({ |
1506 | type: "double", | 1506 | type: "double", |
1507 | min: 1000000, | 1507 | min: 1000000, |
@@ -1562,17 +1562,17 @@ if (typeof NProgress != 'undefined') { | @@ -1562,17 +1562,17 @@ if (typeof NProgress != 'undefined') { | ||
1562 | return m.format("Do MMMM, HH:mm"); | 1562 | return m.format("Do MMMM, HH:mm"); |
1563 | } | 1563 | } |
1564 | }); | 1564 | }); |
1565 | - | 1565 | + |
1566 | }; | 1566 | }; |
1567 | - | ||
1568 | - | 1567 | + |
1568 | + | ||
1569 | /* DATERANGEPICKER */ | 1569 | /* DATERANGEPICKER */ |
1570 | - | 1570 | + |
1571 | function init_daterangepicker() { | 1571 | function init_daterangepicker() { |
1572 | 1572 | ||
1573 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } | 1573 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } |
1574 | console.log('init_daterangepicker'); | 1574 | console.log('init_daterangepicker'); |
1575 | - | 1575 | + |
1576 | var cb = function(start, end, label) { | 1576 | var cb = function(start, end, label) { |
1577 | console.log(start.toISOString(), end.toISOString(), label); | 1577 | console.log(start.toISOString(), end.toISOString(), label); |
1578 | $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); | 1578 | $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); |
@@ -1616,7 +1616,7 @@ if (typeof NProgress != 'undefined') { | @@ -1616,7 +1616,7 @@ if (typeof NProgress != 'undefined') { | ||
1616 | firstDay: 1 | 1616 | firstDay: 1 |
1617 | } | 1617 | } |
1618 | }; | 1618 | }; |
1619 | - | 1619 | + |
1620 | $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); | 1620 | $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); |
1621 | $('#reportrange').daterangepicker(optionSet1, cb); | 1621 | $('#reportrange').daterangepicker(optionSet1, cb); |
1622 | $('#reportrange').on('show.daterangepicker', function() { | 1622 | $('#reportrange').on('show.daterangepicker', function() { |
@@ -1640,14 +1640,14 @@ if (typeof NProgress != 'undefined') { | @@ -1640,14 +1640,14 @@ if (typeof NProgress != 'undefined') { | ||
1640 | $('#destroy').click(function() { | 1640 | $('#destroy').click(function() { |
1641 | $('#reportrange').data('daterangepicker').remove(); | 1641 | $('#reportrange').data('daterangepicker').remove(); |
1642 | }); | 1642 | }); |
1643 | - | 1643 | + |
1644 | } | 1644 | } |
1645 | - | 1645 | + |
1646 | function init_daterangepicker_right() { | 1646 | function init_daterangepicker_right() { |
1647 | - | 1647 | + |
1648 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } | 1648 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } |
1649 | console.log('init_daterangepicker_right'); | 1649 | console.log('init_daterangepicker_right'); |
1650 | - | 1650 | + |
1651 | var cb = function(start, end, label) { | 1651 | var cb = function(start, end, label) { |
1652 | console.log(start.toISOString(), end.toISOString(), label); | 1652 | console.log(start.toISOString(), end.toISOString(), label); |
1653 | $('#reportrange_right span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); | 1653 | $('#reportrange_right span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); |
@@ -1722,12 +1722,12 @@ if (typeof NProgress != 'undefined') { | @@ -1722,12 +1722,12 @@ if (typeof NProgress != 'undefined') { | ||
1722 | }); | 1722 | }); |
1723 | 1723 | ||
1724 | } | 1724 | } |
1725 | - | 1725 | + |
1726 | function init_daterangepicker_single_call() { | 1726 | function init_daterangepicker_single_call() { |
1727 | - | 1727 | + |
1728 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } | 1728 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } |
1729 | console.log('init_daterangepicker_single_call'); | 1729 | console.log('init_daterangepicker_single_call'); |
1730 | - | 1730 | + |
1731 | $('#single_cal1').daterangepicker({ | 1731 | $('#single_cal1').daterangepicker({ |
1732 | singleDatePicker: true, | 1732 | singleDatePicker: true, |
1733 | singleClasses: "picker_1" | 1733 | singleClasses: "picker_1" |
@@ -1752,16 +1752,16 @@ if (typeof NProgress != 'undefined') { | @@ -1752,16 +1752,16 @@ if (typeof NProgress != 'undefined') { | ||
1752 | }, function(start, end, label) { | 1752 | }, function(start, end, label) { |
1753 | console.log(start.toISOString(), end.toISOString(), label); | 1753 | console.log(start.toISOString(), end.toISOString(), label); |
1754 | }); | 1754 | }); |
1755 | - | ||
1756 | - | 1755 | + |
1756 | + | ||
1757 | } | 1757 | } |
1758 | - | ||
1759 | - | 1758 | + |
1759 | + | ||
1760 | function init_daterangepicker_reservation() { | 1760 | function init_daterangepicker_reservation() { |
1761 | - | 1761 | + |
1762 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } | 1762 | if( typeof ($.fn.daterangepicker) === 'undefined'){ return; } |
1763 | console.log('init_daterangepicker_reservation'); | 1763 | console.log('init_daterangepicker_reservation'); |
1764 | - | 1764 | + |
1765 | $('#reservation').daterangepicker(null, function(start, end, label) { | 1765 | $('#reservation').daterangepicker(null, function(start, end, label) { |
1766 | console.log(start.toISOString(), end.toISOString(), label); | 1766 | console.log(start.toISOString(), end.toISOString(), label); |
1767 | }); | 1767 | }); |
@@ -1773,16 +1773,16 @@ if (typeof NProgress != 'undefined') { | @@ -1773,16 +1773,16 @@ if (typeof NProgress != 'undefined') { | ||
1773 | format: 'MM/DD/YYYY h:mm A' | 1773 | format: 'MM/DD/YYYY h:mm A' |
1774 | } | 1774 | } |
1775 | }); | 1775 | }); |
1776 | - | 1776 | + |
1777 | } | 1777 | } |
1778 | - | 1778 | + |
1779 | /* SMART WIZARD */ | 1779 | /* SMART WIZARD */ |
1780 | - | 1780 | + |
1781 | function init_SmartWizard() { | 1781 | function init_SmartWizard() { |
1782 | - | 1782 | + |
1783 | if( typeof ($.fn.smartWizard) === 'undefined'){ return; } | 1783 | if( typeof ($.fn.smartWizard) === 'undefined'){ return; } |
1784 | console.log('init_SmartWizard'); | 1784 | console.log('init_SmartWizard'); |
1785 | - | 1785 | + |
1786 | $('#wizard').smartWizard(); | 1786 | $('#wizard').smartWizard(); |
1787 | 1787 | ||
1788 | $('#wizard_verticle').smartWizard({ | 1788 | $('#wizard_verticle').smartWizard({ |
@@ -1792,17 +1792,17 @@ if (typeof NProgress != 'undefined') { | @@ -1792,17 +1792,17 @@ if (typeof NProgress != 'undefined') { | ||
1792 | $('.buttonNext').addClass('btn btn-success'); | 1792 | $('.buttonNext').addClass('btn btn-success'); |
1793 | $('.buttonPrevious').addClass('btn btn-primary'); | 1793 | $('.buttonPrevious').addClass('btn btn-primary'); |
1794 | $('.buttonFinish').addClass('btn btn-default'); | 1794 | $('.buttonFinish').addClass('btn btn-default'); |
1795 | - | 1795 | + |
1796 | }; | 1796 | }; |
1797 | - | ||
1798 | - | 1797 | + |
1798 | + | ||
1799 | /* VALIDATOR */ | 1799 | /* VALIDATOR */ |
1800 | 1800 | ||
1801 | function init_validator () { | 1801 | function init_validator () { |
1802 | - | 1802 | + |
1803 | if( typeof (validator) === 'undefined'){ return; } | 1803 | if( typeof (validator) === 'undefined'){ return; } |
1804 | - console.log('init_validator'); | ||
1805 | - | 1804 | + console.log('init_validator'); |
1805 | + | ||
1806 | // initialize the validator function | 1806 | // initialize the validator function |
1807 | validator.message.date = 'not a real date'; | 1807 | validator.message.date = 'not a real date'; |
1808 | 1808 | ||
@@ -1830,16 +1830,16 @@ if (typeof NProgress != 'undefined') { | @@ -1830,16 +1830,16 @@ if (typeof NProgress != 'undefined') { | ||
1830 | 1830 | ||
1831 | return false; | 1831 | return false; |
1832 | }); | 1832 | }); |
1833 | - | 1833 | + |
1834 | }; | 1834 | }; |
1835 | - | 1835 | + |
1836 | /* PNotify */ | 1836 | /* PNotify */ |
1837 | - | 1837 | + |
1838 | function init_PNotify() { | 1838 | function init_PNotify() { |
1839 | - | 1839 | + |
1840 | if( typeof (PNotify) === 'undefined'){ return; } | 1840 | if( typeof (PNotify) === 'undefined'){ return; } |
1841 | console.log('init_PNotify'); | 1841 | console.log('init_PNotify'); |
1842 | - | 1842 | + |
1843 | new PNotify({ | 1843 | new PNotify({ |
1844 | title: "PNotify", | 1844 | title: "PNotify", |
1845 | type: "info", | 1845 | type: "info", |
@@ -1862,18 +1862,18 @@ if (typeof NProgress != 'undefined') { | @@ -1862,18 +1862,18 @@ if (typeof NProgress != 'undefined') { | ||
1862 | } | 1862 | } |
1863 | }); | 1863 | }); |
1864 | 1864 | ||
1865 | - }; | ||
1866 | - | ||
1867 | - | 1865 | + }; |
1866 | + | ||
1867 | + | ||
1868 | /* CUSTOM NOTIFICATION */ | 1868 | /* CUSTOM NOTIFICATION */ |
1869 | - | 1869 | + |
1870 | function init_CustomNotification() { | 1870 | function init_CustomNotification() { |
1871 | - | 1871 | + |
1872 | console.log('run_customtabs'); | 1872 | console.log('run_customtabs'); |
1873 | - | 1873 | + |
1874 | if( typeof (CustomTabs) === 'undefined'){ return; } | 1874 | if( typeof (CustomTabs) === 'undefined'){ return; } |
1875 | console.log('init_CustomTabs'); | 1875 | console.log('init_CustomTabs'); |
1876 | - | 1876 | + |
1877 | var cnt = 10; | 1877 | var cnt = 10; |
1878 | 1878 | ||
1879 | TabbedNotification = function(options) { | 1879 | TabbedNotification = function(options) { |
@@ -1919,16 +1919,16 @@ if (typeof NProgress != 'undefined') { | @@ -1919,16 +1919,16 @@ if (typeof NProgress != 'undefined') { | ||
1919 | $('.notifications a').first().addClass('active'); | 1919 | $('.notifications a').first().addClass('active'); |
1920 | $('#notif-group div').first().css('display', 'block'); | 1920 | $('#notif-group div').first().css('display', 'block'); |
1921 | }); | 1921 | }); |
1922 | - | 1922 | + |
1923 | }; | 1923 | }; |
1924 | - | 1924 | + |
1925 | /* EASYPIECHART */ | 1925 | /* EASYPIECHART */ |
1926 | - | 1926 | + |
1927 | function init_EasyPieChart() { | 1927 | function init_EasyPieChart() { |
1928 | - | 1928 | + |
1929 | if( typeof ($.fn.easyPieChart) === 'undefined'){ return; } | 1929 | if( typeof ($.fn.easyPieChart) === 'undefined'){ return; } |
1930 | console.log('init_EasyPieChart'); | 1930 | console.log('init_EasyPieChart'); |
1931 | - | 1931 | + |
1932 | $('.chart').easyPieChart({ | 1932 | $('.chart').easyPieChart({ |
1933 | easing: 'easeOutElastic', | 1933 | easing: 'easeOutElastic', |
1934 | delay: 3000, | 1934 | delay: 3000, |
@@ -1978,27 +1978,27 @@ if (typeof NProgress != 'undefined') { | @@ -1978,27 +1978,27 @@ if (typeof NProgress != 'undefined') { | ||
1978 | hide: 400 | 1978 | hide: 400 |
1979 | } | 1979 | } |
1980 | }); | 1980 | }); |
1981 | - | 1981 | + |
1982 | }; | 1982 | }; |
1983 | - | ||
1984 | - | 1983 | + |
1984 | + | ||
1985 | function init_charts() { | 1985 | function init_charts() { |
1986 | - | 1986 | + |
1987 | console.log('run_charts typeof [' + typeof (Chart) + ']'); | 1987 | console.log('run_charts typeof [' + typeof (Chart) + ']'); |
1988 | - | 1988 | + |
1989 | if( typeof (Chart) === 'undefined'){ return; } | 1989 | if( typeof (Chart) === 'undefined'){ return; } |
1990 | - | 1990 | + |
1991 | console.log('init_charts'); | 1991 | console.log('init_charts'); |
1992 | - | ||
1993 | - | 1992 | + |
1993 | + | ||
1994 | Chart.defaults.global.legend = { | 1994 | Chart.defaults.global.legend = { |
1995 | enabled: false | 1995 | enabled: false |
1996 | }; | 1996 | }; |
1997 | - | ||
1998 | - | 1997 | + |
1998 | + | ||
1999 | 1999 | ||
2000 | if ($('#canvas_line').length ){ | 2000 | if ($('#canvas_line').length ){ |
2001 | - | 2001 | + |
2002 | var canvas_line_00 = new Chart(document.getElementById("canvas_line"), { | 2002 | var canvas_line_00 = new Chart(document.getElementById("canvas_line"), { |
2003 | type: 'line', | 2003 | type: 'line', |
2004 | data: { | 2004 | data: { |
@@ -2026,12 +2026,12 @@ if (typeof NProgress != 'undefined') { | @@ -2026,12 +2026,12 @@ if (typeof NProgress != 'undefined') { | ||
2026 | }] | 2026 | }] |
2027 | }, | 2027 | }, |
2028 | }); | 2028 | }); |
2029 | - | 2029 | + |
2030 | } | 2030 | } |
2031 | 2031 | ||
2032 | - | 2032 | + |
2033 | if ($('#canvas_line1').length ){ | 2033 | if ($('#canvas_line1').length ){ |
2034 | - | 2034 | + |
2035 | var canvas_line_01 = new Chart(document.getElementById("canvas_line1"), { | 2035 | var canvas_line_01 = new Chart(document.getElementById("canvas_line1"), { |
2036 | type: 'line', | 2036 | type: 'line', |
2037 | data: { | 2037 | data: { |
@@ -2059,12 +2059,12 @@ if (typeof NProgress != 'undefined') { | @@ -2059,12 +2059,12 @@ if (typeof NProgress != 'undefined') { | ||
2059 | }] | 2059 | }] |
2060 | }, | 2060 | }, |
2061 | }); | 2061 | }); |
2062 | - | 2062 | + |
2063 | } | 2063 | } |
2064 | - | ||
2065 | - | ||
2066 | - if ($('#canvas_line2').length ){ | ||
2067 | - | 2064 | + |
2065 | + | ||
2066 | + if ($('#canvas_line2').length ){ | ||
2067 | + | ||
2068 | var canvas_line_02 = new Chart(document.getElementById("canvas_line2"), { | 2068 | var canvas_line_02 = new Chart(document.getElementById("canvas_line2"), { |
2069 | type: 'line', | 2069 | type: 'line', |
2070 | data: { | 2070 | data: { |
@@ -2093,11 +2093,11 @@ if (typeof NProgress != 'undefined') { | @@ -2093,11 +2093,11 @@ if (typeof NProgress != 'undefined') { | ||
2093 | }, | 2093 | }, |
2094 | }); | 2094 | }); |
2095 | 2095 | ||
2096 | - } | ||
2097 | - | ||
2098 | - | 2096 | + } |
2097 | + | ||
2098 | + | ||
2099 | if ($('#canvas_line3').length ){ | 2099 | if ($('#canvas_line3').length ){ |
2100 | - | 2100 | + |
2101 | var canvas_line_03 = new Chart(document.getElementById("canvas_line3"), { | 2101 | var canvas_line_03 = new Chart(document.getElementById("canvas_line3"), { |
2102 | type: 'line', | 2102 | type: 'line', |
2103 | data: { | 2103 | data: { |
@@ -2126,11 +2126,11 @@ if (typeof NProgress != 'undefined') { | @@ -2126,11 +2126,11 @@ if (typeof NProgress != 'undefined') { | ||
2126 | }, | 2126 | }, |
2127 | }); | 2127 | }); |
2128 | 2128 | ||
2129 | - } | ||
2130 | - | ||
2131 | - | 2129 | + } |
2130 | + | ||
2131 | + | ||
2132 | if ($('#canvas_line4').length ){ | 2132 | if ($('#canvas_line4').length ){ |
2133 | - | 2133 | + |
2134 | var canvas_line_04 = new Chart(document.getElementById("canvas_line4"), { | 2134 | var canvas_line_04 = new Chart(document.getElementById("canvas_line4"), { |
2135 | type: 'line', | 2135 | type: 'line', |
2136 | data: { | 2136 | data: { |
@@ -2157,15 +2157,15 @@ if (typeof NProgress != 'undefined') { | @@ -2157,15 +2157,15 @@ if (typeof NProgress != 'undefined') { | ||
2157 | data: [82, 23, 66, 9, 99, 4, 2] | 2157 | data: [82, 23, 66, 9, 99, 4, 2] |
2158 | }] | 2158 | }] |
2159 | }, | 2159 | }, |
2160 | - }); | ||
2161 | - | 2160 | + }); |
2161 | + | ||
2162 | } | 2162 | } |
2163 | - | ||
2164 | - | 2163 | + |
2164 | + | ||
2165 | // Line chart | 2165 | // Line chart |
2166 | - | ||
2167 | - if ($('#lineChart').length ){ | ||
2168 | - | 2166 | + |
2167 | + if ($('#lineChart').length ){ | ||
2168 | + | ||
2169 | var ctx = document.getElementById("lineChart"); | 2169 | var ctx = document.getElementById("lineChart"); |
2170 | var lineChart = new Chart(ctx, { | 2170 | var lineChart = new Chart(ctx, { |
2171 | type: 'line', | 2171 | type: 'line', |
@@ -2194,13 +2194,13 @@ if (typeof NProgress != 'undefined') { | @@ -2194,13 +2194,13 @@ if (typeof NProgress != 'undefined') { | ||
2194 | }] | 2194 | }] |
2195 | }, | 2195 | }, |
2196 | }); | 2196 | }); |
2197 | - | 2197 | + |
2198 | } | 2198 | } |
2199 | - | 2199 | + |
2200 | // Bar chart | 2200 | // Bar chart |
2201 | - | ||
2202 | - if ($('#mybarChart').length ){ | ||
2203 | - | 2201 | + |
2202 | + if ($('#mybarChart').length ){ | ||
2203 | + | ||
2204 | var ctx = document.getElementById("mybarChart"); | 2204 | var ctx = document.getElementById("mybarChart"); |
2205 | var mybarChart = new Chart(ctx, { | 2205 | var mybarChart = new Chart(ctx, { |
2206 | type: 'bar', | 2206 | type: 'bar', |
@@ -2227,14 +2227,14 @@ if (typeof NProgress != 'undefined') { | @@ -2227,14 +2227,14 @@ if (typeof NProgress != 'undefined') { | ||
2227 | } | 2227 | } |
2228 | } | 2228 | } |
2229 | }); | 2229 | }); |
2230 | - | ||
2231 | - } | ||
2232 | - | 2230 | + |
2231 | + } | ||
2232 | + | ||
2233 | 2233 | ||
2234 | // Doughnut chart | 2234 | // Doughnut chart |
2235 | - | ||
2236 | - if ($('#canvasDoughnut').length ){ | ||
2237 | - | 2235 | + |
2236 | + if ($('#canvasDoughnut').length ){ | ||
2237 | + | ||
2238 | var ctx = document.getElementById("canvasDoughnut"); | 2238 | var ctx = document.getElementById("canvasDoughnut"); |
2239 | var data = { | 2239 | var data = { |
2240 | labels: [ | 2240 | labels: [ |
@@ -2269,13 +2269,13 @@ if (typeof NProgress != 'undefined') { | @@ -2269,13 +2269,13 @@ if (typeof NProgress != 'undefined') { | ||
2269 | tooltipFillColor: "rgba(51, 51, 51, 0.55)", | 2269 | tooltipFillColor: "rgba(51, 51, 51, 0.55)", |
2270 | data: data | 2270 | data: data |
2271 | }); | 2271 | }); |
2272 | - | ||
2273 | - } | 2272 | + |
2273 | + } | ||
2274 | 2274 | ||
2275 | // Radar chart | 2275 | // Radar chart |
2276 | - | ||
2277 | - if ($('#canvasRadar').length ){ | ||
2278 | - | 2276 | + |
2277 | + if ($('#canvasRadar').length ){ | ||
2278 | + | ||
2279 | var ctx = document.getElementById("canvasRadar"); | 2279 | var ctx = document.getElementById("canvasRadar"); |
2280 | var data = { | 2280 | var data = { |
2281 | labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"], | 2281 | labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"], |
@@ -2304,13 +2304,13 @@ if (typeof NProgress != 'undefined') { | @@ -2304,13 +2304,13 @@ if (typeof NProgress != 'undefined') { | ||
2304 | type: 'radar', | 2304 | type: 'radar', |
2305 | data: data, | 2305 | data: data, |
2306 | }); | 2306 | }); |
2307 | - | 2307 | + |
2308 | } | 2308 | } |
2309 | - | ||
2310 | - | 2309 | + |
2310 | + | ||
2311 | // Pie chart | 2311 | // Pie chart |
2312 | if ($('#pieChart').length ){ | 2312 | if ($('#pieChart').length ){ |
2313 | - | 2313 | + |
2314 | var ctx = document.getElementById("pieChart"); | 2314 | var ctx = document.getElementById("pieChart"); |
2315 | var data = { | 2315 | var data = { |
2316 | datasets: [{ | 2316 | datasets: [{ |
@@ -2340,10 +2340,10 @@ if (typeof NProgress != 'undefined') { | @@ -2340,10 +2340,10 @@ if (typeof NProgress != 'undefined') { | ||
2340 | legend: false | 2340 | legend: false |
2341 | } | 2341 | } |
2342 | }); | 2342 | }); |
2343 | - | 2343 | + |
2344 | } | 2344 | } |
2345 | - | ||
2346 | - | 2345 | + |
2346 | + | ||
2347 | // PolarArea chart | 2347 | // PolarArea chart |
2348 | 2348 | ||
2349 | if ($('#polarArea').length ){ | 2349 | if ($('#polarArea').length ){ |
@@ -2381,30 +2381,30 @@ if (typeof NProgress != 'undefined') { | @@ -2381,30 +2381,30 @@ if (typeof NProgress != 'undefined') { | ||
2381 | } | 2381 | } |
2382 | } | 2382 | } |
2383 | }); | 2383 | }); |
2384 | - | 2384 | + |
2385 | } | 2385 | } |
2386 | } | 2386 | } |
2387 | 2387 | ||
2388 | /* COMPOSE */ | 2388 | /* COMPOSE */ |
2389 | - | 2389 | + |
2390 | function init_compose() { | 2390 | function init_compose() { |
2391 | - | 2391 | + |
2392 | if( typeof ($.fn.slideToggle) === 'undefined'){ return; } | 2392 | if( typeof ($.fn.slideToggle) === 'undefined'){ return; } |
2393 | console.log('init_compose'); | 2393 | console.log('init_compose'); |
2394 | - | 2394 | + |
2395 | $('#compose, .compose-close').click(function(){ | 2395 | $('#compose, .compose-close').click(function(){ |
2396 | $('.compose').slideToggle(); | 2396 | $('.compose').slideToggle(); |
2397 | }); | 2397 | }); |
2398 | - | 2398 | + |
2399 | }; | 2399 | }; |
2400 | - | 2400 | + |
2401 | /* CALENDAR */ | 2401 | /* CALENDAR */ |
2402 | - | 2402 | + |
2403 | function init_calendar() { | 2403 | function init_calendar() { |
2404 | - | 2404 | + |
2405 | if( typeof ($.fn.fullCalendar) === 'undefined'){ return; } | 2405 | if( typeof ($.fn.fullCalendar) === 'undefined'){ return; } |
2406 | console.log('init_calendar'); | 2406 | console.log('init_calendar'); |
2407 | - | 2407 | + |
2408 | var date = new Date(), | 2408 | var date = new Date(), |
2409 | d = date.getDate(), | 2409 | d = date.getDate(), |
2410 | m = date.getMonth(), | 2410 | m = date.getMonth(), |
@@ -2498,18 +2498,18 @@ if (typeof NProgress != 'undefined') { | @@ -2498,18 +2498,18 @@ if (typeof NProgress != 'undefined') { | ||
2498 | url: 'http://google.com/' | 2498 | url: 'http://google.com/' |
2499 | }] | 2499 | }] |
2500 | }); | 2500 | }); |
2501 | - | 2501 | + |
2502 | }; | 2502 | }; |
2503 | - | 2503 | + |
2504 | /* DATA TABLES */ | 2504 | /* DATA TABLES */ |
2505 | - | 2505 | + |
2506 | function init_DataTables() { | 2506 | function init_DataTables() { |
2507 | - | 2507 | + |
2508 | console.log('run_datatables'); | 2508 | console.log('run_datatables'); |
2509 | - | 2509 | + |
2510 | if( typeof ($.fn.DataTable) === 'undefined'){ return; } | 2510 | if( typeof ($.fn.DataTable) === 'undefined'){ return; } |
2511 | console.log('init_DataTables'); | 2511 | console.log('init_DataTables'); |
2512 | - | 2512 | + |
2513 | var handleDataTableButtons = function() { | 2513 | var handleDataTableButtons = function() { |
2514 | if ($("#datatable-buttons").length) { | 2514 | if ($("#datatable-buttons").length) { |
2515 | $("#datatable-buttons").DataTable({ | 2515 | $("#datatable-buttons").DataTable({ |
@@ -2585,18 +2585,18 @@ if (typeof NProgress != 'undefined') { | @@ -2585,18 +2585,18 @@ if (typeof NProgress != 'undefined') { | ||
2585 | }); | 2585 | }); |
2586 | 2586 | ||
2587 | TableManageButtons.init(); | 2587 | TableManageButtons.init(); |
2588 | - | 2588 | + |
2589 | }; | 2589 | }; |
2590 | - | 2590 | + |
2591 | /* CHART - MORRIS */ | 2591 | /* CHART - MORRIS */ |
2592 | - | 2592 | + |
2593 | function init_morris_charts() { | 2593 | function init_morris_charts() { |
2594 | - | 2594 | + |
2595 | if( typeof (Morris) === 'undefined'){ return; } | 2595 | if( typeof (Morris) === 'undefined'){ return; } |
2596 | console.log('init_morris_charts'); | 2596 | console.log('init_morris_charts'); |
2597 | - | ||
2598 | - if ($('#graph_bar').length){ | ||
2599 | - | 2597 | + |
2598 | + if ($('#graph_bar').length){ | ||
2599 | + | ||
2600 | Morris.Bar({ | 2600 | Morris.Bar({ |
2601 | element: 'graph_bar', | 2601 | element: 'graph_bar', |
2602 | data: [ | 2602 | data: [ |
@@ -2621,10 +2621,10 @@ if (typeof NProgress != 'undefined') { | @@ -2621,10 +2621,10 @@ if (typeof NProgress != 'undefined') { | ||
2621 | resize: true | 2621 | resize: true |
2622 | }); | 2622 | }); |
2623 | 2623 | ||
2624 | - } | ||
2625 | - | 2624 | + } |
2625 | + | ||
2626 | if ($('#graph_bar_group').length ){ | 2626 | if ($('#graph_bar_group').length ){ |
2627 | - | 2627 | + |
2628 | Morris.Bar({ | 2628 | Morris.Bar({ |
2629 | element: 'graph_bar_group', | 2629 | element: 'graph_bar_group', |
2630 | data: [ | 2630 | data: [ |
@@ -2649,9 +2649,9 @@ if (typeof NProgress != 'undefined') { | @@ -2649,9 +2649,9 @@ if (typeof NProgress != 'undefined') { | ||
2649 | }); | 2649 | }); |
2650 | 2650 | ||
2651 | } | 2651 | } |
2652 | - | 2652 | + |
2653 | if ($('#graphx').length ){ | 2653 | if ($('#graphx').length ){ |
2654 | - | 2654 | + |
2655 | Morris.Bar({ | 2655 | Morris.Bar({ |
2656 | element: 'graphx', | 2656 | element: 'graphx', |
2657 | data: [ | 2657 | data: [ |
@@ -2671,9 +2671,9 @@ if (typeof NProgress != 'undefined') { | @@ -2671,9 +2671,9 @@ if (typeof NProgress != 'undefined') { | ||
2671 | }); | 2671 | }); |
2672 | 2672 | ||
2673 | } | 2673 | } |
2674 | - | 2674 | + |
2675 | if ($('#graph_area').length ){ | 2675 | if ($('#graph_area').length ){ |
2676 | - | 2676 | + |
2677 | Morris.Area({ | 2677 | Morris.Area({ |
2678 | element: 'graph_area', | 2678 | element: 'graph_area', |
2679 | data: [ | 2679 | data: [ |
@@ -2698,9 +2698,9 @@ if (typeof NProgress != 'undefined') { | @@ -2698,9 +2698,9 @@ if (typeof NProgress != 'undefined') { | ||
2698 | }); | 2698 | }); |
2699 | 2699 | ||
2700 | } | 2700 | } |
2701 | - | 2701 | + |
2702 | if ($('#graph_donut').length ){ | 2702 | if ($('#graph_donut').length ){ |
2703 | - | 2703 | + |
2704 | Morris.Donut({ | 2704 | Morris.Donut({ |
2705 | element: 'graph_donut', | 2705 | element: 'graph_donut', |
2706 | data: [ | 2706 | data: [ |
@@ -2717,9 +2717,9 @@ if (typeof NProgress != 'undefined') { | @@ -2717,9 +2717,9 @@ if (typeof NProgress != 'undefined') { | ||
2717 | }); | 2717 | }); |
2718 | 2718 | ||
2719 | } | 2719 | } |
2720 | - | 2720 | + |
2721 | if ($('#graph_line').length ){ | 2721 | if ($('#graph_line').length ){ |
2722 | - | 2722 | + |
2723 | Morris.Line({ | 2723 | Morris.Line({ |
2724 | element: 'graph_line', | 2724 | element: 'graph_line', |
2725 | xkey: 'year', | 2725 | xkey: 'year', |
@@ -2740,22 +2740,22 @@ if (typeof NProgress != 'undefined') { | @@ -2740,22 +2740,22 @@ if (typeof NProgress != 'undefined') { | ||
2740 | $MENU_TOGGLE.on('click', function() { | 2740 | $MENU_TOGGLE.on('click', function() { |
2741 | $(window).resize(); | 2741 | $(window).resize(); |
2742 | }); | 2742 | }); |
2743 | - | 2743 | + |
2744 | } | 2744 | } |
2745 | - | 2745 | + |
2746 | }; | 2746 | }; |
2747 | - | ||
2748 | - | ||
2749 | - | 2747 | + |
2748 | + | ||
2749 | + | ||
2750 | /* ECHRTS */ | 2750 | /* ECHRTS */ |
2751 | - | ||
2752 | - | 2751 | + |
2752 | + | ||
2753 | function init_echarts() { | 2753 | function init_echarts() { |
2754 | - | 2754 | + |
2755 | if( typeof (echarts) === 'undefined'){ return; } | 2755 | if( typeof (echarts) === 'undefined'){ return; } |
2756 | console.log('init_echarts'); | 2756 | console.log('init_echarts'); |
2757 | - | ||
2758 | - | 2757 | + |
2758 | + | ||
2759 | var theme = { | 2759 | var theme = { |
2760 | color: [ | 2760 | color: [ |
2761 | '#26B99A', '#34495E', '#BDC3C7', '#3498DB', | 2761 | '#26B99A', '#34495E', '#BDC3C7', '#3498DB', |
@@ -2968,11 +2968,11 @@ if (typeof NProgress != 'undefined') { | @@ -2968,11 +2968,11 @@ if (typeof NProgress != 'undefined') { | ||
2968 | } | 2968 | } |
2969 | }; | 2969 | }; |
2970 | 2970 | ||
2971 | - | 2971 | + |
2972 | //echart Bar | 2972 | //echart Bar |
2973 | - | 2973 | + |
2974 | if ($('#mainb').length ){ | 2974 | if ($('#mainb').length ){ |
2975 | - | 2975 | + |
2976 | var echartBar = echarts.init(document.getElementById('mainb'), theme); | 2976 | var echartBar = echarts.init(document.getElementById('mainb'), theme); |
2977 | 2977 | ||
2978 | echartBar.setOption({ | 2978 | echartBar.setOption({ |
@@ -3043,14 +3043,14 @@ if (typeof NProgress != 'undefined') { | @@ -3043,14 +3043,14 @@ if (typeof NProgress != 'undefined') { | ||
3043 | }); | 3043 | }); |
3044 | 3044 | ||
3045 | } | 3045 | } |
3046 | - | ||
3047 | - | ||
3048 | - | ||
3049 | - | 3046 | + |
3047 | + | ||
3048 | + | ||
3049 | + | ||
3050 | //echart Radar | 3050 | //echart Radar |
3051 | - | ||
3052 | - if ($('#echart_sonar').length ){ | ||
3053 | - | 3051 | + |
3052 | + if ($('#echart_sonar').length ){ | ||
3053 | + | ||
3054 | var echartRadar = echarts.init(document.getElementById('echart_sonar'), theme); | 3054 | var echartRadar = echarts.init(document.getElementById('echart_sonar'), theme); |
3055 | 3055 | ||
3056 | echartRadar.setOption({ | 3056 | echartRadar.setOption({ |
@@ -3115,12 +3115,12 @@ if (typeof NProgress != 'undefined') { | @@ -3115,12 +3115,12 @@ if (typeof NProgress != 'undefined') { | ||
3115 | }] | 3115 | }] |
3116 | }); | 3116 | }); |
3117 | 3117 | ||
3118 | - } | ||
3119 | - | 3118 | + } |
3119 | + | ||
3120 | //echart Funnel | 3120 | //echart Funnel |
3121 | - | ||
3122 | - if ($('#echart_pyramid').length ){ | ||
3123 | - | 3121 | + |
3122 | + if ($('#echart_pyramid').length ){ | ||
3123 | + | ||
3124 | var echartFunnel = echarts.init(document.getElementById('echart_pyramid'), theme); | 3124 | var echartFunnel = echarts.init(document.getElementById('echart_pyramid'), theme); |
3125 | 3125 | ||
3126 | echartFunnel.setOption({ | 3126 | echartFunnel.setOption({ |
@@ -3175,12 +3175,12 @@ if (typeof NProgress != 'undefined') { | @@ -3175,12 +3175,12 @@ if (typeof NProgress != 'undefined') { | ||
3175 | }] | 3175 | }] |
3176 | }); | 3176 | }); |
3177 | 3177 | ||
3178 | - } | ||
3179 | - | 3178 | + } |
3179 | + | ||
3180 | //echart Gauge | 3180 | //echart Gauge |
3181 | - | ||
3182 | - if ($('#echart_gauge').length ){ | ||
3183 | - | 3181 | + |
3182 | + if ($('#echart_gauge').length ){ | ||
3183 | + | ||
3184 | var echartGauge = echarts.init(document.getElementById('echart_gauge'), theme); | 3184 | var echartGauge = echarts.init(document.getElementById('echart_gauge'), theme); |
3185 | 3185 | ||
3186 | echartGauge.setOption({ | 3186 | echartGauge.setOption({ |
@@ -3295,12 +3295,12 @@ if (typeof NProgress != 'undefined') { | @@ -3295,12 +3295,12 @@ if (typeof NProgress != 'undefined') { | ||
3295 | }] | 3295 | }] |
3296 | }); | 3296 | }); |
3297 | 3297 | ||
3298 | - } | ||
3299 | - | 3298 | + } |
3299 | + | ||
3300 | //echart Line | 3300 | //echart Line |
3301 | - | ||
3302 | - if ($('#echart_line').length ){ | ||
3303 | - | 3301 | + |
3302 | + if ($('#echart_line').length ){ | ||
3303 | + | ||
3304 | var echartLine = echarts.init(document.getElementById('echart_line'), theme); | 3304 | var echartLine = echarts.init(document.getElementById('echart_line'), theme); |
3305 | 3305 | ||
3306 | echartLine.setOption({ | 3306 | echartLine.setOption({ |
@@ -3387,12 +3387,12 @@ if (typeof NProgress != 'undefined') { | @@ -3387,12 +3387,12 @@ if (typeof NProgress != 'undefined') { | ||
3387 | }] | 3387 | }] |
3388 | }); | 3388 | }); |
3389 | 3389 | ||
3390 | - } | ||
3391 | - | 3390 | + } |
3391 | + | ||
3392 | //echart Scatter | 3392 | //echart Scatter |
3393 | - | ||
3394 | - if ($('#echart_scatter').length ){ | ||
3395 | - | 3393 | + |
3394 | + if ($('#echart_scatter').length ){ | ||
3395 | + | ||
3396 | var echartScatter = echarts.init(document.getElementById('echart_scatter'), theme); | 3396 | var echartScatter = echarts.init(document.getElementById('echart_scatter'), theme); |
3397 | 3397 | ||
3398 | echartScatter.setOption({ | 3398 | echartScatter.setOption({ |
@@ -4007,12 +4007,12 @@ if (typeof NProgress != 'undefined') { | @@ -4007,12 +4007,12 @@ if (typeof NProgress != 'undefined') { | ||
4007 | }] | 4007 | }] |
4008 | }); | 4008 | }); |
4009 | 4009 | ||
4010 | - } | ||
4011 | - | 4010 | + } |
4011 | + | ||
4012 | //echart Bar Horizontal | 4012 | //echart Bar Horizontal |
4013 | - | ||
4014 | - if ($('#echart_bar_horizontal').length ){ | ||
4015 | - | 4013 | + |
4014 | + if ($('#echart_bar_horizontal').length ){ | ||
4015 | + | ||
4016 | var echartBar = echarts.init(document.getElementById('echart_bar_horizontal'), theme); | 4016 | var echartBar = echarts.init(document.getElementById('echart_bar_horizontal'), theme); |
4017 | 4017 | ||
4018 | echartBar.setOption({ | 4018 | echartBar.setOption({ |
@@ -4056,14 +4056,14 @@ if (typeof NProgress != 'undefined') { | @@ -4056,14 +4056,14 @@ if (typeof NProgress != 'undefined') { | ||
4056 | }] | 4056 | }] |
4057 | }); | 4057 | }); |
4058 | 4058 | ||
4059 | - } | ||
4060 | - | 4059 | + } |
4060 | + | ||
4061 | //echart Pie Collapse | 4061 | //echart Pie Collapse |
4062 | - | ||
4063 | - if ($('#echart_pie2').length ){ | ||
4064 | - | 4062 | + |
4063 | + if ($('#echart_pie2').length ){ | ||
4064 | + | ||
4065 | var echartPieCollapse = echarts.init(document.getElementById('echart_pie2'), theme); | 4065 | var echartPieCollapse = echarts.init(document.getElementById('echart_pie2'), theme); |
4066 | - | 4066 | + |
4067 | echartPieCollapse.setOption({ | 4067 | echartPieCollapse.setOption({ |
4068 | tooltip: { | 4068 | tooltip: { |
4069 | trigger: 'item', | 4069 | trigger: 'item', |
@@ -4123,14 +4123,14 @@ if (typeof NProgress != 'undefined') { | @@ -4123,14 +4123,14 @@ if (typeof NProgress != 'undefined') { | ||
4123 | }] | 4123 | }] |
4124 | }); | 4124 | }); |
4125 | 4125 | ||
4126 | - } | ||
4127 | - | 4126 | + } |
4127 | + | ||
4128 | //echart Donut | 4128 | //echart Donut |
4129 | - | ||
4130 | - if ($('#echart_donut').length ){ | ||
4131 | - | 4129 | + |
4130 | + if ($('#echart_donut').length ){ | ||
4131 | + | ||
4132 | var echartDonut = echarts.init(document.getElementById('echart_donut'), theme); | 4132 | var echartDonut = echarts.init(document.getElementById('echart_donut'), theme); |
4133 | - | 4133 | + |
4134 | echartDonut.setOption({ | 4134 | echartDonut.setOption({ |
4135 | tooltip: { | 4135 | tooltip: { |
4136 | trigger: 'item', | 4136 | trigger: 'item', |
@@ -4210,12 +4210,12 @@ if (typeof NProgress != 'undefined') { | @@ -4210,12 +4210,12 @@ if (typeof NProgress != 'undefined') { | ||
4210 | }] | 4210 | }] |
4211 | }); | 4211 | }); |
4212 | 4212 | ||
4213 | - } | ||
4214 | - | 4213 | + } |
4214 | + | ||
4215 | //echart Pie | 4215 | //echart Pie |
4216 | - | ||
4217 | - if ($('#echart_pie').length ){ | ||
4218 | - | 4216 | + |
4217 | + if ($('#echart_pie').length ){ | ||
4218 | + | ||
4219 | var echartPie = echarts.init(document.getElementById('echart_pie'), theme); | 4219 | var echartPie = echarts.init(document.getElementById('echart_pie'), theme); |
4220 | 4220 | ||
4221 | echartPie.setOption({ | 4221 | echartPie.setOption({ |
@@ -4304,12 +4304,12 @@ if (typeof NProgress != 'undefined') { | @@ -4304,12 +4304,12 @@ if (typeof NProgress != 'undefined') { | ||
4304 | } | 4304 | } |
4305 | }; | 4305 | }; |
4306 | 4306 | ||
4307 | - } | ||
4308 | - | 4307 | + } |
4308 | + | ||
4309 | //echart Mini Pie | 4309 | //echart Mini Pie |
4310 | - | ||
4311 | - if ($('#echart_mini_pie').length ){ | ||
4312 | - | 4310 | + |
4311 | + if ($('#echart_mini_pie').length ){ | ||
4312 | + | ||
4313 | var echartMiniPie = echarts.init(document.getElementById('echart_mini_pie'), theme); | 4313 | var echartMiniPie = echarts.init(document.getElementById('echart_mini_pie'), theme); |
4314 | 4314 | ||
4315 | echartMiniPie .setOption({ | 4315 | echartMiniPie .setOption({ |
@@ -4409,15 +4409,15 @@ if (typeof NProgress != 'undefined') { | @@ -4409,15 +4409,15 @@ if (typeof NProgress != 'undefined') { | ||
4409 | }] | 4409 | }] |
4410 | }); | 4410 | }); |
4411 | 4411 | ||
4412 | - } | ||
4413 | - | 4412 | + } |
4413 | + | ||
4414 | //echart Map | 4414 | //echart Map |
4415 | - | ||
4416 | - if ($('#echart_world_map').length ){ | ||
4417 | - | 4415 | + |
4416 | + if ($('#echart_world_map').length ){ | ||
4417 | + | ||
4418 | var echartMap = echarts.init(document.getElementById('echart_world_map'), theme); | 4418 | var echartMap = echarts.init(document.getElementById('echart_world_map'), theme); |
4419 | - | ||
4420 | - | 4419 | + |
4420 | + | ||
4421 | echartMap.setOption({ | 4421 | echartMap.setOption({ |
4422 | title: { | 4422 | title: { |
4423 | text: 'World Population (2010)', | 4423 | text: 'World Population (2010)', |
@@ -5019,14 +5019,14 @@ if (typeof NProgress != 'undefined') { | @@ -5019,14 +5019,14 @@ if (typeof NProgress != 'undefined') { | ||
5019 | }] | 5019 | }] |
5020 | }] | 5020 | }] |
5021 | }); | 5021 | }); |
5022 | - | 5022 | + |
5023 | } | 5023 | } |
5024 | - | ||
5025 | - } | ||
5026 | - | ||
5027 | - | 5024 | + |
5025 | + } | ||
5026 | + | ||
5027 | + | ||
5028 | $(document).ready(function() { | 5028 | $(document).ready(function() { |
5029 | - | 5029 | + |
5030 | init_sparklines(); | 5030 | init_sparklines(); |
5031 | init_flot_chart(); | 5031 | init_flot_chart(); |
5032 | init_sidebar(); | 5032 | init_sidebar(); |
@@ -5061,7 +5061,7 @@ if (typeof NProgress != 'undefined') { | @@ -5061,7 +5061,7 @@ if (typeof NProgress != 'undefined') { | ||
5061 | init_CustomNotification(); | 5061 | init_CustomNotification(); |
5062 | init_autosize(); | 5062 | init_autosize(); |
5063 | init_autocomplete(); | 5063 | init_autocomplete(); |
5064 | - | ||
5065 | - }); | 5064 | + |
5065 | + }); | ||
5066 | 5066 | ||
5067 | 5067 |
frontend/web/css/main.css
@@ -18,6 +18,25 @@ | @@ -18,6 +18,25 @@ | ||
18 | justify-content: center; | 18 | justify-content: center; |
19 | align-items: center; | 19 | align-items: center; |
20 | text-decoration: none; | 20 | text-decoration: none; |
21 | + position: relative; | ||
22 | + overflow: hidden; | ||
23 | +} | ||
24 | +.navbar ul.nav > li > a:after { | ||
25 | + content: ''; | ||
26 | + width: calc(100% - 24px); | ||
27 | + position: absolute; | ||
28 | + bottom: -5px; | ||
29 | + background: #ffd800; | ||
30 | + height: 3px; | ||
31 | + left: 12px; | ||
32 | + transition:0.1s; | ||
33 | +} | ||
34 | +.navbar ul.nav > li > a:hover::after{ | ||
35 | + bottom: 15px; | ||
36 | +} | ||
37 | +.navbar ul.nav > li > a:hover { | ||
38 | + border-color:#fff; | ||
39 | + background:initial; | ||
21 | } | 40 | } |
22 | .navbar-brand{display: flex;justify-content: center;align-items: center;} | 41 | .navbar-brand{display: flex;justify-content: center;align-items: center;} |
23 | .button1 { | 42 | .button1 { |