From c3e5d74e7ab11bf37b58aa31c98bf6bb3008a680 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Wed, 6 Jul 2016 21:26:55 +1200 Subject: [PATCH] update --- assets/pages/scripts/coming-soon.js | 28 - assets/pages/scripts/coming-soon.min.js | 1 - .../scripts/components-bootstrap-maxlength.js | 46 - .../components-bootstrap-maxlength.min.js | 1 - .../components-bootstrap-select-splitter.js | 26 - ...omponents-bootstrap-select-splitter.min.js | 1 - .../scripts/components-bootstrap-select.js | 23 - .../components-bootstrap-select.min.js | 1 - .../scripts/components-bootstrap-switch.js | 32 - .../components-bootstrap-switch.min.js | 1 - .../scripts/components-bootstrap-tagsinput.js | 96 -- .../components-bootstrap-tagsinput.min.js | 1 - .../scripts/components-bootstrap-touchspin.js | 76 - .../components-bootstrap-touchspin.min.js | 1 - .../pages/scripts/components-code-editors.js | 64 - .../scripts/components-code-editors.min.js | 1 - .../pages/scripts/components-color-pickers.js | 56 - .../scripts/components-color-pickers.min.js | 1 - .../pages/scripts/components-context-menu.js | 61 - .../scripts/components-context-menu.min.js | 1 - .../scripts/components-date-time-pickers.js | 245 --- .../components-date-time-pickers.min.js | 1 - assets/pages/scripts/components-dropdowns.js | 263 ---- .../pages/scripts/components-dropdowns.min.js | 1 - assets/pages/scripts/components-editors.js | 34 - .../pages/scripts/components-editors.min.js | 1 - .../pages/scripts/components-form-tools-2.js | 586 ------- .../scripts/components-form-tools-2.min.js | 1 - assets/pages/scripts/components-form-tools.js | 202 --- .../scripts/components-form-tools.min.js | 1 - .../pages/scripts/components-ion-sliders.js | 150 -- .../scripts/components-ion-sliders.min.js | 1 - assets/pages/scripts/components-knob-dials.js | 27 - .../scripts/components-knob-dials.min.js | 1 - .../pages/scripts/components-multi-select.js | 263 ---- .../scripts/components-multi-select.min.js | 1 - .../pages/scripts/components-nouisliders.js | 308 ---- .../scripts/components-nouisliders.min.js | 1 - assets/pages/scripts/components-select2.js | 127 -- .../pages/scripts/components-select2.min.js | 1 - assets/pages/scripts/components-typeahead.js | 276 ---- .../pages/scripts/components-typeahead.min.js | 1 - assets/pages/scripts/contact.js | 32 - assets/pages/scripts/contact.min.js | 1 - assets/pages/scripts/custom.js | 36 - assets/pages/scripts/custom.min.js | 1 - assets/pages/scripts/dashboard.js | 1395 ----------------- assets/pages/scripts/dashboard.min.js | 1 - assets/pages/scripts/form-dropzone.js | 41 - assets/pages/scripts/form-dropzone.min.js | 1 - assets/pages/scripts/form-editable.js | 571 ------- assets/pages/scripts/form-editable.min.js | 1 - assets/pages/scripts/form-fileupload.js | 61 - assets/pages/scripts/form-fileupload.min.js | 1 - assets/pages/scripts/form-icheck.js | 59 - assets/pages/scripts/form-icheck.min.js | 1 - assets/pages/scripts/form-image-crop.js | 531 ------- assets/pages/scripts/form-image-crop.min.js | 1 - assets/pages/scripts/form-input-mask.js | 66 - assets/pages/scripts/form-input-mask.min.js | 1 - assets/pages/scripts/form-samples.js | 16 - assets/pages/scripts/form-samples.min.js | 1 - assets/pages/scripts/form-validation-md.js | 391 ----- .../pages/scripts/form-validation-md.min.js | 1 - assets/pages/scripts/form-validation.js | 338 ---- assets/pages/scripts/form-validation.min.js | 1 - assets/pages/scripts/form-wizard.js | 260 --- assets/pages/scripts/form-wizard.min.js | 1 - assets/pages/scripts/inbox.js | 333 ---- assets/pages/scripts/inbox.min.js | 1 - assets/pages/scripts/jquery-gantt.js | 18 - assets/pages/scripts/jquery-gantt.min.js | 1 - assets/pages/scripts/lock-2.js | 24 - assets/pages/scripts/lock-2.min.js | 1 - assets/pages/scripts/lock.js | 14 - assets/pages/scripts/lock.min.js | 1 - assets/pages/scripts/login.js | 2 +- assets/pages/scripts/portlet-ajax.js | 30 - assets/pages/scripts/portlet-ajax.min.js | 1 - assets/pages/scripts/portlet-draggable.js | 38 - assets/pages/scripts/portlet-draggable.min.js | 1 - assets/pages/scripts/profile.js | 65 - assets/pages/scripts/profile.min.js | 1 - assets/pages/scripts/search.js | 19 - assets/pages/scripts/search.min.js | 1 - .../pages/scripts/table-bootstrap-master.js | 233 --- .../scripts/table-bootstrap-master.min.js | 1 - assets/pages/scripts/table-bootstrap.js | 60 - assets/pages/scripts/table-bootstrap.min.js | 1 - assets/pages/scripts/table-datatables-ajax.js | 101 -- .../scripts/table-datatables-ajax.min.js | 1 - .../pages/scripts/table-datatables-buttons.js | 323 ---- .../scripts/table-datatables-buttons.min.js | 1 - .../scripts/table-datatables-colreorder.js | 142 -- .../table-datatables-colreorder.min.js | 1 - .../scripts/table-datatables-editable.js | 178 --- .../scripts/table-datatables-editable.min.js | 1 - .../scripts/table-datatables-fixedheader.js | 139 -- .../table-datatables-fixedheader.min.js | 1 - .../pages/scripts/table-datatables-managed.js | 418 ----- .../scripts/table-datatables-managed.min.js | 1 - .../scripts/table-datatables-responsive.js | 263 ---- .../table-datatables-responsive.min.js | 1 - .../scripts/table-datatables-rowreorder.js | 142 -- .../table-datatables-rowreorder.min.js | 1 - .../scripts/table-datatables-scroller.js | 265 ---- .../scripts/table-datatables-scroller.min.js | 1 - assets/pages/scripts/tasks.js | 22 - assets/pages/scripts/tasks.min.js | 1 - assets/pages/scripts/timeline-2.js | 39 - assets/pages/scripts/timeline-2.min.js | 1 - assets/pages/scripts/timeline.js | 39 - assets/pages/scripts/timeline.min.js | 1 - assets/pages/scripts/ui-alerts-api.js | 47 - assets/pages/scripts/ui-alerts-api.min.js | 1 - assets/pages/scripts/ui-blockui.js | 170 -- assets/pages/scripts/ui-blockui.min.js | 1 - assets/pages/scripts/ui-bootbox.js | 80 - assets/pages/scripts/ui-bootbox.min.js | 1 - assets/pages/scripts/ui-bootstrap-growl.js | 34 - .../pages/scripts/ui-bootstrap-growl.min.js | 1 - assets/pages/scripts/ui-buttons.js | 41 - assets/pages/scripts/ui-buttons.min.js | 1 - assets/pages/scripts/ui-confirmations.js | 37 - assets/pages/scripts/ui-confirmations.min.js | 1 - assets/pages/scripts/ui-datepaginator.js | 36 - assets/pages/scripts/ui-datepaginator.min.js | 1 - assets/pages/scripts/ui-extended-modals.js | 74 - .../pages/scripts/ui-extended-modals.min.js | 1 - assets/pages/scripts/ui-general.js | 72 - assets/pages/scripts/ui-general.min.js | 1 - assets/pages/scripts/ui-idletimeout.js | 49 - assets/pages/scripts/ui-idletimeout.min.js | 1 - assets/pages/scripts/ui-modals.js | 21 - assets/pages/scripts/ui-modals.min.js | 1 - assets/pages/scripts/ui-nestable.js | 55 - assets/pages/scripts/ui-nestable.min.js | 1 - assets/pages/scripts/ui-notific8.js | 44 - assets/pages/scripts/ui-notific8.min.js | 1 - assets/pages/scripts/ui-session-timeout.js | 28 - .../pages/scripts/ui-session-timeout.min.js | 1 - assets/pages/scripts/ui-toastr.js | 121 -- assets/pages/scripts/ui-toastr.min.js | 1 - assets/pages/scripts/ui-tree.js | 202 --- assets/pages/scripts/ui-tree.min.js | 1 - assets/pages/scripts/widgets.js | 79 - assets/pages/scripts/widgets.min.js | 1 - 147 files changed, 1 insertion(+), 10955 deletions(-) delete mode 100755 assets/pages/scripts/coming-soon.js delete mode 100755 assets/pages/scripts/coming-soon.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-maxlength.js delete mode 100755 assets/pages/scripts/components-bootstrap-maxlength.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-select-splitter.js delete mode 100755 assets/pages/scripts/components-bootstrap-select-splitter.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-select.js delete mode 100755 assets/pages/scripts/components-bootstrap-select.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-switch.js delete mode 100755 assets/pages/scripts/components-bootstrap-switch.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-tagsinput.js delete mode 100755 assets/pages/scripts/components-bootstrap-tagsinput.min.js delete mode 100755 assets/pages/scripts/components-bootstrap-touchspin.js delete mode 100755 assets/pages/scripts/components-bootstrap-touchspin.min.js delete mode 100755 assets/pages/scripts/components-code-editors.js delete mode 100755 assets/pages/scripts/components-code-editors.min.js delete mode 100755 assets/pages/scripts/components-color-pickers.js delete mode 100755 assets/pages/scripts/components-color-pickers.min.js delete mode 100755 assets/pages/scripts/components-context-menu.js delete mode 100755 assets/pages/scripts/components-context-menu.min.js delete mode 100755 assets/pages/scripts/components-date-time-pickers.js delete mode 100755 assets/pages/scripts/components-date-time-pickers.min.js delete mode 100755 assets/pages/scripts/components-dropdowns.js delete mode 100755 assets/pages/scripts/components-dropdowns.min.js delete mode 100755 assets/pages/scripts/components-editors.js delete mode 100755 assets/pages/scripts/components-editors.min.js delete mode 100755 assets/pages/scripts/components-form-tools-2.js delete mode 100755 assets/pages/scripts/components-form-tools-2.min.js delete mode 100755 assets/pages/scripts/components-form-tools.js delete mode 100755 assets/pages/scripts/components-form-tools.min.js delete mode 100755 assets/pages/scripts/components-ion-sliders.js delete mode 100755 assets/pages/scripts/components-ion-sliders.min.js delete mode 100755 assets/pages/scripts/components-knob-dials.js delete mode 100755 assets/pages/scripts/components-knob-dials.min.js delete mode 100755 assets/pages/scripts/components-multi-select.js delete mode 100755 assets/pages/scripts/components-multi-select.min.js delete mode 100755 assets/pages/scripts/components-nouisliders.js delete mode 100755 assets/pages/scripts/components-nouisliders.min.js delete mode 100755 assets/pages/scripts/components-select2.js delete mode 100755 assets/pages/scripts/components-select2.min.js delete mode 100755 assets/pages/scripts/components-typeahead.js delete mode 100755 assets/pages/scripts/components-typeahead.min.js delete mode 100755 assets/pages/scripts/contact.js delete mode 100755 assets/pages/scripts/contact.min.js delete mode 100755 assets/pages/scripts/custom.js delete mode 100755 assets/pages/scripts/custom.min.js delete mode 100755 assets/pages/scripts/dashboard.js delete mode 100755 assets/pages/scripts/dashboard.min.js delete mode 100755 assets/pages/scripts/form-dropzone.js delete mode 100755 assets/pages/scripts/form-dropzone.min.js delete mode 100755 assets/pages/scripts/form-editable.js delete mode 100755 assets/pages/scripts/form-editable.min.js delete mode 100755 assets/pages/scripts/form-fileupload.js delete mode 100755 assets/pages/scripts/form-fileupload.min.js delete mode 100755 assets/pages/scripts/form-icheck.js delete mode 100755 assets/pages/scripts/form-icheck.min.js delete mode 100755 assets/pages/scripts/form-image-crop.js delete mode 100755 assets/pages/scripts/form-image-crop.min.js delete mode 100755 assets/pages/scripts/form-input-mask.js delete mode 100755 assets/pages/scripts/form-input-mask.min.js delete mode 100755 assets/pages/scripts/form-samples.js delete mode 100755 assets/pages/scripts/form-samples.min.js delete mode 100755 assets/pages/scripts/form-validation-md.js delete mode 100755 assets/pages/scripts/form-validation-md.min.js delete mode 100755 assets/pages/scripts/form-validation.js delete mode 100755 assets/pages/scripts/form-validation.min.js delete mode 100755 assets/pages/scripts/form-wizard.js delete mode 100755 assets/pages/scripts/form-wizard.min.js delete mode 100755 assets/pages/scripts/inbox.js delete mode 100755 assets/pages/scripts/inbox.min.js delete mode 100755 assets/pages/scripts/jquery-gantt.js delete mode 100755 assets/pages/scripts/jquery-gantt.min.js delete mode 100755 assets/pages/scripts/lock-2.js delete mode 100755 assets/pages/scripts/lock-2.min.js delete mode 100755 assets/pages/scripts/lock.js delete mode 100755 assets/pages/scripts/lock.min.js delete mode 100755 assets/pages/scripts/portlet-ajax.js delete mode 100755 assets/pages/scripts/portlet-ajax.min.js delete mode 100755 assets/pages/scripts/portlet-draggable.js delete mode 100755 assets/pages/scripts/portlet-draggable.min.js delete mode 100755 assets/pages/scripts/profile.js delete mode 100755 assets/pages/scripts/profile.min.js delete mode 100755 assets/pages/scripts/search.js delete mode 100755 assets/pages/scripts/search.min.js delete mode 100755 assets/pages/scripts/table-bootstrap-master.js delete mode 100755 assets/pages/scripts/table-bootstrap-master.min.js delete mode 100755 assets/pages/scripts/table-bootstrap.js delete mode 100755 assets/pages/scripts/table-bootstrap.min.js delete mode 100755 assets/pages/scripts/table-datatables-ajax.js delete mode 100755 assets/pages/scripts/table-datatables-ajax.min.js delete mode 100755 assets/pages/scripts/table-datatables-buttons.js delete mode 100755 assets/pages/scripts/table-datatables-buttons.min.js delete mode 100755 assets/pages/scripts/table-datatables-colreorder.js delete mode 100755 assets/pages/scripts/table-datatables-colreorder.min.js delete mode 100755 assets/pages/scripts/table-datatables-editable.js delete mode 100755 assets/pages/scripts/table-datatables-editable.min.js delete mode 100755 assets/pages/scripts/table-datatables-fixedheader.js delete mode 100755 assets/pages/scripts/table-datatables-fixedheader.min.js delete mode 100755 assets/pages/scripts/table-datatables-managed.js delete mode 100755 assets/pages/scripts/table-datatables-managed.min.js delete mode 100755 assets/pages/scripts/table-datatables-responsive.js delete mode 100755 assets/pages/scripts/table-datatables-responsive.min.js delete mode 100755 assets/pages/scripts/table-datatables-rowreorder.js delete mode 100755 assets/pages/scripts/table-datatables-rowreorder.min.js delete mode 100755 assets/pages/scripts/table-datatables-scroller.js delete mode 100755 assets/pages/scripts/table-datatables-scroller.min.js delete mode 100755 assets/pages/scripts/tasks.js delete mode 100755 assets/pages/scripts/tasks.min.js delete mode 100755 assets/pages/scripts/timeline-2.js delete mode 100755 assets/pages/scripts/timeline-2.min.js delete mode 100755 assets/pages/scripts/timeline.js delete mode 100755 assets/pages/scripts/timeline.min.js delete mode 100755 assets/pages/scripts/ui-alerts-api.js delete mode 100755 assets/pages/scripts/ui-alerts-api.min.js delete mode 100755 assets/pages/scripts/ui-blockui.js delete mode 100755 assets/pages/scripts/ui-blockui.min.js delete mode 100755 assets/pages/scripts/ui-bootbox.js delete mode 100755 assets/pages/scripts/ui-bootbox.min.js delete mode 100755 assets/pages/scripts/ui-bootstrap-growl.js delete mode 100755 assets/pages/scripts/ui-bootstrap-growl.min.js delete mode 100755 assets/pages/scripts/ui-buttons.js delete mode 100755 assets/pages/scripts/ui-buttons.min.js delete mode 100755 assets/pages/scripts/ui-confirmations.js delete mode 100755 assets/pages/scripts/ui-confirmations.min.js delete mode 100755 assets/pages/scripts/ui-datepaginator.js delete mode 100755 assets/pages/scripts/ui-datepaginator.min.js delete mode 100755 assets/pages/scripts/ui-extended-modals.js delete mode 100755 assets/pages/scripts/ui-extended-modals.min.js delete mode 100755 assets/pages/scripts/ui-general.js delete mode 100755 assets/pages/scripts/ui-general.min.js delete mode 100755 assets/pages/scripts/ui-idletimeout.js delete mode 100755 assets/pages/scripts/ui-idletimeout.min.js delete mode 100755 assets/pages/scripts/ui-modals.js delete mode 100755 assets/pages/scripts/ui-modals.min.js delete mode 100755 assets/pages/scripts/ui-nestable.js delete mode 100755 assets/pages/scripts/ui-nestable.min.js delete mode 100755 assets/pages/scripts/ui-notific8.js delete mode 100755 assets/pages/scripts/ui-notific8.min.js delete mode 100755 assets/pages/scripts/ui-session-timeout.js delete mode 100755 assets/pages/scripts/ui-session-timeout.min.js delete mode 100755 assets/pages/scripts/ui-toastr.js delete mode 100755 assets/pages/scripts/ui-toastr.min.js delete mode 100755 assets/pages/scripts/ui-tree.js delete mode 100755 assets/pages/scripts/ui-tree.min.js delete mode 100755 assets/pages/scripts/widgets.js delete mode 100755 assets/pages/scripts/widgets.min.js diff --git a/assets/pages/scripts/coming-soon.js b/assets/pages/scripts/coming-soon.js deleted file mode 100755 index bb7e600..0000000 --- a/assets/pages/scripts/coming-soon.js +++ /dev/null @@ -1,28 +0,0 @@ -var ComingSoon = function () { - - return { - //main function to initiate the module - init: function () { - var austDay = new Date(); - austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26); - $('#defaultCountdown').countdown({until: austDay}); - $('#year').text(austDay.getFullYear()); - - $.backstretch([ - "../assets/pages/media/bg/1.jpg", - "../assets/pages/media/bg/2.jpg", - "../assets/pages/media/bg/3.jpg", - "../assets/pages/media/bg/4.jpg" - ], { - fade: 1000, - duration: 10000 - }); - } - - }; - -}(); - -jQuery(document).ready(function() { - ComingSoon.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/coming-soon.min.js b/assets/pages/scripts/coming-soon.min.js deleted file mode 100755 index 02170bc..0000000 --- a/assets/pages/scripts/coming-soon.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComingSoon=function(){return{init:function(){var e=new Date;e=new Date(e.getFullYear()+1,0,26),$("#defaultCountdown").countdown({until:e}),$("#year").text(e.getFullYear()),$.backstretch(["../assets/pages/media/bg/1.jpg","../assets/pages/media/bg/2.jpg","../assets/pages/media/bg/3.jpg","../assets/pages/media/bg/4.jpg"],{fade:1e3,duration:1e4})}}}();jQuery(document).ready(function(){ComingSoon.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-maxlength.js b/assets/pages/scripts/components-bootstrap-maxlength.js deleted file mode 100755 index 91a705f..0000000 --- a/assets/pages/scripts/components-bootstrap-maxlength.js +++ /dev/null @@ -1,46 +0,0 @@ -var ComponentsBootstrapMaxlength = function () { - - var handleBootstrapMaxlength = function() { - $('#maxlength_defaultconfig').maxlength({ - limitReachedClass: "label label-danger", - }) - - $('#maxlength_thresholdconfig').maxlength({ - limitReachedClass: "label label-danger", - threshold: 20 - }); - - $('#maxlength_alloptions').maxlength({ - alwaysShow: true, - warningClass: "label label-success", - limitReachedClass: "label label-danger", - separator: ' out of ', - preText: 'You typed ', - postText: ' chars available.', - validate: true - }); - - $('#maxlength_textarea').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true - }); - - $('#maxlength_placement').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true, - placement: App.isRTL() ? 'top-right' : 'top-left' - }); - } - - return { - //main function to initiate the module - init: function () { - handleBootstrapMaxlength(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsBootstrapMaxlength.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-maxlength.min.js b/assets/pages/scripts/components-bootstrap-maxlength.min.js deleted file mode 100755 index 60872f9..0000000 --- a/assets/pages/scripts/components-bootstrap-maxlength.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapMaxlength=function(){var a=function(){$("#maxlength_defaultconfig").maxlength({limitReachedClass:"label label-danger"}),$("#maxlength_thresholdconfig").maxlength({limitReachedClass:"label label-danger",threshold:20}),$("#maxlength_alloptions").maxlength({alwaysShow:!0,warningClass:"label label-success",limitReachedClass:"label label-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",validate:!0}),$("#maxlength_textarea").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0}),$("#maxlength_placement").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0,placement:App.isRTL()?"top-right":"top-left"})};return{init:function(){a()}}}();jQuery(document).ready(function(){ComponentsBootstrapMaxlength.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-select-splitter.js b/assets/pages/scripts/components-bootstrap-select-splitter.js deleted file mode 100755 index 4c25b43..0000000 --- a/assets/pages/scripts/components-bootstrap-select-splitter.js +++ /dev/null @@ -1,26 +0,0 @@ -var ComponentsBootstrapSelectSplitter = function() { - - var selectSplitter = function() { - $('#select_selectsplitter1').selectsplitter({ - selectSize: 4 - }); - $('#select_selectsplitter2').selectsplitter({ - selectSize: 6 - }); - $('#select_selectsplitter3').selectsplitter({ - selectSize: 5 - }); - } - - return { - //main function to initiate the module - init: function() { - selectSplitter(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsBootstrapSelectSplitter.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-select-splitter.min.js b/assets/pages/scripts/components-bootstrap-select-splitter.min.js deleted file mode 100755 index 96f512d..0000000 --- a/assets/pages/scripts/components-bootstrap-select-splitter.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapSelectSplitter=function(){var e=function(){$("#select_selectsplitter1").selectsplitter({selectSize:4}),$("#select_selectsplitter2").selectsplitter({selectSize:6}),$("#select_selectsplitter3").selectsplitter({selectSize:5})};return{init:function(){e()}}}();jQuery(document).ready(function(){ComponentsBootstrapSelectSplitter.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-select.js b/assets/pages/scripts/components-bootstrap-select.js deleted file mode 100755 index 62e7433..0000000 --- a/assets/pages/scripts/components-bootstrap-select.js +++ /dev/null @@ -1,23 +0,0 @@ -var ComponentsBootstrapSelect = function () { - - var handleBootstrapSelect = function() { - $('.bs-select').selectpicker({ - iconBase: 'fa', - tickIcon: 'fa-check' - }); - } - - return { - //main function to initiate the module - init: function () { - handleBootstrapSelect(); - } - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - ComponentsBootstrapSelect.init(); - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-select.min.js b/assets/pages/scripts/components-bootstrap-select.min.js deleted file mode 100755 index af65931..0000000 --- a/assets/pages/scripts/components-bootstrap-select.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapSelect=function(){var n=function(){$(".bs-select").selectpicker({iconBase:"fa",tickIcon:"fa-check"})};return{init:function(){n()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){ComponentsBootstrapSelect.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-switch.js b/assets/pages/scripts/components-bootstrap-switch.js deleted file mode 100755 index 49156c9..0000000 --- a/assets/pages/scripts/components-bootstrap-switch.js +++ /dev/null @@ -1,32 +0,0 @@ -var ComponentsBootstrapSwitch = function () { - - var handleBootstrapSwitch = function() { - - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioState'); - }); - - // or - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioStateAllowUncheck'); - }); - - // or - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioStateAllowUncheck', false); - }); - - } - - return { - //main function to initiate the module - init: function () { - handleBootstrapSwitch(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsBootstrapSwitch.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-switch.min.js b/assets/pages/scripts/components-bootstrap-switch.min.js deleted file mode 100755 index 88d6f81..0000000 --- a/assets/pages/scripts/components-bootstrap-switch.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapSwitch=function(){var t=function(){$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioState")}),$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioStateAllowUncheck")}),$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioStateAllowUncheck",!1)})};return{init:function(){t()}}}();jQuery(document).ready(function(){ComponentsBootstrapSwitch.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-tagsinput.js b/assets/pages/scripts/components-bootstrap-tagsinput.js deleted file mode 100755 index 883c723..0000000 --- a/assets/pages/scripts/components-bootstrap-tagsinput.js +++ /dev/null @@ -1,96 +0,0 @@ -var ComponentsBootstrapTagsinput = function() { - - var handleDemo1 = function() { - var elt = $('#object_tagsinput'); - - elt.tagsinput({ - itemValue: 'value', - itemText: 'text', - }); - - $('#object_tagsinput_add').on('click', function(){ - elt.tagsinput('add', { - "value": $('#object_tagsinput_value').val(), - "text": $('#object_tagsinput_city').val(), - "continent": $('#object_tagsinput_continent').val() - }); - }); - - elt.tagsinput('add', { "value": 1 , "text": "Amsterdam" , "continent": "Europe" }); - elt.tagsinput('add', { "value": 4 , "text": "Washington" , "continent": "America" }); - elt.tagsinput('add', { "value": 7 , "text": "Sydney" , "continent": "Australia" }); - elt.tagsinput('add', { "value": 10, "text": "Beijing" , "continent": "Asia" }); - elt.tagsinput('add', { "value": 13, "text": "Cairo" , "continent": "Africa" }); - } - - var handleDemo2 = function() { - - var elt = $('#state_tagsinput'); - - elt.tagsinput({ - tagClass: function(item) { - switch (item.continent) { - case 'Europe': - return 'label label-primary'; - case 'America': - return 'label label-danger label-important'; - case 'Australia': - return 'label label-success'; - case 'Africa': - return 'label label-default'; - case 'Asia': - return 'label label-warning'; - } - }, - itemValue: 'value', - itemText: 'text' - }); - - $('#state_tagsinput_add').on('click', function(){ - elt.tagsinput('add', { - "value": $('#state_tagsinput_value').val(), - "text": $('#state_tagsinput_city').val(), - "continent": $('#state_tagsinput_continent').val() - }); - }); - - elt.tagsinput('add', { - "value": 1, - "text": "Amsterdam", - "continent": "Europe" - }); - elt.tagsinput('add', { - "value": 4, - "text": "Washington", - "continent": "America" - }); - elt.tagsinput('add', { - "value": 7, - "text": "Sydney", - "continent": "Australia" - }); - elt.tagsinput('add', { - "value": 10, - "text": "Beijing", - "continent": "Asia" - }); - elt.tagsinput('add', { - "value": 13, - "text": "Cairo", - "continent": "Africa" - }); - } - - return { - //main function to initiate the module - init: function() { - handleDemo1(); - handleDemo2(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsBootstrapTagsinput.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-tagsinput.min.js b/assets/pages/scripts/components-bootstrap-tagsinput.min.js deleted file mode 100755 index 2c88df4..0000000 --- a/assets/pages/scripts/components-bootstrap-tagsinput.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapTagsinput=function(){var t=function(){var t=$("#object_tagsinput");t.tagsinput({itemValue:"value",itemText:"text"}),$("#object_tagsinput_add").on("click",function(){t.tagsinput("add",{value:$("#object_tagsinput_value").val(),text:$("#object_tagsinput_city").val(),continent:$("#object_tagsinput_continent").val()})}),t.tagsinput("add",{value:1,text:"Amsterdam",continent:"Europe"}),t.tagsinput("add",{value:4,text:"Washington",continent:"America"}),t.tagsinput("add",{value:7,text:"Sydney",continent:"Australia"}),t.tagsinput("add",{value:10,text:"Beijing",continent:"Asia"}),t.tagsinput("add",{value:13,text:"Cairo",continent:"Africa"})},a=function(){var t=$("#state_tagsinput");t.tagsinput({tagClass:function(t){switch(t.continent){case"Europe":return"label label-primary";case"America":return"label label-danger label-important";case"Australia":return"label label-success";case"Africa":return"label label-default";case"Asia":return"label label-warning"}},itemValue:"value",itemText:"text"}),$("#state_tagsinput_add").on("click",function(){t.tagsinput("add",{value:$("#state_tagsinput_value").val(),text:$("#state_tagsinput_city").val(),continent:$("#state_tagsinput_continent").val()})}),t.tagsinput("add",{value:1,text:"Amsterdam",continent:"Europe"}),t.tagsinput("add",{value:4,text:"Washington",continent:"America"}),t.tagsinput("add",{value:7,text:"Sydney",continent:"Australia"}),t.tagsinput("add",{value:10,text:"Beijing",continent:"Asia"}),t.tagsinput("add",{value:13,text:"Cairo",continent:"Africa"})};return{init:function(){t(),a()}}}();jQuery(document).ready(function(){ComponentsBootstrapTagsinput.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-touchspin.js b/assets/pages/scripts/components-bootstrap-touchspin.js deleted file mode 100755 index cf87c43..0000000 --- a/assets/pages/scripts/components-bootstrap-touchspin.js +++ /dev/null @@ -1,76 +0,0 @@ -var ComponentsBootstrapTouchSpin = function() { - - var handleDemo = function() { - - $("#touchspin_1").TouchSpin({ - min: 0, - max: 100, - step: 0.1, - decimals: 2, - boostat: 5, - maxboostedstep: 10, - postfix: '%' - }); - - $("#touchspin_2").TouchSpin({ - min: -1000000000, - max: 1000000000, - stepinterval: 50, - maxboostedstep: 10000000, - prefix: '$' - }); - - $("#touchspin_3").TouchSpin({ - verticalbuttons: true - }); - - $("#touchspin_4").TouchSpin({ - verticalbuttons: true, - verticalupclass: 'glyphicon glyphicon-plus', - verticaldownclass: 'glyphicon glyphicon-minus' - }); - - $("#touchspin_5").TouchSpin(); - - $("#touchspin_6").TouchSpin({ - initval: 40 - }); - - $("#touchspin_7").TouchSpin({ - initval: 40 - }); - - $("#touchspin_8").TouchSpin({ - postfix: "a button", - postfix_extraclass: "btn red" - }); - - $("#touchspin_9").TouchSpin({ - postfix: "a button", - postfix_extraclass: "btn green" - }); - - $("#touchspin_10").TouchSpin({ - prefix: "pre", - postfix: "post" - }); - - $("#touchspin_11").TouchSpin({ - buttondown_class: "btn blue", - buttonup_class: "btn red" - }); - - } - - return { - //main function to initiate the module - init: function() { - handleDemo(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsBootstrapTouchSpin.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-bootstrap-touchspin.min.js b/assets/pages/scripts/components-bootstrap-touchspin.min.js deleted file mode 100755 index c02fd69..0000000 --- a/assets/pages/scripts/components-bootstrap-touchspin.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsBootstrapTouchSpin=function(){var t=function(){$("#touchspin_1").TouchSpin({min:0,max:100,step:.1,decimals:2,boostat:5,maxboostedstep:10,postfix:"%"}),$("#touchspin_2").TouchSpin({min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,prefix:"$"}),$("#touchspin_3").TouchSpin({verticalbuttons:!0}),$("#touchspin_4").TouchSpin({verticalbuttons:!0,verticalupclass:"glyphicon glyphicon-plus",verticaldownclass:"glyphicon glyphicon-minus"}),$("#touchspin_5").TouchSpin(),$("#touchspin_6").TouchSpin({initval:40}),$("#touchspin_7").TouchSpin({initval:40}),$("#touchspin_8").TouchSpin({postfix:"a button",postfix_extraclass:"btn red"}),$("#touchspin_9").TouchSpin({postfix:"a button",postfix_extraclass:"btn green"}),$("#touchspin_10").TouchSpin({prefix:"pre",postfix:"post"}),$("#touchspin_11").TouchSpin({buttondown_class:"btn blue",buttonup_class:"btn red"})};return{init:function(){t()}}}();jQuery(document).ready(function(){ComponentsBootstrapTouchSpin.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-code-editors.js b/assets/pages/scripts/components-code-editors.js deleted file mode 100755 index b0399ad..0000000 --- a/assets/pages/scripts/components-code-editors.js +++ /dev/null @@ -1,64 +0,0 @@ -var ComponentsCodeEditors = function () { - - var handleDemo1 = function () { - var myTextArea = document.getElementById('code_editor_demo_1'); - var myCodeMirror = CodeMirror.fromTextArea(myTextArea, { - lineNumbers: true, - matchBrackets: true, - styleActiveLine: true, - theme:"ambiance", - mode: 'javascript' - }); - } - - var handleDemo2 = function () { - var myTextArea = document.getElementById('code_editor_demo_2'); - var myCodeMirror = CodeMirror.fromTextArea(myTextArea, { - lineNumbers: true, - matchBrackets: true, - styleActiveLine: true, - theme:"material", - mode: 'css' - }); - } - - var handleDemo3 = function () { - var myTextArea = document.getElementById('code_editor_demo_3'); - var myCodeMirror = CodeMirror.fromTextArea(myTextArea, { - lineNumbers: true, - matchBrackets: true, - styleActiveLine: true, - theme:"neat", - mode: 'javascript', - readOnly: true - }); - } - - var handleDemo4 = function () { - var myTextArea = document.getElementById('code_editor_demo_4'); - var myCodeMirror = CodeMirror.fromTextArea(myTextArea, { - lineNumbers: true, - matchBrackets: true, - styleActiveLine: true, - theme:"neo", - mode: 'css', - readOnly: true - }); - } - - - return { - //main function to initiate the module - init: function () { - handleDemo1(); - handleDemo2(); - handleDemo3(); - handleDemo4(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsCodeEditors.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-code-editors.min.js b/assets/pages/scripts/components-code-editors.min.js deleted file mode 100755 index ccabb71..0000000 --- a/assets/pages/scripts/components-code-editors.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsCodeEditors=function(){var e=function(){var e=document.getElementById("code_editor_demo_1");CodeMirror.fromTextArea(e,{lineNumbers:!0,matchBrackets:!0,styleActiveLine:!0,theme:"ambiance",mode:"javascript"})},t=function(){var e=document.getElementById("code_editor_demo_2");CodeMirror.fromTextArea(e,{lineNumbers:!0,matchBrackets:!0,styleActiveLine:!0,theme:"material",mode:"css"})},o=function(){var e=document.getElementById("code_editor_demo_3");CodeMirror.fromTextArea(e,{lineNumbers:!0,matchBrackets:!0,styleActiveLine:!0,theme:"neat",mode:"javascript",readOnly:!0})},r=function(){var e=document.getElementById("code_editor_demo_4");CodeMirror.fromTextArea(e,{lineNumbers:!0,matchBrackets:!0,styleActiveLine:!0,theme:"neo",mode:"css",readOnly:!0})};return{init:function(){e(),t(),o(),r()}}}();jQuery(document).ready(function(){ComponentsCodeEditors.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-color-pickers.js b/assets/pages/scripts/components-color-pickers.js deleted file mode 100755 index c7a8270..0000000 --- a/assets/pages/scripts/components-color-pickers.js +++ /dev/null @@ -1,56 +0,0 @@ -var ComponentsColorPickers = function() { - - var handleColorPicker = function () { - if (!jQuery().colorpicker) { - return; - } - $('.colorpicker-default').colorpicker({ - format: 'hex' - }); - $('.colorpicker-rgba').colorpicker(); - } - - var handleMiniColors = function() { - $('.demo').each(function() { - // - // Dear reader, it's actually very easy to initialize MiniColors. For example: - // - // $(selector).minicolors(); - // - // The way I've done it below is just for the demo, so don't get confused - // by it. Also, data- attributes aren't supported at this time...they're - // only used for this demo. - // - $(this).minicolors({ - control: $(this).attr('data-control') || 'hue', - defaultValue: $(this).attr('data-defaultValue') || '', - inline: $(this).attr('data-inline') === 'true', - letterCase: $(this).attr('data-letterCase') || 'lowercase', - opacity: $(this).attr('data-opacity'), - position: $(this).attr('data-position') || 'bottom left', - change: function(hex, opacity) { - if (!hex) return; - if (opacity) hex += ', ' + opacity; - if (typeof console === 'object') { - console.log(hex); - } - }, - theme: 'bootstrap' - }); - - }); - } - - return { - //main function to initiate the module - init: function() { - handleMiniColors(); - handleColorPicker(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsColorPickers.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-color-pickers.min.js b/assets/pages/scripts/components-color-pickers.min.js deleted file mode 100755 index 40f474f..0000000 --- a/assets/pages/scripts/components-color-pickers.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsColorPickers=function(){var t=function(){jQuery().colorpicker&&($(".colorpicker-default").colorpicker({format:"hex"}),$(".colorpicker-rgba").colorpicker())},o=function(){$(".demo").each(function(){$(this).minicolors({control:$(this).attr("data-control")||"hue",defaultValue:$(this).attr("data-defaultValue")||"",inline:"true"===$(this).attr("data-inline"),letterCase:$(this).attr("data-letterCase")||"lowercase",opacity:$(this).attr("data-opacity"),position:$(this).attr("data-position")||"bottom left",change:function(t,o){t&&(o&&(t+=", "+o),"object"==typeof console&&console.log(t))},theme:"bootstrap"})})};return{init:function(){o(),t()}}}();jQuery(document).ready(function(){ComponentsColorPickers.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-context-menu.js b/assets/pages/scripts/components-context-menu.js deleted file mode 100755 index 46f54f6..0000000 --- a/assets/pages/scripts/components-context-menu.js +++ /dev/null @@ -1,61 +0,0 @@ -var ComponentsContextMenu = function () { - - var demo2 = function() { - $('#main').contextmenu({ - target: '#context-menu2', - before: function (e) { - // This function is optional. - // Here we use it to stop the event if the user clicks a span - e.preventDefault(); - if (e.target.tagName == 'SPAN') { - e.preventDefault(); - this.closemenu(); - return false; - } - //this.getMenu().find("li").eq(2).find('a').html("Dynamically changed!"); - return true; - } - }); - } - - var demo3 = function() { - // Demo 3 - $('#context2').contextmenu({ - target: '#context-menu2', - onItem: function (context, e) { - alert($(e.target).text()); - } - }); - - $('#context-menu2').on('show.bs.context', function (e) { - console.log('before show event'); - }); - - $('#context-menu2').on('shown.bs.context', function (e) { - console.log('after show event'); - }); - - $('#context-menu2').on('hide.bs.context', function (e) { - console.log('before hide event'); - }); - - $('#context-menu2').on('hidden.bs.context', function (e) { - console.log('after hide event'); - }); - } - - return { - //main function to initiate the module - - init: function () { - demo2(); - demo3(); - } - - }; - -}(); - -jQuery(document).ready(function() { - ComponentsContextMenu.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-context-menu.min.js b/assets/pages/scripts/components-context-menu.min.js deleted file mode 100755 index 369d7e2..0000000 --- a/assets/pages/scripts/components-context-menu.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsContextMenu=function(){var n=function(){$("#main").contextmenu({target:"#context-menu2",before:function(n){return n.preventDefault(),"SPAN"==n.target.tagName?(n.preventDefault(),this.closemenu(),!1):!0}})},e=function(){$("#context2").contextmenu({target:"#context-menu2",onItem:function(n,e){alert($(e.target).text())}}),$("#context-menu2").on("show.bs.context",function(n){console.log("before show event")}),$("#context-menu2").on("shown.bs.context",function(n){console.log("after show event")}),$("#context-menu2").on("hide.bs.context",function(n){console.log("before hide event")}),$("#context-menu2").on("hidden.bs.context",function(n){console.log("after hide event")})};return{init:function(){n(),e()}}}();jQuery(document).ready(function(){ComponentsContextMenu.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-date-time-pickers.js b/assets/pages/scripts/components-date-time-pickers.js deleted file mode 100755 index b58d1b8..0000000 --- a/assets/pages/scripts/components-date-time-pickers.js +++ /dev/null @@ -1,245 +0,0 @@ -var ComponentsDateTimePickers = function () { - - var handleDatePickers = function () { - - if (jQuery().datepicker) { - $('.date-picker').datepicker({ - rtl: App.isRTL(), - orientation: "left", - autoclose: true - }); - //$('body').removeClass("modal-open"); // fix bug when inline picker is used in modal - } - - /* Workaround to restrict daterange past date select: http://stackoverflow.com/questions/11933173/how-to-restrict-the-selectable-date-ranges-in-bootstrap-datepicker */ - - // Workaround to fix datepicker position on window scroll - $( document ).scroll(function(){ - $('#form_modal2 .date-picker').datepicker('place'); //#modal is the id of the modal - }); - } - - var handleTimePickers = function () { - - if (jQuery().timepicker) { - $('.timepicker-default').timepicker({ - autoclose: true, - showSeconds: true, - minuteStep: 1 - }); - - $('.timepicker-no-seconds').timepicker({ - autoclose: true, - minuteStep: 5 - }); - - $('.timepicker-24').timepicker({ - autoclose: true, - minuteStep: 5, - showSeconds: false, - showMeridian: false - }); - - // handle input group button click - $('.timepicker').parent('.input-group').on('click', '.input-group-btn', function(e){ - e.preventDefault(); - $(this).parent('.input-group').find('.timepicker').timepicker('showWidget'); - }); - - // Workaround to fix timepicker position on window scroll - $( document ).scroll(function(){ - $('#form_modal4 .timepicker-default, #form_modal4 .timepicker-no-seconds, #form_modal4 .timepicker-24').timepicker('place'); //#modal is the id of the modal - }); - } - } - - var handleDateRangePickers = function () { - if (!jQuery().daterangepicker) { - return; - } - - $('#defaultrange').daterangepicker({ - opens: (App.isRTL() ? 'left' : 'right'), - format: 'MM/DD/YYYY', - separator: ' to ', - startDate: moment().subtract('days', 29), - endDate: moment(), - ranges: { - 'Today': [moment(), moment()], - 'Yesterday': [moment().subtract('days', 1), moment().subtract('days', 1)], - 'Last 7 Days': [moment().subtract('days', 6), moment()], - 'Last 30 Days': [moment().subtract('days', 29), moment()], - 'This Month': [moment().startOf('month'), moment().endOf('month')], - 'Last Month': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')] - }, - minDate: '01/01/2012', - maxDate: '12/31/2018', - }, - function (start, end) { - $('#defaultrange input').val(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); - } - ); - - $('#defaultrange_modal').daterangepicker({ - opens: (App.isRTL() ? 'left' : 'right'), - format: 'MM/DD/YYYY', - separator: ' to ', - startDate: moment().subtract('days', 29), - endDate: moment(), - minDate: '01/01/2012', - maxDate: '12/31/2018', - }, - function (start, end) { - $('#defaultrange_modal input').val(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); - } - ); - - // this is very important fix when daterangepicker is used in modal. in modal when daterange picker is opened and mouse clicked anywhere bootstrap modal removes the modal-open class from the body element. - // so the below code will fix this issue. - $('#defaultrange_modal').on('click', function(){ - if ($('#daterangepicker_modal').is(":visible") && $('body').hasClass("modal-open") == false) { - $('body').addClass("modal-open"); - } - }); - - $('#reportrange').daterangepicker({ - opens: (App.isRTL() ? 'left' : 'right'), - startDate: moment().subtract('days', 29), - endDate: moment(), - //minDate: '01/01/2012', - //maxDate: '12/31/2014', - dateLimit: { - days: 60 - }, - showDropdowns: true, - showWeekNumbers: true, - timePicker: false, - timePickerIncrement: 1, - timePicker12Hour: true, - ranges: { - 'Today': [moment(), moment()], - 'Yesterday': [moment().subtract('days', 1), moment().subtract('days', 1)], - 'Last 7 Days': [moment().subtract('days', 6), moment()], - 'Last 30 Days': [moment().subtract('days', 29), moment()], - 'This Month': [moment().startOf('month'), moment().endOf('month')], - 'Last Month': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')] - }, - buttonClasses: ['btn'], - applyClass: 'green', - cancelClass: 'default', - format: 'MM/DD/YYYY', - separator: ' to ', - locale: { - applyLabel: 'Apply', - fromLabel: 'From', - toLabel: 'To', - customRangeLabel: 'Custom Range', - daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], - monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - firstDay: 1 - } - }, - function (start, end) { - $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); - } - ); - //Set the initial state of the picker label - $('#reportrange span').html(moment().subtract('days', 29).format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); - } - - var handleDatetimePicker = function () { - - if (!jQuery().datetimepicker) { - return; - } - - $(".form_datetime").datetimepicker({ - autoclose: true, - isRTL: App.isRTL(), - format: "dd MM yyyy - hh:ii", - pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left") - }); - - $(".form_advance_datetime").datetimepicker({ - isRTL: App.isRTL(), - format: "dd MM yyyy - hh:ii", - autoclose: true, - todayBtn: true, - startDate: "2013-02-14 10:00", - pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"), - minuteStep: 10 - }); - - $(".form_meridian_datetime").datetimepicker({ - isRTL: App.isRTL(), - format: "dd MM yyyy - HH:ii P", - showMeridian: true, - autoclose: true, - pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"), - todayBtn: true - }); - - $('body').removeClass("modal-open"); // fix bug when inline picker is used in modal - - // Workaround to fix datetimepicker position on window scroll - $( document ).scroll(function(){ - $('#form_modal1 .form_datetime, #form_modal1 .form_advance_datetime, #form_modal1 .form_meridian_datetime').datetimepicker('place'); //#modal is the id of the modal - }); - } - - var handleClockfaceTimePickers = function () { - - if (!jQuery().clockface) { - return; - } - - $('.clockface_1').clockface(); - - $('#clockface_2').clockface({ - format: 'HH:mm', - trigger: 'manual' - }); - - $('#clockface_2_toggle').click(function (e) { - e.stopPropagation(); - $('#clockface_2').clockface('toggle'); - }); - - $('#clockface_2_modal').clockface({ - format: 'HH:mm', - trigger: 'manual' - }); - - $('#clockface_2_modal_toggle').click(function (e) { - e.stopPropagation(); - $('#clockface_2_modal').clockface('toggle'); - }); - - $('.clockface_3').clockface({ - format: 'H:mm' - }).clockface('show', '14:30'); - - // Workaround to fix clockface position on window scroll - $( document ).scroll(function(){ - $('#form_modal5 .clockface_1, #form_modal5 #clockface_2_modal').clockface('place'); //#modal is the id of the modal - }); - } - - return { - //main function to initiate the module - init: function () { - handleDatePickers(); - handleTimePickers(); - handleDatetimePicker(); - handleDateRangePickers(); - handleClockfaceTimePickers(); - } - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - ComponentsDateTimePickers.init(); - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/components-date-time-pickers.min.js b/assets/pages/scripts/components-date-time-pickers.min.js deleted file mode 100755 index 9c9d8bc..0000000 --- a/assets/pages/scripts/components-date-time-pickers.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsDateTimePickers=function(){var t=function(){jQuery().datepicker&&$(".date-picker").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}),$(document).scroll(function(){$("#form_modal2 .date-picker").datepicker("place")})},e=function(){jQuery().timepicker&&($(".timepicker-default").timepicker({autoclose:!0,showSeconds:!0,minuteStep:1}),$(".timepicker-no-seconds").timepicker({autoclose:!0,minuteStep:5}),$(".timepicker-24").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1}),$(".timepicker").parent(".input-group").on("click",".input-group-btn",function(t){t.preventDefault(),$(this).parent(".input-group").find(".timepicker").timepicker("showWidget")}),$(document).scroll(function(){$("#form_modal4 .timepicker-default, #form_modal4 .timepicker-no-seconds, #form_modal4 .timepicker-24").timepicker("place")}))},o=function(){jQuery().daterangepicker&&($("#defaultrange").daterangepicker({opens:App.isRTL()?"left":"right",format:"MM/DD/YYYY",separator:" to ",startDate:moment().subtract("days",29),endDate:moment(),ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},minDate:"01/01/2012",maxDate:"12/31/2018"},function(t,e){$("#defaultrange input").val(t.format("MMMM D, YYYY")+" - "+e.format("MMMM D, YYYY"))}),$("#defaultrange_modal").daterangepicker({opens:App.isRTL()?"left":"right",format:"MM/DD/YYYY",separator:" to ",startDate:moment().subtract("days",29),endDate:moment(),minDate:"01/01/2012",maxDate:"12/31/2018"},function(t,e){$("#defaultrange_modal input").val(t.format("MMMM D, YYYY")+" - "+e.format("MMMM D, YYYY"))}),$("#defaultrange_modal").on("click",function(){$("#daterangepicker_modal").is(":visible")&&0==$("body").hasClass("modal-open")&&$("body").addClass("modal-open")}),$("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",29),endDate:moment(),dateLimit:{days:60},showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(t,e){$("#reportrange span").html(t.format("MMMM D, YYYY")+" - "+e.format("MMMM D, YYYY"))}),$("#reportrange span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))},a=function(){jQuery().datetimepicker&&($(".form_datetime").datetimepicker({autoclose:!0,isRTL:App.isRTL(),format:"dd MM yyyy - hh:ii",pickerPosition:App.isRTL()?"bottom-right":"bottom-left"}),$(".form_advance_datetime").datetimepicker({isRTL:App.isRTL(),format:"dd MM yyyy - hh:ii",autoclose:!0,todayBtn:!0,startDate:"2013-02-14 10:00",pickerPosition:App.isRTL()?"bottom-right":"bottom-left",minuteStep:10}),$(".form_meridian_datetime").datetimepicker({isRTL:App.isRTL(),format:"dd MM yyyy - HH:ii P",showMeridian:!0,autoclose:!0,pickerPosition:App.isRTL()?"bottom-right":"bottom-left",todayBtn:!0}),$("body").removeClass("modal-open"),$(document).scroll(function(){$("#form_modal1 .form_datetime, #form_modal1 .form_advance_datetime, #form_modal1 .form_meridian_datetime").datetimepicker("place")}))},m=function(){jQuery().clockface&&($(".clockface_1").clockface(),$("#clockface_2").clockface({format:"HH:mm",trigger:"manual"}),$("#clockface_2_toggle").click(function(t){t.stopPropagation(),$("#clockface_2").clockface("toggle")}),$("#clockface_2_modal").clockface({format:"HH:mm",trigger:"manual"}),$("#clockface_2_modal_toggle").click(function(t){t.stopPropagation(),$("#clockface_2_modal").clockface("toggle")}),$(".clockface_3").clockface({format:"H:mm"}).clockface("show","14:30"),$(document).scroll(function(){$("#form_modal5 .clockface_1, #form_modal5 #clockface_2_modal").clockface("place")}))};return{init:function(){t(),e(),a(),o(),m()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){ComponentsDateTimePickers.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-dropdowns.js b/assets/pages/scripts/components-dropdowns.js deleted file mode 100755 index 3d0638a..0000000 --- a/assets/pages/scripts/components-dropdowns.js +++ /dev/null @@ -1,263 +0,0 @@ -var ComponentsDropdowns = function () { - - var handleSelect2 = function () { - - $('#select2_sample1').select2({ - placeholder: "Select an option", - allowClear: true - }); - - $('#select2_sample2').select2({ - placeholder: "Select a State", - allowClear: true - }); - - $("#select2_sample3").select2({ - placeholder: "Select...", - allowClear: true, - minimumInputLength: 1, - query: function (query) { - var data = { - results: [] - }, i, j, s; - for (i = 1; i < 5; i++) { - s = ""; - for (j = 0; j < i; j++) { - s = s + query.term; - } - data.results.push({ - id: query.term + i, - text: s - }); - } - query.callback(data); - } - }); - - function format(state) { - if (!state.id) return state.text; // optgroup - return "  " + state.text; - } - $("#select2_sample4").select2({ - placeholder: "Select a Country", - allowClear: true, - formatResult: format, - formatSelection: format, - escapeMarkup: function (m) { - return m; - } - }); - - $("#select2_sample5").select2({ - tags: ["red", "green", "blue", "yellow", "pink"] - }); - - - function movieFormatResult(movie) { - var markup = ""; - if (movie.posters !== undefined && movie.posters.thumbnail !== undefined) { - markup += ""; - } - markup += "
" + movie.title + "
"; - if (movie.critics_consensus !== undefined) { - markup += "
" + movie.critics_consensus + "
"; - } else if (movie.synopsis !== undefined) { - markup += "
" + movie.synopsis + "
"; - } - markup += "
" - return markup; - } - - function movieFormatSelection(movie) { - return movie.title; - } - - $("#select2_sample6").select2({ - placeholder: "Search for a movie", - minimumInputLength: 1, - ajax: { // instead of writing the function to execute the request we use Select2's convenient helper - url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json", - dataType: 'jsonp', - data: function (term, page) { - return { - q: term, // search term - page_limit: 10, - apikey: "ju6z9mjyajq2djue3gbvv26t" // please do not use so this example keeps working - }; - }, - results: function (data, page) { // parse the results into the format expected by Select2. - // since we are using custom formatting functions we do not need to alter remote JSON data - return { - results: data.movies - }; - } - }, - initSelection: function (element, callback) { - // the input tag has a value attribute preloaded that points to a preselected movie's id - // this function resolves that id attribute to an object that select2 can render - // using its formatResult renderer - that way the movie name is shown preselected - var id = $(element).val(); - if (id !== "") { - $.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/" + id + ".json", { - data: { - apikey: "ju6z9mjyajq2djue3gbvv26t" - }, - dataType: "jsonp" - }).done(function (data) { - callback(data); - }); - } - }, - formatResult: movieFormatResult, // omitted for brevity, see the source of this page - formatSelection: movieFormatSelection, // omitted for brevity, see the source of this page - dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller - escapeMarkup: function (m) { - return m; - } // we do not want to escape markup since we are displaying html in results - }); - } - - var handleSelect2Modal = function () { - - $('#select2_sample_modal_1').select2({ - placeholder: "Select an option", - allowClear: true - }); - - $('#select2_sample_modal_2').select2({ - placeholder: "Select a State", - allowClear: true - }); - - $("#select2_sample_modal_3").select2({ - allowClear: true, - minimumInputLength: 1, - query: function (query) { - var data = { - results: [] - }, i, j, s; - for (i = 1; i < 5; i++) { - s = ""; - for (j = 0; j < i; j++) { - s = s + query.term; - } - data.results.push({ - id: query.term + i, - text: s - }); - } - query.callback(data); - } - }); - - function format(state) { - if (!state.id) return state.text; // optgroup - return "  " + state.text; - } - $("#select2_sample_modal_4").select2({ - allowClear: true, - formatResult: format, - formatSelection: format, - escapeMarkup: function (m) { - return m; - } - }); - - $("#select2_sample_modal_5").select2({ - tags: ["red", "green", "blue", "yellow", "pink"] - }); - - - function movieFormatResult(movie) { - var markup = ""; - if (movie.posters !== undefined && movie.posters.thumbnail !== undefined) { - markup += ""; - } - markup += "
" + movie.title + "
"; - if (movie.critics_consensus !== undefined) { - markup += "
" + movie.critics_consensus + "
"; - } else if (movie.synopsis !== undefined) { - markup += "
" + movie.synopsis + "
"; - } - markup += "
" - return markup; - } - - function movieFormatSelection(movie) { - return movie.title; - } - - $("#select2_sample_modal_6").select2({ - placeholder: "Search for a movie", - minimumInputLength: 1, - ajax: { // instead of writing the function to execute the request we use Select2's convenient helper - url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json", - dataType: 'jsonp', - data: function (term, page) { - return { - q: term, // search term - page_limit: 10, - apikey: "ju6z9mjyajq2djue3gbvv26t" // please do not use so this example keeps working - }; - }, - results: function (data, page) { // parse the results into the format expected by Select2. - // since we are using custom formatting functions we do not need to alter remote JSON data - return { - results: data.movies - }; - } - }, - initSelection: function (element, callback) { - // the input tag has a value attribute preloaded that points to a preselected movie's id - // this function resolves that id attribute to an object that select2 can render - // using its formatResult renderer - that way the movie name is shown preselected - var id = $(element).val(); - if (id !== "") { - $.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/" + id + ".json", { - data: { - apikey: "ju6z9mjyajq2djue3gbvv26t" - }, - dataType: "jsonp" - }).done(function (data) { - callback(data); - }); - } - }, - formatResult: movieFormatResult, // omitted for brevity, see the source of this page - formatSelection: movieFormatSelection, // omitted for brevity, see the source of this page - dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller - escapeMarkup: function (m) { - return m; - } // we do not want to escape markup since we are displaying html in results - }); - } - - var handleBootstrapSelect = function() { - $('.bs-select').selectpicker({ - iconBase: 'fa', - tickIcon: 'fa-check' - }); - } - - var handleMultiSelect = function () { - $('#my_multi_select1').multiSelect(); - $('#my_multi_select2').multiSelect({ - selectableOptgroup: true - }); - } - - return { - //main function to initiate the module - init: function () { - handleSelect2(); - handleSelect2Modal(); - handleMultiSelect(); - handleBootstrapSelect(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsDropdowns.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-dropdowns.min.js b/assets/pages/scripts/components-dropdowns.min.js deleted file mode 100755 index 293767a..0000000 --- a/assets/pages/scripts/components-dropdowns.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsDropdowns=function(){var e=function(){function e(e){return e.id?"  "+e.text:e.text}function t(e){var t="";return void 0!==e.posters&&void 0!==e.posters.thumbnail&&(t+=""),t+="
"+e.title+"
",void 0!==e.critics_consensus?t+="
"+e.critics_consensus+"
":void 0!==e.synopsis&&(t+="
"+e.synopsis+"
"),t+="
"}function s(e){return e.title}$("#select2_sample1").select2({placeholder:"Select an option",allowClear:!0}),$("#select2_sample2").select2({placeholder:"Select a State",allowClear:!0}),$("#select2_sample3").select2({placeholder:"Select...",allowClear:!0,minimumInputLength:1,query:function(e){var t,s,l,o={results:[]};for(t=1;5>t;t++){for(l="",s=0;t>s;s++)l+=e.term;o.results.push({id:e.term+t,text:l})}e.callback(o)}}),$("#select2_sample4").select2({placeholder:"Select a Country",allowClear:!0,formatResult:e,formatSelection:e,escapeMarkup:function(e){return e}}),$("#select2_sample5").select2({tags:["red","green","blue","yellow","pink"]}),$("#select2_sample6").select2({placeholder:"Search for a movie",minimumInputLength:1,ajax:{url:"http://api.rottentomatoes.com/api/public/v1.0/movies.json",dataType:"jsonp",data:function(e,t){return{q:e,page_limit:10,apikey:"ju6z9mjyajq2djue3gbvv26t"}},results:function(e,t){return{results:e.movies}}},initSelection:function(e,t){var s=$(e).val();""!==s&&$.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/"+s+".json",{data:{apikey:"ju6z9mjyajq2djue3gbvv26t"},dataType:"jsonp"}).done(function(e){t(e)})},formatResult:t,formatSelection:s,dropdownCssClass:"bigdrop",escapeMarkup:function(e){return e}})},t=function(){function e(e){return e.id?"  "+e.text:e.text}function t(e){var t="";return void 0!==e.posters&&void 0!==e.posters.thumbnail&&(t+=""),t+="
"+e.title+"
",void 0!==e.critics_consensus?t+="
"+e.critics_consensus+"
":void 0!==e.synopsis&&(t+="
"+e.synopsis+"
"),t+="
"}function s(e){return e.title}$("#select2_sample_modal_1").select2({placeholder:"Select an option",allowClear:!0}),$("#select2_sample_modal_2").select2({placeholder:"Select a State",allowClear:!0}),$("#select2_sample_modal_3").select2({allowClear:!0,minimumInputLength:1,query:function(e){var t,s,l,o={results:[]};for(t=1;5>t;t++){for(l="",s=0;t>s;s++)l+=e.term;o.results.push({id:e.term+t,text:l})}e.callback(o)}}),$("#select2_sample_modal_4").select2({allowClear:!0,formatResult:e,formatSelection:e,escapeMarkup:function(e){return e}}),$("#select2_sample_modal_5").select2({tags:["red","green","blue","yellow","pink"]}),$("#select2_sample_modal_6").select2({placeholder:"Search for a movie",minimumInputLength:1,ajax:{url:"http://api.rottentomatoes.com/api/public/v1.0/movies.json",dataType:"jsonp",data:function(e,t){return{q:e,page_limit:10,apikey:"ju6z9mjyajq2djue3gbvv26t"}},results:function(e,t){return{results:e.movies}}},initSelection:function(e,t){var s=$(e).val();""!==s&&$.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/"+s+".json",{data:{apikey:"ju6z9mjyajq2djue3gbvv26t"},dataType:"jsonp"}).done(function(e){t(e)})},formatResult:t,formatSelection:s,dropdownCssClass:"bigdrop",escapeMarkup:function(e){return e}})},s=function(){$(".bs-select").selectpicker({iconBase:"fa",tickIcon:"fa-check"})},l=function(){$("#my_multi_select1").multiSelect(),$("#my_multi_select2").multiSelect({selectableOptgroup:!0})};return{init:function(){e(),t(),l(),s()}}}();jQuery(document).ready(function(){ComponentsDropdowns.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-editors.js b/assets/pages/scripts/components-editors.js deleted file mode 100755 index f543c07..0000000 --- a/assets/pages/scripts/components-editors.js +++ /dev/null @@ -1,34 +0,0 @@ -var ComponentsEditors = function () { - - var handleWysihtml5 = function () { - if (!jQuery().wysihtml5) { - return; - } - - if ($('.wysihtml5').size() > 0) { - $('.wysihtml5').wysihtml5({ - "stylesheets": ["../assets/global/plugins/bootstrap-wysihtml5/wysiwyg-color.css"] - }); - } - } - - var handleSummernote = function () { - $('#summernote_1').summernote({height: 300}); - //API: - //var sHTML = $('#summernote_1').code(); // get code - //$('#summernote_1').destroy(); // destroy - } - - return { - //main function to initiate the module - init: function () { - handleWysihtml5(); - handleSummernote(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsEditors.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-editors.min.js b/assets/pages/scripts/components-editors.min.js deleted file mode 100755 index f5dcfd7..0000000 --- a/assets/pages/scripts/components-editors.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsEditors=function(){var t=function(){jQuery().wysihtml5&&$(".wysihtml5").size()>0&&$(".wysihtml5").wysihtml5({stylesheets:["../assets/global/plugins/bootstrap-wysihtml5/wysiwyg-color.css"]})},s=function(){$("#summernote_1").summernote({height:300})};return{init:function(){t(),s()}}}();jQuery(document).ready(function(){ComponentsEditors.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-form-tools-2.js b/assets/pages/scripts/components-form-tools-2.js deleted file mode 100755 index cd093a9..0000000 --- a/assets/pages/scripts/components-form-tools-2.js +++ /dev/null @@ -1,586 +0,0 @@ -var ComponentsFormTools = function () { - - var handleTwitterTypeahead = function() { - - // Example #1 - // instantiate the bloodhound suggestion engine - var numbers = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - local: [ - { num: 'metronic' }, - { num: 'keenthemes' }, - { num: 'metronic theme' }, - { num: 'metronic template' }, - { num: 'keenthemes team' } - ] - }); - - // initialize the bloodhound suggestion engine - numbers.initialize(); - - // instantiate the typeahead UI - if (App.isRTL()) { - $('#typeahead_example_1').attr("dir", "rtl"); - } - $('#typeahead_example_1').typeahead(null, { - displayKey: 'num', - hint: (App.isRTL() ? false : true), - source: numbers.ttAdapter() - }); - - // Example #2 - var countries = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 10, - prefetch: { - url: '../demo/typeahead_countries.json', - filter: function(list) { - return $.map(list, function(country) { return { name: country }; }); - } - } - }); - - countries.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_2').attr("dir", "rtl"); - } - $('#typeahead_example_2').typeahead(null, { - name: 'typeahead_example_2', - displayKey: 'name', - hint: (App.isRTL() ? false : true), - source: countries.ttAdapter() - }); - - // Example #3 - var custom = new Bloodhound({ - datumTokenizer: function(d) { return d.tokens; }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: '../demo/typeahead_custom.php?query=%QUERY' - }); - - custom.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_3').attr("dir", "rtl"); - } - $('#typeahead_example_3').typeahead(null, { - name: 'datypeahead_example_3', - displayKey: 'value', - source: custom.ttAdapter(), - hint: (App.isRTL() ? false : true), - templates: { - suggestion: Handlebars.compile([ - '
', - '
', - '
', - '', - '
', - '
', - '
', - '

{{value}}

', - '

{{desc}}

', - '
', - '
', - ].join('')) - } - }); - - // Example #4 - - var nba = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - prefetch: '../demo/typeahead_nba.json' - }); - - var nhl = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - prefetch: '../demo/typeahead_nhl.json' - }); - - nba.initialize(); - nhl.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_4').attr("dir", "rtl"); - } - $('#typeahead_example_4').typeahead({ - hint: (App.isRTL() ? false : true), - highlight: true - }, - { - name: 'nba', - displayKey: 'team', - source: nba.ttAdapter(), - templates: { - header: '

NBA Teams

' - } - }, - { - name: 'nhl', - displayKey: 'team', - source: nhl.ttAdapter(), - templates: { - header: '

NHL Teams

' - } - }); - - } - - var handleTwitterTypeaheadModal = function() { - - // Example #1 - // instantiate the bloodhound suggestion engine - var numbers = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - local: [ - { num: 'metronic' }, - { num: 'keenthemes' }, - { num: 'metronic theme' }, - { num: 'metronic template' }, - { num: 'keenthemes team' } - ] - }); - - // initialize the bloodhound suggestion engine - numbers.initialize(); - - // instantiate the typeahead UI - if (App.isRTL()) { - $('#typeahead_example_modal_1').attr("dir", "rtl"); - } - $('#typeahead_example_modal_1').typeahead(null, { - displayKey: 'num', - hint: (App.isRTL() ? false : true), - source: numbers.ttAdapter() - }); - - // Example #2 - var countries = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 10, - prefetch: { - url: '../demo/typeahead_countries.json', - filter: function(list) { - return $.map(list, function(country) { return { name: country }; }); - } - } - }); - - countries.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_modal_2').attr("dir", "rtl"); - } - $('#typeahead_example_modal_2').typeahead(null, { - name: 'typeahead_example_modal_2', - displayKey: 'name', - hint: (App.isRTL() ? false : true), - source: countries.ttAdapter() - }); - - // Example #3 - var custom = new Bloodhound({ - datumTokenizer: function(d) { return d.tokens; }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: '../demo/typeahead_custom.php?query=%QUERY' - }); - - custom.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_modal_3').attr("dir", "rtl"); - } - $('#typeahead_example_modal_3').typeahead(null, { - name: 'datypeahead_example_modal_3', - displayKey: 'value', - hint: (App.isRTL() ? false : true), - source: custom.ttAdapter(), - templates: { - suggestion: Handlebars.compile([ - '
', - '
', - '
', - '', - '
', - '
', - '
', - '

{{value}}

', - '

{{desc}}

', - '
', - '
', - ].join('')) - } - }); - - // Example #4 - - var nba = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 3, - prefetch: '../demo/typeahead_nba.json' - }); - - var nhl = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 3, - prefetch: '../demo/typeahead_nhl.json' - }); - - nba.initialize(); - nhl.initialize(); - - $('#typeahead_example_modal_4').typeahead({ - hint: (App.isRTL() ? false : true), - highlight: true - }, - { - name: 'nba', - displayKey: 'team', - source: nba.ttAdapter(), - templates: { - header: '

NBA Teams

' - } - }, - { - name: 'nhl', - displayKey: 'team', - source: nhl.ttAdapter(), - templates: { - header: '

NHL Teams

' - } - }); - - } - - var handleBootstrapSwitch = function() { - - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioState'); - }); - - // or - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioStateAllowUncheck'); - }); - - // or - $('.switch-radio1').on('switch-change', function () { - $('.switch-radio1').bootstrapSwitch('toggleRadioStateAllowUncheck', false); - }); - - } - - var handleBootstrapTouchSpin = function() { - - $("#touchspin_demo1").TouchSpin({ - buttondown_class: 'btn green', - buttonup_class: 'btn green', - min: -1000000000, - max: 1000000000, - stepinterval: 50, - maxboostedstep: 10000000, - prefix: '$' - }); - - $("#touchspin_demo2").TouchSpin({ - buttondown_class: 'btn blue', - buttonup_class: 'btn blue', - min: 0, - max: 100, - step: 0.1, - decimals: 2, - boostat: 5, - maxboostedstep: 10, - postfix: '%' - }); - - $("#touchspin_demo3").TouchSpin({ - buttondown_class: 'btn green', - buttonup_class: 'btn green', - prefix: "$", - postfix: "%" - }); - } - - var handleBootstrapMaxlength = function() { - $('#maxlength_defaultconfig').maxlength({ - limitReachedClass: "label label-danger", - }) - - $('#maxlength_thresholdconfig').maxlength({ - limitReachedClass: "label label-danger", - threshold: 20 - }); - - $('#maxlength_alloptions').maxlength({ - alwaysShow: true, - warningClass: "label label-success", - limitReachedClass: "label label-danger", - separator: ' out of ', - preText: 'You typed ', - postText: ' chars available.', - validate: true - }); - - $('#maxlength_textarea').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true - }); - - $('#maxlength_placement').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true, - placement: App.isRTL() ? 'top-right' : 'top-left' - }); - } - - var handleSpinners = function () { - $('#spinner1').spinner(); - $('#spinner2').spinner({disabled: true}); - $('#spinner3').spinner({value:0, min: 0, max: 10}); - $('#spinner4').spinner({value:0, step: 5, min: 0, max: 200}); - } - - var handleTagsInput = function () { - if (!jQuery().tagsInput) { - return; - } - $('#tags_1').tagsInput({ - width: 'auto', - 'onAddTag': function () { - //alert(1); - }, - }); - $('#tags_2').tagsInput({ - width: 300 - }); - } - - var handleInputMasks = function () { - - $("#mask_date").inputmask("d/m/y", { - autoUnmask: true - }); //direct mask - $("#mask_date1").inputmask("d/m/y", { - "placeholder": "*" - }); //change the placeholder - $("#mask_date2").inputmask("d/m/y", { - "placeholder": "dd/mm/yyyy" - }); //multi-char placeholder - $("#mask_phone").inputmask("mask", { - "mask": "(999) 999-9999" - }); //specifying fn & options - $("#mask_tin").inputmask({ - "mask": "99-9999999", - placeholder: "" // remove underscores from the input mask - }); //specifying options only - $("#mask_number").inputmask({ - "mask": "9", - "repeat": 10, - "greedy": false - }); // ~ mask "9" or mask "99" or ... mask "9999999999" - $("#mask_decimal").inputmask('decimal', { - rightAlignNumerics: false - }); //disables the right alignment of the decimal input - $("#mask_currency").inputmask('€ 999.999.999,99', { - numericInput: true - }); //123456 => € ___.__1.234,56 - - $("#mask_currency2").inputmask('€ 999,999,999.99', { - numericInput: true, - rightAlignNumerics: false, - greedy: false - }); //123456 => € ___.__1.234,56 - $("#mask_ssn").inputmask("999-99-9999", { - placeholder: " ", - clearMaskOnLostFocus: true - }); //default - } - - var handleIPAddressInput = function () { - $('#input_ipv4').ipAddress(); - $('#input_ipv6').ipAddress({ - v: 6 - }); - } - - var handlePasswordStrengthChecker = function () { - var initialized = false; - var input = $("#password_strength"); - - input.keydown(function () { - if (initialized === false) { - // set base options - input.pwstrength({ - raisePower: 1.4, - minChar: 8, - verdicts: ["Weak", "Normal", "Medium", "Strong", "Very Strong"], - scores: [17, 26, 40, 50, 60] - }); - - // add your own rule to calculate the password strength - input.pwstrength("addRule", "demoRule", function (options, word, score) { - return word.match(/[a-z].[0-9]/) && score; - }, 10, true); - - // set as initialized - initialized = true; - } - }); - } - - var handleUsernameAvailabilityChecker1 = function () { - var input = $("#username1_input"); - - $("#username1_checker").click(function (e) { - var pop = $(this); - - if (input.val() === "") { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - - pop.popover('destroy'); - pop.popover({ - 'placement': (App.isRTL() ? 'left' : 'right'), - 'html': true, - 'container': 'body', - 'content': 'Please enter a username to check its availability.', - }); - // add error class to the popover - pop.data('bs.popover').tip().addClass('error'); - // set last poped popover to be closed on click(see App.js => handlePopovers function) - App.setLastPopedPopover(pop); - pop.popover('show'); - e.stopPropagation(); // prevent closing the popover - - return; - } - - var btn = $(this); - - btn.attr('disabled', true); - - input.attr("readonly", true). - attr("disabled", true). - addClass("spinner"); - - $.post('../demo/username_checker.php', { - username: input.val() - }, function (res) { - btn.attr('disabled', false); - - input.attr("readonly", false). - attr("disabled", false). - removeClass("spinner"); - - if (res.status == 'OK') { - input.closest('.form-group').removeClass('has-error').addClass('has-success'); - - pop.popover('destroy'); - pop.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - pop.popover('show'); - pop.data('bs.popover').tip().removeClass('error').addClass('success'); - } else { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - - pop.popover('destroy'); - pop.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - pop.popover('show'); - pop.data('bs.popover').tip().removeClass('success').addClass('error'); - App.setLastPopedPopover(pop); - } - - }, 'json'); - - }); - } - - var handleUsernameAvailabilityChecker2 = function () { - $("#username2_input").change(function () { - var input = $(this); - - if (input.val() === "") { - input.closest('.form-group').removeClass('has-error').removeClass('has-success'); - $('.fa-check, fa-warning', input.closest('.form-group')).remove(); - - return; - } - - input.attr("readonly", true). - attr("disabled", true). - addClass("spinner"); - - $.post('../demo/username_checker.php', { - username: input.val() - }, function (res) { - input.attr("readonly", false). - attr("disabled", false). - removeClass("spinner"); - - // change popover font color based on the result - if (res.status == 'OK') { - input.closest('.form-group').removeClass('has-error').addClass('has-success'); - $('.fa-warning', input.closest('.form-group')).remove(); - input.before(''); - input.data('bs.popover').tip().removeClass('error').addClass('success'); - } else { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - $('.fa-check', input.closest('.form-group')).remove(); - input.before(''); - - input.popover('destroy'); - input.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - input.popover('show'); - input.data('bs.popover').tip().removeClass('success').addClass('error'); - - App.setLastPopedPopover(input); - } - - }, 'json'); - - }); - } - - return { - //main function to initiate the module - init: function () { - handleTwitterTypeahead(); - handleTwitterTypeaheadModal(); - - handleBootstrapSwitch(); - handleBootstrapTouchSpin(); - handleBootstrapMaxlength(); - handleSpinners(); - handleTagsInput(); - handleInputMasks(); - handleIPAddressInput(); - handlePasswordStrengthChecker(); - handleUsernameAvailabilityChecker1(); - handleUsernameAvailabilityChecker2(); - } - }; - -}(); \ No newline at end of file diff --git a/assets/pages/scripts/components-form-tools-2.min.js b/assets/pages/scripts/components-form-tools-2.min.js deleted file mode 100755 index 988b659..0000000 --- a/assets/pages/scripts/components-form-tools-2.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsFormTools=function(){var e=function(){var e=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.num)},queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{num:"metronic"},{num:"keenthemes"},{num:"metronic theme"},{num:"metronic template"},{num:"keenthemes team"}]});e.initialize(),App.isRTL()&&$("#typeahead_example_1").attr("dir","rtl"),$("#typeahead_example_1").typeahead(null,{displayKey:"num",hint:!App.isRTL(),source:e.ttAdapter()});var a=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.name)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:10,prefetch:{url:"../demo/typeahead_countries.json",filter:function(e){return $.map(e,function(e){return{name:e}})}}});a.initialize(),App.isRTL()&&$("#typeahead_example_2").attr("dir","rtl"),$("#typeahead_example_2").typeahead(null,{name:"typeahead_example_2",displayKey:"name",hint:!App.isRTL(),source:a.ttAdapter()});var t=new Bloodhound({datumTokenizer:function(e){return e.tokens},queryTokenizer:Bloodhound.tokenizers.whitespace,remote:"../demo/typeahead_custom.php?query=%QUERY"});t.initialize(),App.isRTL()&&$("#typeahead_example_3").attr("dir","rtl"),$("#typeahead_example_3").typeahead(null,{name:"datypeahead_example_3",displayKey:"value",source:t.ttAdapter(),hint:!App.isRTL(),templates:{suggestion:Handlebars.compile(['
','
','
','',"
","
",'
','

{{value}}

',"

{{desc}}

","
","
"].join(""))}});var o=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"../demo/typeahead_nba.json"}),n=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"../demo/typeahead_nhl.json"});o.initialize(),n.initialize(),App.isRTL()&&$("#typeahead_example_4").attr("dir","rtl"),$("#typeahead_example_4").typeahead({hint:!App.isRTL(),highlight:!0},{name:"nba",displayKey:"team",source:o.ttAdapter(),templates:{header:"

NBA Teams

"}},{name:"nhl",displayKey:"team",source:n.ttAdapter(),templates:{header:"

NHL Teams

"}})},a=function(){var e=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.num)},queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{num:"metronic"},{num:"keenthemes"},{num:"metronic theme"},{num:"metronic template"},{num:"keenthemes team"}]});e.initialize(),App.isRTL()&&$("#typeahead_example_modal_1").attr("dir","rtl"),$("#typeahead_example_modal_1").typeahead(null,{displayKey:"num",hint:!App.isRTL(),source:e.ttAdapter()});var a=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.name)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:10,prefetch:{url:"../demo/typeahead_countries.json",filter:function(e){return $.map(e,function(e){return{name:e}})}}});a.initialize(),App.isRTL()&&$("#typeahead_example_modal_2").attr("dir","rtl"),$("#typeahead_example_modal_2").typeahead(null,{name:"typeahead_example_modal_2",displayKey:"name",hint:!App.isRTL(),source:a.ttAdapter()});var t=new Bloodhound({datumTokenizer:function(e){return e.tokens},queryTokenizer:Bloodhound.tokenizers.whitespace,remote:"../demo/typeahead_custom.php?query=%QUERY"});t.initialize(),App.isRTL()&&$("#typeahead_example_modal_3").attr("dir","rtl"),$("#typeahead_example_modal_3").typeahead(null,{name:"datypeahead_example_modal_3",displayKey:"value",hint:!App.isRTL(),source:t.ttAdapter(),templates:{suggestion:Handlebars.compile(['
','
','
','',"
","
",'
','

{{value}}

',"

{{desc}}

","
","
"].join(""))}});var o=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:3,prefetch:"../demo/typeahead_nba.json"}),n=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:3,prefetch:"../demo/typeahead_nhl.json"});o.initialize(),n.initialize(),$("#typeahead_example_modal_4").typeahead({hint:!App.isRTL(),highlight:!0},{name:"nba",displayKey:"team",source:o.ttAdapter(),templates:{header:"

NBA Teams

"}},{name:"nhl",displayKey:"team",source:n.ttAdapter(),templates:{header:"

NHL Teams

"}})},t=function(){$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioState")}),$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioStateAllowUncheck")}),$(".switch-radio1").on("switch-change",function(){$(".switch-radio1").bootstrapSwitch("toggleRadioStateAllowUncheck",!1)})},o=function(){$("#touchspin_demo1").TouchSpin({buttondown_class:"btn green",buttonup_class:"btn green",min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,prefix:"$"}),$("#touchspin_demo2").TouchSpin({buttondown_class:"btn blue",buttonup_class:"btn blue",min:0,max:100,step:.1,decimals:2,boostat:5,maxboostedstep:10,postfix:"%"}),$("#touchspin_demo3").TouchSpin({buttondown_class:"btn green",buttonup_class:"btn green",prefix:"$",postfix:"%"})},n=function(){$("#maxlength_defaultconfig").maxlength({limitReachedClass:"label label-danger"}),$("#maxlength_thresholdconfig").maxlength({limitReachedClass:"label label-danger",threshold:20}),$("#maxlength_alloptions").maxlength({alwaysShow:!0,warningClass:"label label-success",limitReachedClass:"label label-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",validate:!0}),$("#maxlength_textarea").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0}),$("#maxlength_placement").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0,placement:App.isRTL()?"top-right":"top-left"})},s=function(){$("#spinner1").spinner(),$("#spinner2").spinner({disabled:!0}),$("#spinner3").spinner({value:0,min:0,max:10}),$("#spinner4").spinner({value:0,step:5,min:0,max:200})},i=function(){jQuery().tagsInput&&($("#tags_1").tagsInput({width:"auto",onAddTag:function(){}}),$("#tags_2").tagsInput({width:300}))},r=function(){$("#mask_date").inputmask("d/m/y",{autoUnmask:!0}),$("#mask_date1").inputmask("d/m/y",{placeholder:"*"}),$("#mask_date2").inputmask("d/m/y",{placeholder:"dd/mm/yyyy"}),$("#mask_phone").inputmask("mask",{mask:"(999) 999-9999"}),$("#mask_tin").inputmask({mask:"99-9999999",placeholder:""}),$("#mask_number").inputmask({mask:"9",repeat:10,greedy:!1}),$("#mask_decimal").inputmask("decimal",{rightAlignNumerics:!1}),$("#mask_currency").inputmask("€ 999.999.999,99",{numericInput:!0}),$("#mask_currency2").inputmask("€ 999,999,999.99",{numericInput:!0,rightAlignNumerics:!1,greedy:!1}),$("#mask_ssn").inputmask("999-99-9999",{placeholder:" ",clearMaskOnLostFocus:!0})},d=function(){$("#input_ipv4").ipAddress(),$("#input_ipv6").ipAddress({v:6})},l=function(){var e=!1,a=$("#password_strength");a.keydown(function(){e===!1&&(a.pwstrength({raisePower:1.4,minChar:8,verdicts:["Weak","Normal","Medium","Strong","Very Strong"],scores:[17,26,40,50,60]}),a.pwstrength("addRule","demoRule",function(e,a,t){return a.match(/[a-z].[0-9]/)&&t},10,!0),e=!0)})},p=function(){var e=$("#username1_input");$("#username1_checker").click(function(a){var t=$(this);if(""===e.val())return e.closest(".form-group").removeClass("has-success").addClass("has-error"),t.popover("destroy"),t.popover({placement:App.isRTL()?"left":"right",html:!0,container:"body",content:"Please enter a username to check its availability."}),t.data("bs.popover").tip().addClass("error"),App.setLastPopedPopover(t),t.popover("show"),void a.stopPropagation();var o=$(this);o.attr("disabled",!0),e.attr("readonly",!0).attr("disabled",!0).addClass("spinner"),$.post("../demo/username_checker.php",{username:e.val()},function(a){o.attr("disabled",!1),e.attr("readonly",!1).attr("disabled",!1).removeClass("spinner"),"OK"==a.status?(e.closest(".form-group").removeClass("has-error").addClass("has-success"),t.popover("destroy"),t.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:a.message}),t.popover("show"),t.data("bs.popover").tip().removeClass("error").addClass("success")):(e.closest(".form-group").removeClass("has-success").addClass("has-error"),t.popover("destroy"),t.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:a.message}),t.popover("show"),t.data("bs.popover").tip().removeClass("success").addClass("error"),App.setLastPopedPopover(t))},"json")})},m=function(){$("#username2_input").change(function(){var e=$(this);return""===e.val()?(e.closest(".form-group").removeClass("has-error").removeClass("has-success"),void $(".fa-check, fa-warning",e.closest(".form-group")).remove()):(e.attr("readonly",!0).attr("disabled",!0).addClass("spinner"),void $.post("../demo/username_checker.php",{username:e.val()},function(a){e.attr("readonly",!1).attr("disabled",!1).removeClass("spinner"),"OK"==a.status?(e.closest(".form-group").removeClass("has-error").addClass("has-success"),$(".fa-warning",e.closest(".form-group")).remove(),e.before(''),e.data("bs.popover").tip().removeClass("error").addClass("success")):(e.closest(".form-group").removeClass("has-success").addClass("has-error"),$(".fa-check",e.closest(".form-group")).remove(),e.before(''),e.popover("destroy"),e.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:a.message}),e.popover("show"),e.data("bs.popover").tip().removeClass("success").addClass("error"),App.setLastPopedPopover(e))},"json"))})};return{init:function(){e(),a(),t(),o(),n(),s(),i(),r(),d(),l(),p(),m()}}}(); \ No newline at end of file diff --git a/assets/pages/scripts/components-form-tools.js b/assets/pages/scripts/components-form-tools.js deleted file mode 100755 index b3c6fc2..0000000 --- a/assets/pages/scripts/components-form-tools.js +++ /dev/null @@ -1,202 +0,0 @@ -var ComponentsFormTools = function () { - - var handleBootstrapMaxlength = function() { - $('#maxlength_defaultconfig').maxlength({ - limitReachedClass: "label label-danger", - }) - - $('#maxlength_thresholdconfig').maxlength({ - limitReachedClass: "label label-danger", - threshold: 20 - }); - - $('#maxlength_alloptions').maxlength({ - alwaysShow: true, - warningClass: "label label-success", - limitReachedClass: "label label-danger", - separator: ' out of ', - preText: 'You typed ', - postText: ' chars available.', - validate: true - }); - - $('#maxlength_textarea').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true - }); - - $('#maxlength_placement').maxlength({ - limitReachedClass: "label label-danger", - alwaysShow: true, - placement: App.isRTL() ? 'top-right' : 'top-left' - }); - } - - var handlePasswordStrengthChecker = function () { - var initialized = false; - var input = $("#password_strength"); - - input.keydown(function () { - if (initialized === false) { - // set base options - input.pwstrength({ - raisePower: 1.4, - minChar: 8, - verdicts: ["Weak", "Normal", "Medium", "Strong", "Very Strong"], - scores: [17, 26, 40, 50, 60] - }); - - // add your own rule to calculate the password strength - input.pwstrength("addRule", "demoRule", function (options, word, score) { - return word.match(/[a-z].[0-9]/) && score; - }, 10, true); - - // set as initialized - initialized = true; - } - }); - } - - var handleUsernameAvailabilityChecker1 = function () { - var input = $("#username1_input"); - - $("#username1_checker").click(function (e) { - var pop = $(this); - - if (input.val() === "") { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - - pop.popover('destroy'); - pop.popover({ - 'placement': (App.isRTL() ? 'left' : 'right'), - 'html': true, - 'container': 'body', - 'content': 'Please enter a username to check its availability.', - }); - // add error class to the popover - pop.data('bs.popover').tip().addClass('error'); - // set last poped popover to be closed on click(see App.js => handlePopovers function) - App.setLastPopedPopover(pop); - pop.popover('show'); - e.stopPropagation(); // prevent closing the popover - - return; - } - - var btn = $(this); - - btn.attr('disabled', true); - - input.attr("readonly", true). - attr("disabled", true). - addClass("spinner"); - - $.post('../demo/username_checker.php', { - username: input.val() - }, function (res) { - btn.attr('disabled', false); - - input.attr("readonly", false). - attr("disabled", false). - removeClass("spinner"); - - if (res.status == 'OK') { - input.closest('.form-group').removeClass('has-error').addClass('has-success'); - - pop.popover('destroy'); - pop.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - pop.popover('show'); - pop.data('bs.popover').tip().removeClass('error').addClass('success'); - } else { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - - pop.popover('destroy'); - pop.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - pop.popover('show'); - pop.data('bs.popover').tip().removeClass('success').addClass('error'); - App.setLastPopedPopover(pop); - } - - }, 'json'); - - }); - } - - var handleUsernameAvailabilityChecker2 = function () { - $("#username2_input").change(function () { - var input = $(this); - - if (input.val() === "") { - input.closest('.form-group').removeClass('has-error').removeClass('has-success'); - $('.fa-check, fa-warning', input.closest('.form-group')).remove(); - - return; - } - - input.attr("readonly", true). - attr("disabled", true). - addClass("spinner"); - - $.post('../demo/username_checker.php', { - username: input.val() - }, function (res) { - input.attr("readonly", false). - attr("disabled", false). - removeClass("spinner"); - - // change popover font color based on the result - if (res.status == 'OK') { - input.closest('.form-group').removeClass('has-error').addClass('has-success'); - $('.fa-warning', input.closest('.form-group')).remove(); - input.before(''); - input.data('bs.popover').tip().removeClass('error').addClass('success'); - } else { - input.closest('.form-group').removeClass('has-success').addClass('has-error'); - $('.fa-check', input.closest('.form-group')).remove(); - input.before(''); - - input.popover('destroy'); - input.popover({ - 'html': true, - 'placement': (App.isRTL() ? 'left' : 'right'), - 'container': 'body', - 'content': res.message, - }); - input.popover('show'); - input.data('bs.popover').tip().removeClass('success').addClass('error'); - - App.setLastPopedPopover(input); - } - - }, 'json'); - - }); - } - - return { - //main function to initiate the module - init: function () { - handleBootstrapMaxlength(); - handlePasswordStrengthChecker(); - handleUsernameAvailabilityChecker1(); - handleUsernameAvailabilityChecker2(); - } - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - ComponentsFormTools.init(); // init metronic core componets - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/components-form-tools.min.js b/assets/pages/scripts/components-form-tools.min.js deleted file mode 100755 index 035d245..0000000 --- a/assets/pages/scripts/components-form-tools.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsFormTools=function(){var e=function(){$("#maxlength_defaultconfig").maxlength({limitReachedClass:"label label-danger"}),$("#maxlength_thresholdconfig").maxlength({limitReachedClass:"label label-danger",threshold:20}),$("#maxlength_alloptions").maxlength({alwaysShow:!0,warningClass:"label label-success",limitReachedClass:"label label-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",validate:!0}),$("#maxlength_textarea").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0}),$("#maxlength_placement").maxlength({limitReachedClass:"label label-danger",alwaysShow:!0,placement:App.isRTL()?"top-right":"top-left"})},s=function(){var e=!1,s=$("#password_strength");s.keydown(function(){e===!1&&(s.pwstrength({raisePower:1.4,minChar:8,verdicts:["Weak","Normal","Medium","Strong","Very Strong"],scores:[17,26,40,50,60]}),s.pwstrength("addRule","demoRule",function(e,s,a){return s.match(/[a-z].[0-9]/)&&a},10,!0),e=!0)})},a=function(){var e=$("#username1_input");$("#username1_checker").click(function(s){var a=$(this);if(""===e.val())return e.closest(".form-group").removeClass("has-success").addClass("has-error"),a.popover("destroy"),a.popover({placement:App.isRTL()?"left":"right",html:!0,container:"body",content:"Please enter a username to check its availability."}),a.data("bs.popover").tip().addClass("error"),App.setLastPopedPopover(a),a.popover("show"),void s.stopPropagation();var o=$(this);o.attr("disabled",!0),e.attr("readonly",!0).attr("disabled",!0).addClass("spinner"),$.post("../demo/username_checker.php",{username:e.val()},function(s){o.attr("disabled",!1),e.attr("readonly",!1).attr("disabled",!1).removeClass("spinner"),"OK"==s.status?(e.closest(".form-group").removeClass("has-error").addClass("has-success"),a.popover("destroy"),a.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:s.message}),a.popover("show"),a.data("bs.popover").tip().removeClass("error").addClass("success")):(e.closest(".form-group").removeClass("has-success").addClass("has-error"),a.popover("destroy"),a.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:s.message}),a.popover("show"),a.data("bs.popover").tip().removeClass("success").addClass("error"),App.setLastPopedPopover(a))},"json")})},o=function(){$("#username2_input").change(function(){var e=$(this);return""===e.val()?(e.closest(".form-group").removeClass("has-error").removeClass("has-success"),void $(".fa-check, fa-warning",e.closest(".form-group")).remove()):(e.attr("readonly",!0).attr("disabled",!0).addClass("spinner"),void $.post("../demo/username_checker.php",{username:e.val()},function(s){e.attr("readonly",!1).attr("disabled",!1).removeClass("spinner"),"OK"==s.status?(e.closest(".form-group").removeClass("has-error").addClass("has-success"),$(".fa-warning",e.closest(".form-group")).remove(),e.before(''),e.data("bs.popover").tip().removeClass("error").addClass("success")):(e.closest(".form-group").removeClass("has-success").addClass("has-error"),$(".fa-check",e.closest(".form-group")).remove(),e.before(''),e.popover("destroy"),e.popover({html:!0,placement:App.isRTL()?"left":"right",container:"body",content:s.message}),e.popover("show"),e.data("bs.popover").tip().removeClass("success").addClass("error"),App.setLastPopedPopover(e))},"json"))})};return{init:function(){e(),s(),a(),o()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){ComponentsFormTools.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-ion-sliders.js b/assets/pages/scripts/components-ion-sliders.js deleted file mode 100755 index 0f8dac1..0000000 --- a/assets/pages/scripts/components-ion-sliders.js +++ /dev/null @@ -1,150 +0,0 @@ -var ComponentsIonSliders = function() { - - var handleBasicDemo = function() { - // demo 1 - $("#range_1").ionRangeSlider(); - - // demo 2 - $("#range_2").ionRangeSlider({ - min: 100, - max: 1000, - from: 550 - }); - - // demo 3 - $("#range_3").ionRangeSlider({ - type: "double", - grid: true, - min: 0, - max: 1000, - from: 200, - to: 800, - prefix: "$" - }); - - // demo 4 - $("#range_4").ionRangeSlider({ - type: "double", - grid: true, - min: -1000, - max: 1000, - from: -500, - to: 500 - }); - - // demo 5 - $("#range_5").ionRangeSlider({ - type: "double", - grid: true, - from: 1, - to: 5, - values: [0, 10, 100, 1000, 10000, 100000, 1000000] - }); - - // demo 6 - $("#range_6").ionRangeSlider({ - grid: true, - from: 5, - values: [ - "zero", "one", - "two", "three", - "four", "five", - "six", "seven", - "eight", "nine", - "ten" - ] - }); - - // demo 7 - $("#range_7").ionRangeSlider({ - grid: true, - from: 3, - values: [ - "January", "February", "March", - "April", "May", "June", - "July", "August", "September", - "October", "November", "December" - ] - }); - - // demo 8 - $("#range_8").ionRangeSlider({ - type: "double", - min: 100, - max: 200, - from: 145, - to: 155, - prefix: "Weight: ", - postfix: " million pounds", - decorate_both: true - }); - - // demo 9 - $("#range_9").ionRangeSlider({ - type: "double", - min: 100, - max: 200, - from: 148, - to: 152, - prefix: "Weight: ", - postfix: " million pounds", - values_separator: " → " - }); - } - - var handleAdvancedDemo = function() { - $("#range_10").ionRangeSlider({ - type: "double", - min: 0, - max: 100, - from: 30, - to: 70, - from_fixed: true - }); - - $("#range_11").ionRangeSlider({ - min: 0, - max: 100, - from: 30, - from_min: 10, - from_max: 50 - }); - - $("#range_12").ionRangeSlider({ - type: "double", - min: 0, - max: 100, - from: 20, - from_min: 10, - from_max: 30, - from_shadow: true, - to: 80, - to_min: 70, - to_max: 90, - to_shadow: true, - grid: true, - grid_num: 10 - }); - - $("#range_13").ionRangeSlider({ - min: 0, - max: 100, - from: 30, - disable: true - }); - } - - return { - //main function to initiate the module - init: function() { - handleBasicDemo(); - handleAdvancedDemo(); - } - - }; - -}(); - -jQuery(document).ready(function() { - ComponentsIonSliders.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-ion-sliders.min.js b/assets/pages/scripts/components-ion-sliders.min.js deleted file mode 100755 index 5274e60..0000000 --- a/assets/pages/scripts/components-ion-sliders.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsIonSliders=function(){var e=function(){$("#range_1").ionRangeSlider(),$("#range_2").ionRangeSlider({min:100,max:1e3,from:550}),$("#range_3").ionRangeSlider({type:"double",grid:!0,min:0,max:1e3,from:200,to:800,prefix:"$"}),$("#range_4").ionRangeSlider({type:"double",grid:!0,min:-1e3,max:1e3,from:-500,to:500}),$("#range_5").ionRangeSlider({type:"double",grid:!0,from:1,to:5,values:[0,10,100,1e3,1e4,1e5,1e6]}),$("#range_6").ionRangeSlider({grid:!0,from:5,values:["zero","one","two","three","four","five","six","seven","eight","nine","ten"]}),$("#range_7").ionRangeSlider({grid:!0,from:3,values:["January","February","March","April","May","June","July","August","September","October","November","December"]}),$("#range_8").ionRangeSlider({type:"double",min:100,max:200,from:145,to:155,prefix:"Weight: ",postfix:" million pounds",decorate_both:!0}),$("#range_9").ionRangeSlider({type:"double",min:100,max:200,from:148,to:152,prefix:"Weight: ",postfix:" million pounds",values_separator:" → "})},n=function(){$("#range_10").ionRangeSlider({type:"double",min:0,max:100,from:30,to:70,from_fixed:!0}),$("#range_11").ionRangeSlider({min:0,max:100,from:30,from_min:10,from_max:50}),$("#range_12").ionRangeSlider({type:"double",min:0,max:100,from:20,from_min:10,from_max:30,from_shadow:!0,to:80,to_min:70,to_max:90,to_shadow:!0,grid:!0,grid_num:10}),$("#range_13").ionRangeSlider({min:0,max:100,from:30,disable:!0})};return{init:function(){e(),n()}}}();jQuery(document).ready(function(){ComponentsIonSliders.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-knob-dials.js b/assets/pages/scripts/components-knob-dials.js deleted file mode 100755 index 2687d26..0000000 --- a/assets/pages/scripts/components-knob-dials.js +++ /dev/null @@ -1,27 +0,0 @@ -var ComponentsKnobDials = function () { - - return { - //main function to initiate the module - - init: function () { - //knob does not support ie8 so skip it - if (!jQuery().knob || App.isIE8()) { - return; - } - - // general knob - $(".knob").knob({ - 'dynamicDraw': true, - 'thickness': 0.2, - 'tickColorizeValues': true, - 'skin': 'tron' - }); - } - - }; - -}(); - -jQuery(document).ready(function() { - ComponentsKnobDials.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-knob-dials.min.js b/assets/pages/scripts/components-knob-dials.min.js deleted file mode 100755 index af37ed8..0000000 --- a/assets/pages/scripts/components-knob-dials.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsKnobDials=function(){return{init:function(){jQuery().knob&&!App.isIE8()&&$(".knob").knob({dynamicDraw:!0,thickness:.2,tickColorizeValues:!0,skin:"tron"})}}}();jQuery(document).ready(function(){ComponentsKnobDials.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-multi-select.js b/assets/pages/scripts/components-multi-select.js deleted file mode 100755 index 3d0638a..0000000 --- a/assets/pages/scripts/components-multi-select.js +++ /dev/null @@ -1,263 +0,0 @@ -var ComponentsDropdowns = function () { - - var handleSelect2 = function () { - - $('#select2_sample1').select2({ - placeholder: "Select an option", - allowClear: true - }); - - $('#select2_sample2').select2({ - placeholder: "Select a State", - allowClear: true - }); - - $("#select2_sample3").select2({ - placeholder: "Select...", - allowClear: true, - minimumInputLength: 1, - query: function (query) { - var data = { - results: [] - }, i, j, s; - for (i = 1; i < 5; i++) { - s = ""; - for (j = 0; j < i; j++) { - s = s + query.term; - } - data.results.push({ - id: query.term + i, - text: s - }); - } - query.callback(data); - } - }); - - function format(state) { - if (!state.id) return state.text; // optgroup - return "  " + state.text; - } - $("#select2_sample4").select2({ - placeholder: "Select a Country", - allowClear: true, - formatResult: format, - formatSelection: format, - escapeMarkup: function (m) { - return m; - } - }); - - $("#select2_sample5").select2({ - tags: ["red", "green", "blue", "yellow", "pink"] - }); - - - function movieFormatResult(movie) { - var markup = ""; - if (movie.posters !== undefined && movie.posters.thumbnail !== undefined) { - markup += ""; - } - markup += "
" + movie.title + "
"; - if (movie.critics_consensus !== undefined) { - markup += "
" + movie.critics_consensus + "
"; - } else if (movie.synopsis !== undefined) { - markup += "
" + movie.synopsis + "
"; - } - markup += "
" - return markup; - } - - function movieFormatSelection(movie) { - return movie.title; - } - - $("#select2_sample6").select2({ - placeholder: "Search for a movie", - minimumInputLength: 1, - ajax: { // instead of writing the function to execute the request we use Select2's convenient helper - url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json", - dataType: 'jsonp', - data: function (term, page) { - return { - q: term, // search term - page_limit: 10, - apikey: "ju6z9mjyajq2djue3gbvv26t" // please do not use so this example keeps working - }; - }, - results: function (data, page) { // parse the results into the format expected by Select2. - // since we are using custom formatting functions we do not need to alter remote JSON data - return { - results: data.movies - }; - } - }, - initSelection: function (element, callback) { - // the input tag has a value attribute preloaded that points to a preselected movie's id - // this function resolves that id attribute to an object that select2 can render - // using its formatResult renderer - that way the movie name is shown preselected - var id = $(element).val(); - if (id !== "") { - $.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/" + id + ".json", { - data: { - apikey: "ju6z9mjyajq2djue3gbvv26t" - }, - dataType: "jsonp" - }).done(function (data) { - callback(data); - }); - } - }, - formatResult: movieFormatResult, // omitted for brevity, see the source of this page - formatSelection: movieFormatSelection, // omitted for brevity, see the source of this page - dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller - escapeMarkup: function (m) { - return m; - } // we do not want to escape markup since we are displaying html in results - }); - } - - var handleSelect2Modal = function () { - - $('#select2_sample_modal_1').select2({ - placeholder: "Select an option", - allowClear: true - }); - - $('#select2_sample_modal_2').select2({ - placeholder: "Select a State", - allowClear: true - }); - - $("#select2_sample_modal_3").select2({ - allowClear: true, - minimumInputLength: 1, - query: function (query) { - var data = { - results: [] - }, i, j, s; - for (i = 1; i < 5; i++) { - s = ""; - for (j = 0; j < i; j++) { - s = s + query.term; - } - data.results.push({ - id: query.term + i, - text: s - }); - } - query.callback(data); - } - }); - - function format(state) { - if (!state.id) return state.text; // optgroup - return "  " + state.text; - } - $("#select2_sample_modal_4").select2({ - allowClear: true, - formatResult: format, - formatSelection: format, - escapeMarkup: function (m) { - return m; - } - }); - - $("#select2_sample_modal_5").select2({ - tags: ["red", "green", "blue", "yellow", "pink"] - }); - - - function movieFormatResult(movie) { - var markup = ""; - if (movie.posters !== undefined && movie.posters.thumbnail !== undefined) { - markup += ""; - } - markup += "
" + movie.title + "
"; - if (movie.critics_consensus !== undefined) { - markup += "
" + movie.critics_consensus + "
"; - } else if (movie.synopsis !== undefined) { - markup += "
" + movie.synopsis + "
"; - } - markup += "
" - return markup; - } - - function movieFormatSelection(movie) { - return movie.title; - } - - $("#select2_sample_modal_6").select2({ - placeholder: "Search for a movie", - minimumInputLength: 1, - ajax: { // instead of writing the function to execute the request we use Select2's convenient helper - url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json", - dataType: 'jsonp', - data: function (term, page) { - return { - q: term, // search term - page_limit: 10, - apikey: "ju6z9mjyajq2djue3gbvv26t" // please do not use so this example keeps working - }; - }, - results: function (data, page) { // parse the results into the format expected by Select2. - // since we are using custom formatting functions we do not need to alter remote JSON data - return { - results: data.movies - }; - } - }, - initSelection: function (element, callback) { - // the input tag has a value attribute preloaded that points to a preselected movie's id - // this function resolves that id attribute to an object that select2 can render - // using its formatResult renderer - that way the movie name is shown preselected - var id = $(element).val(); - if (id !== "") { - $.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/" + id + ".json", { - data: { - apikey: "ju6z9mjyajq2djue3gbvv26t" - }, - dataType: "jsonp" - }).done(function (data) { - callback(data); - }); - } - }, - formatResult: movieFormatResult, // omitted for brevity, see the source of this page - formatSelection: movieFormatSelection, // omitted for brevity, see the source of this page - dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller - escapeMarkup: function (m) { - return m; - } // we do not want to escape markup since we are displaying html in results - }); - } - - var handleBootstrapSelect = function() { - $('.bs-select').selectpicker({ - iconBase: 'fa', - tickIcon: 'fa-check' - }); - } - - var handleMultiSelect = function () { - $('#my_multi_select1').multiSelect(); - $('#my_multi_select2').multiSelect({ - selectableOptgroup: true - }); - } - - return { - //main function to initiate the module - init: function () { - handleSelect2(); - handleSelect2Modal(); - handleMultiSelect(); - handleBootstrapSelect(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsDropdowns.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-multi-select.min.js b/assets/pages/scripts/components-multi-select.min.js deleted file mode 100755 index 293767a..0000000 --- a/assets/pages/scripts/components-multi-select.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsDropdowns=function(){var e=function(){function e(e){return e.id?"  "+e.text:e.text}function t(e){var t="";return void 0!==e.posters&&void 0!==e.posters.thumbnail&&(t+=""),t+="
"+e.title+"
",void 0!==e.critics_consensus?t+="
"+e.critics_consensus+"
":void 0!==e.synopsis&&(t+="
"+e.synopsis+"
"),t+="
"}function s(e){return e.title}$("#select2_sample1").select2({placeholder:"Select an option",allowClear:!0}),$("#select2_sample2").select2({placeholder:"Select a State",allowClear:!0}),$("#select2_sample3").select2({placeholder:"Select...",allowClear:!0,minimumInputLength:1,query:function(e){var t,s,l,o={results:[]};for(t=1;5>t;t++){for(l="",s=0;t>s;s++)l+=e.term;o.results.push({id:e.term+t,text:l})}e.callback(o)}}),$("#select2_sample4").select2({placeholder:"Select a Country",allowClear:!0,formatResult:e,formatSelection:e,escapeMarkup:function(e){return e}}),$("#select2_sample5").select2({tags:["red","green","blue","yellow","pink"]}),$("#select2_sample6").select2({placeholder:"Search for a movie",minimumInputLength:1,ajax:{url:"http://api.rottentomatoes.com/api/public/v1.0/movies.json",dataType:"jsonp",data:function(e,t){return{q:e,page_limit:10,apikey:"ju6z9mjyajq2djue3gbvv26t"}},results:function(e,t){return{results:e.movies}}},initSelection:function(e,t){var s=$(e).val();""!==s&&$.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/"+s+".json",{data:{apikey:"ju6z9mjyajq2djue3gbvv26t"},dataType:"jsonp"}).done(function(e){t(e)})},formatResult:t,formatSelection:s,dropdownCssClass:"bigdrop",escapeMarkup:function(e){return e}})},t=function(){function e(e){return e.id?"  "+e.text:e.text}function t(e){var t="";return void 0!==e.posters&&void 0!==e.posters.thumbnail&&(t+=""),t+="
"+e.title+"
",void 0!==e.critics_consensus?t+="
"+e.critics_consensus+"
":void 0!==e.synopsis&&(t+="
"+e.synopsis+"
"),t+="
"}function s(e){return e.title}$("#select2_sample_modal_1").select2({placeholder:"Select an option",allowClear:!0}),$("#select2_sample_modal_2").select2({placeholder:"Select a State",allowClear:!0}),$("#select2_sample_modal_3").select2({allowClear:!0,minimumInputLength:1,query:function(e){var t,s,l,o={results:[]};for(t=1;5>t;t++){for(l="",s=0;t>s;s++)l+=e.term;o.results.push({id:e.term+t,text:l})}e.callback(o)}}),$("#select2_sample_modal_4").select2({allowClear:!0,formatResult:e,formatSelection:e,escapeMarkup:function(e){return e}}),$("#select2_sample_modal_5").select2({tags:["red","green","blue","yellow","pink"]}),$("#select2_sample_modal_6").select2({placeholder:"Search for a movie",minimumInputLength:1,ajax:{url:"http://api.rottentomatoes.com/api/public/v1.0/movies.json",dataType:"jsonp",data:function(e,t){return{q:e,page_limit:10,apikey:"ju6z9mjyajq2djue3gbvv26t"}},results:function(e,t){return{results:e.movies}}},initSelection:function(e,t){var s=$(e).val();""!==s&&$.ajax("http://api.rottentomatoes.com/api/public/v1.0/movies/"+s+".json",{data:{apikey:"ju6z9mjyajq2djue3gbvv26t"},dataType:"jsonp"}).done(function(e){t(e)})},formatResult:t,formatSelection:s,dropdownCssClass:"bigdrop",escapeMarkup:function(e){return e}})},s=function(){$(".bs-select").selectpicker({iconBase:"fa",tickIcon:"fa-check"})},l=function(){$("#my_multi_select1").multiSelect(),$("#my_multi_select2").multiSelect({selectableOptgroup:!0})};return{init:function(){e(),t(),l(),s()}}}();jQuery(document).ready(function(){ComponentsDropdowns.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-nouisliders.js b/assets/pages/scripts/components-nouisliders.js deleted file mode 100755 index 89e54e2..0000000 --- a/assets/pages/scripts/components-nouisliders.js +++ /dev/null @@ -1,308 +0,0 @@ -var ComponentsNoUiSliders = function() { - - var demo2 = function() { - var connectSlider = document.getElementById('demo2'); - - noUiSlider.create(connectSlider, { - start: [20], - connect: false, - range: { - 'min': 0, - 'max': 100 - } - }); - } - - var demo3 = function() { - var connectSlider = document.getElementById('demo3'); - - noUiSlider.create(connectSlider, { - start: [20, 80], - connect: false, - range: { - 'min': 0, - 'max': 100 - } - }); - - var connectBar = document.createElement('div'), - connectBase = connectSlider.getElementsByClassName('noUi-base')[0], - connectHandles = connectSlider.getElementsByClassName('noUi-origin'); - - // Give the bar a class for styling and add it to the slider. - connectBar.className += 'connect'; - connectBase.appendChild(connectBar); - - connectSlider.noUiSlider.on('update', function( values, handle ) { - - // Pick left for the first handle, right for the second. - var side = handle ? 'right' : 'left', - // Get the handle position and trim the '%' sign. - offset = (connectHandles[handle].style.left).slice(0, - 1); - - // Right offset is 100% - left offset - if ( handle === 1 ) { - offset = 100 - offset; - } - - connectBar.style[side] = offset + '%'; - }); - } - - var demo4 = function() { - //** init the select - var select = document.getElementById('demo4_select'); - - // Append the option elements - for ( var i = -20; i <= 40; i++ ) { - var option = document.createElement("option"); - option.text = i; - option.value = i; - select.appendChild(option); - } - - //** init the slider - var html5Slider = document.getElementById('demo4'); - - noUiSlider.create(html5Slider, { - start: [ 10, 30 ], - connect: true, - range: { - 'min': -20, - 'max': 40 - } - }); - - //** init the input - var inputNumber = document.getElementById('demo4_input'); - - html5Slider.noUiSlider.on('update', function( values, handle ) { - - var value = values[handle]; - - if ( handle ) { - inputNumber.value = value; - } else { - select.value = Math.round(value); - } - }); - - select.addEventListener('change', function(){ - html5Slider.noUiSlider.set([this.value, null]); - }); - - inputNumber.addEventListener('change', function(){ - html5Slider.noUiSlider.set([null, this.value]); - }); - } - - var demo5 = function() { - var nonLinearSlider = document.getElementById('demo5'); - - noUiSlider.create(nonLinearSlider, { - connect: true, - behaviour: 'tap', - start: [ 500, 4000 ], - range: { - // Starting at 500, step the value by 500, - // until 4000 is reached. From there, step by 1000. - 'min': [ 0 ], - '10%': [ 500, 500 ], - '50%': [ 4000, 1000 ], - 'max': [ 10000 ] - } - }); - - // Write the CSS 'left' value to a span. - function leftValue ( handle ) { - return handle.parentElement.style.left; - } - - var lowerValue = document.getElementById('demo5_lower-value'), - upperValue = document.getElementById('demo5_upper-value'), - handles = nonLinearSlider.getElementsByClassName('noUi-handle'); - - // Display the slider value and how far the handle moved - // from the left edge of the slider. - nonLinearSlider.noUiSlider.on('update', function ( values, handle ) { - if ( !handle ) { - lowerValue.innerHTML = values[handle] + ', ' + leftValue(handles[handle]); - } else { - upperValue.innerHTML = values[handle] + ', ' + leftValue(handles[handle]); - } - }); - } - - var demo6 = function() { - // Store the locked state and slider values. - var lockedState = false, - lockedSlider = false, - lockedValues = [60, 80], - slider1 = document.getElementById('demo6_slider1'), - slider2 = document.getElementById('demo6_slider2'), - lockButton = document.getElementById('demo6_lockbutton'), - slider1Value = document.getElementById('demo6_slider1-span'), - slider2Value = document.getElementById('demo6_slider2-span'); - - // When the button is clicked, the locked - // state is inverted. - lockButton.addEventListener('click', function(){ - lockedState = !lockedState; - this.textContent = lockedState ? 'unlock' : 'lock'; - }); - - function crossUpdate ( value, slider ) { - - // If the sliders aren't interlocked, don't - // cross-update. - if ( !lockedState ) return; - - // Select whether to increase or decrease - // the other slider value. - var a = slider1 === slider ? 0 : 1, b = a ? 0 : 1; - - // Offset the slider value. - value -= lockedValues[b] - lockedValues[a]; - - // Set the value - slider.noUiSlider.set(value); - } - - noUiSlider.create(slider1, { - start: 60, - - // Disable animation on value-setting, - // so the sliders respond immediately. - animate: false, - range: { - min: 50, - max: 100 - } - }); - - noUiSlider.create(slider2, { - start: 80, - animate: false, - range: { - min: 50, - max: 100 - } - }); - - slider1.noUiSlider.on('update', function( values, handle ){ - slider1Value.innerHTML = values[handle]; - }); - - slider2.noUiSlider.on('update', function( values, handle ){ - slider2Value.innerHTML = values[handle]; - }); - - function setLockedValues ( ) { - lockedValues = [ - Number(slider1.noUiSlider.get()), - Number(slider2.noUiSlider.get()) - ]; - } - - slider1.noUiSlider.on('change', setLockedValues); - slider2.noUiSlider.on('change', setLockedValues); - - // The value will be send to the other slider, - // using a custom function as the serialization - // method. The function uses the global 'lockedState' - // variable to decide whether the other slider is updated. - slider1.noUiSlider.on('slide', function( values, handle ){ - crossUpdate(values[handle], slider2); - }); - - slider2.noUiSlider.on('slide', function( values, handle ){ - crossUpdate(values[handle], slider1); - }); - } - - var demo7 = function() { - var softSlider = document.getElementById('demo7'); - - noUiSlider.create(softSlider, { - start: 50, - range: { - min: 0, - max: 100 - }, - pips: { - mode: 'values', - values: [20, 80], - density: 4 - } - }); - - softSlider.noUiSlider.on('change', function ( values, handle ) { - if ( values[handle] < 20 ) { - softSlider.noUiSlider.set(20); - } else if ( values[handle] > 80 ) { - softSlider.noUiSlider.set(80); - } - }); - } - - var demo8 = function() { - var tooltipSlider = document.getElementById('demo8'); - - noUiSlider.create(tooltipSlider, { - start: [40, 50], - connect: true, - range: { - 'min': 30, - '30%': 40, - 'max': 50 - } - }); - - var tipHandles = tooltipSlider.getElementsByClassName('noUi-handle'), - tooltips = []; - - // Add divs to the slider handles. - for ( var i = 0; i < tipHandles.length; i++ ){ - tooltips[i] = document.createElement('div'); - tipHandles[i].appendChild(tooltips[i]); - } - - // Add a class for styling - tooltips[1].className += 'noUi-tooltip'; - // Add additional markup - tooltips[1].innerHTML = 'Value: '; - // Replace the tooltip reference with the span we just added - tooltips[1] = tooltips[1].getElementsByTagName('span')[0]; - - // Add a class for styling - tooltips[0].className += 'noUi-tooltip'; - // Add additional markup - tooltips[0].innerHTML = 'Value: '; - // Replace the tooltip reference with the span we just added - tooltips[0] = tooltips[0].getElementsByTagName('span')[0]; - - // When the slider changes, write the value to the tooltips. - tooltipSlider.noUiSlider.on('update', function( values, handle ){ - tooltips[handle].innerHTML = values[handle]; - }); - } - - return { - //main function to initiate the module - init: function() { - demo2(); - demo3(); - demo4(); - demo5(); - demo6(); - demo7(); - demo8(); - } - - }; - -}(); - -jQuery(document).ready(function() { - ComponentsNoUiSliders.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-nouisliders.min.js b/assets/pages/scripts/components-nouisliders.min.js deleted file mode 100755 index 475e02b..0000000 --- a/assets/pages/scripts/components-nouisliders.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsNoUiSliders=function(){var e=function(){var e=document.getElementById("demo2");noUiSlider.create(e,{start:[20],connect:!1,range:{min:0,max:100}})},n=function(){var e=document.getElementById("demo3");noUiSlider.create(e,{start:[20,80],connect:!1,range:{min:0,max:100}});var n=document.createElement("div"),t=e.getElementsByClassName("noUi-base")[0],i=e.getElementsByClassName("noUi-origin");n.className+="connect",t.appendChild(n),e.noUiSlider.on("update",function(e,t){var o=t?"right":"left",a=i[t].style.left.slice(0,-1);1===t&&(a=100-a),n.style[o]=a+"%"})},t=function(){for(var e=document.getElementById("demo4_select"),n=-20;40>=n;n++){var t=document.createElement("option");t.text=n,t.value=n,e.appendChild(t)}var i=document.getElementById("demo4");noUiSlider.create(i,{start:[10,30],connect:!0,range:{min:-20,max:40}});var o=document.getElementById("demo4_input");i.noUiSlider.on("update",function(n,t){var i=n[t];t?o.value=i:e.value=Math.round(i)}),e.addEventListener("change",function(){i.noUiSlider.set([this.value,null])}),o.addEventListener("change",function(){i.noUiSlider.set([null,this.value])})},i=function(){function e(e){return e.parentElement.style.left}var n=document.getElementById("demo5");noUiSlider.create(n,{connect:!0,behaviour:"tap",start:[500,4e3],range:{min:[0],"10%":[500,500],"50%":[4e3,1e3],max:[1e4]}});var t=document.getElementById("demo5_lower-value"),i=document.getElementById("demo5_upper-value"),o=n.getElementsByClassName("noUi-handle");n.noUiSlider.on("update",function(n,a){a?i.innerHTML=n[a]+", "+e(o[a]):t.innerHTML=n[a]+", "+e(o[a])})},o=function(){function e(e,n){if(t){var a=o===n?0:1,d=a?0:1;e-=i[d]-i[a],n.noUiSlider.set(e)}}function n(){i=[Number(o.noUiSlider.get()),Number(a.noUiSlider.get())]}var t=!1,i=[60,80],o=document.getElementById("demo6_slider1"),a=document.getElementById("demo6_slider2"),d=document.getElementById("demo6_lockbutton"),r=document.getElementById("demo6_slider1-span"),l=document.getElementById("demo6_slider2-span");d.addEventListener("click",function(){t=!t,this.textContent=t?"unlock":"lock"}),noUiSlider.create(o,{start:60,animate:!1,range:{min:50,max:100}}),noUiSlider.create(a,{start:80,animate:!1,range:{min:50,max:100}}),o.noUiSlider.on("update",function(e,n){r.innerHTML=e[n]}),a.noUiSlider.on("update",function(e,n){l.innerHTML=e[n]}),o.noUiSlider.on("change",n),a.noUiSlider.on("change",n),o.noUiSlider.on("slide",function(n,t){e(n[t],a)}),a.noUiSlider.on("slide",function(n,t){e(n[t],o)})},a=function(){var e=document.getElementById("demo7");noUiSlider.create(e,{start:50,range:{min:0,max:100},pips:{mode:"values",values:[20,80],density:4}}),e.noUiSlider.on("change",function(n,t){n[t]<20?e.noUiSlider.set(20):n[t]>80&&e.noUiSlider.set(80)})},d=function(){var e=document.getElementById("demo8");noUiSlider.create(e,{start:[40,50],connect:!0,range:{min:30,"30%":40,max:50}});for(var n=e.getElementsByClassName("noUi-handle"),t=[],i=0;iValue: ",t[1]=t[1].getElementsByTagName("span")[0],t[0].className+="noUi-tooltip",t[0].innerHTML="Value: ",t[0]=t[0].getElementsByTagName("span")[0],e.noUiSlider.on("update",function(e,n){t[n].innerHTML=e[n]})};return{init:function(){e(),n(),t(),i(),o(),a(),d()}}}();jQuery(document).ready(function(){ComponentsNoUiSliders.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-select2.js b/assets/pages/scripts/components-select2.js deleted file mode 100755 index 0a70230..0000000 --- a/assets/pages/scripts/components-select2.js +++ /dev/null @@ -1,127 +0,0 @@ -var ComponentsSelect2 = function() { - - var handleDemo = function() { - - // Set the "bootstrap" theme as the default theme for all Select2 - // widgets. - // - // @see https://github.com/select2/select2/issues/2927 - $.fn.select2.defaults.set("theme", "bootstrap"); - - var placeholder = "Select a State"; - - $(".select2, .select2-multiple").select2({ - placeholder: placeholder, - width: null - }); - - $(".select2-allow-clear").select2({ - allowClear: true, - placeholder: placeholder, - width: null - }); - - // @see https://select2.github.io/examples.html#data-ajax - function formatRepo(repo) { - if (repo.loading) return repo.text; - - var markup = "
" + - "
" + - "
" + - "
" + repo.full_name + "
"; - - if (repo.description) { - markup += "
" + repo.description + "
"; - } - - markup += "
" + - "
" + repo.forks_count + " Forks
" + - "
" + repo.stargazers_count + " Stars
" + - "
" + repo.watchers_count + " Watchers
" + - "
" + - "
"; - - return markup; - } - - function formatRepoSelection(repo) { - return repo.full_name || repo.text; - } - - $(".js-data-example-ajax").select2({ - width: "off", - ajax: { - url: "https://api.github.com/search/repositories", - dataType: 'json', - delay: 250, - data: function(params) { - return { - q: params.term, // search term - page: params.page - }; - }, - processResults: function(data, page) { - // parse the results into the format expected by Select2. - // since we are using custom formatting functions we do not need to - // alter the remote JSON data - return { - results: data.items - }; - }, - cache: true - }, - escapeMarkup: function(markup) { - return markup; - }, // let our custom formatter work - minimumInputLength: 1, - templateResult: formatRepo, - templateSelection: formatRepoSelection - }); - - $("button[data-select2-open]").click(function() { - $("#" + $(this).data("select2-open")).select2("open"); - }); - - $(":checkbox").on("click", function() { - $(this).parent().nextAll("select").prop("disabled", !this.checked); - }); - - // copy Bootstrap validation states to Select2 dropdown - // - // add .has-waring, .has-error, .has-succes to the Select2 dropdown - // (was #select2-drop in Select2 v3.x, in Select2 v4 can be selected via - // body > .select2-container) if _any_ of the opened Select2's parents - // has one of these forementioned classes (YUCK! ;-)) - $(".select2, .select2-multiple, .select2-allow-clear, .js-data-example-ajax").on("select2:open", function() { - if ($(this).parents("[class*='has-']").length) { - var classNames = $(this).parents("[class*='has-']")[0].className.split(/\s+/); - - for (var i = 0; i < classNames.length; ++i) { - if (classNames[i].match("has-")) { - $("body > .select2-container").addClass(classNames[i]); - } - } - } - }); - - $(".js-btn-set-scaling-classes").on("click", function() { - $("#select2-multiple-input-sm, #select2-single-input-sm").next(".select2-container--bootstrap").addClass("input-sm"); - $("#select2-multiple-input-lg, #select2-single-input-lg").next(".select2-container--bootstrap").addClass("input-lg"); - $(this).removeClass("btn-primary btn-outline").prop("disabled", true); - }); - } - - return { - //main function to initiate the module - init: function() { - handleDemo(); - } - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - ComponentsSelect2.init(); - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/components-select2.min.js b/assets/pages/scripts/components-select2.min.js deleted file mode 100755 index c0f7657..0000000 --- a/assets/pages/scripts/components-select2.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsSelect2=function(){var e=function(){function e(e){if(e.loading)return e.text;var t="
"+e.full_name+"
";return e.description&&(t+="
"+e.description+"
"),t+="
"+e.forks_count+" Forks
"+e.stargazers_count+" Stars
"+e.watchers_count+" Watchers
"}function t(e){return e.full_name||e.text}$.fn.select2.defaults.set("theme","bootstrap");var s="Select a State";$(".select2, .select2-multiple").select2({placeholder:s,width:null}),$(".select2-allow-clear").select2({allowClear:!0,placeholder:s,width:null}),$(".js-data-example-ajax").select2({width:"off",ajax:{url:"https://api.github.com/search/repositories",dataType:"json",delay:250,data:function(e){return{q:e.term,page:e.page}},processResults:function(e,t){return{results:e.items}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:1,templateResult:e,templateSelection:t}),$("button[data-select2-open]").click(function(){$("#"+$(this).data("select2-open")).select2("open")}),$(":checkbox").on("click",function(){$(this).parent().nextAll("select").prop("disabled",!this.checked)}),$(".select2, .select2-multiple, .select2-allow-clear, .js-data-example-ajax").on("select2:open",function(){if($(this).parents("[class*='has-']").length)for(var e=$(this).parents("[class*='has-']")[0].className.split(/\s+/),t=0;t .select2-container").addClass(e[t])}),$(".js-btn-set-scaling-classes").on("click",function(){$("#select2-multiple-input-sm, #select2-single-input-sm").next(".select2-container--bootstrap").addClass("input-sm"),$("#select2-multiple-input-lg, #select2-single-input-lg").next(".select2-container--bootstrap").addClass("input-lg"),$(this).removeClass("btn-primary btn-outline").prop("disabled",!0)})};return{init:function(){e()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){ComponentsSelect2.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/components-typeahead.js b/assets/pages/scripts/components-typeahead.js deleted file mode 100755 index 958e628..0000000 --- a/assets/pages/scripts/components-typeahead.js +++ /dev/null @@ -1,276 +0,0 @@ -var ComponentsTypeahead = function () { - - var handleTwitterTypeahead = function() { - - // Example #1 - // instantiate the bloodhound suggestion engine - var numbers = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - local: [ - { num: 'metronic' }, - { num: 'keenthemes' }, - { num: 'metronic theme' }, - { num: 'metronic template' }, - { num: 'keenthemes team' } - ] - }); - - // initialize the bloodhound suggestion engine - numbers.initialize(); - - // instantiate the typeahead UI - if (App.isRTL()) { - $('#typeahead_example_1').attr("dir", "rtl"); - } - $('#typeahead_example_1').typeahead(null, { - displayKey: 'num', - hint: (App.isRTL() ? false : true), - source: numbers.ttAdapter() - }); - - // Example #2 - var countries = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 10, - prefetch: { - url: '../demo/typeahead_countries.json', - filter: function(list) { - return $.map(list, function(country) { return { name: country }; }); - } - } - }); - - countries.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_2').attr("dir", "rtl"); - } - $('#typeahead_example_2').typeahead(null, { - name: 'typeahead_example_2', - displayKey: 'name', - hint: (App.isRTL() ? false : true), - source: countries.ttAdapter() - }); - - // Example #3 - var custom = new Bloodhound({ - datumTokenizer: function(d) { return d.tokens; }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: '../demo/typeahead_custom.php?query=%QUERY' - }); - - custom.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_3').attr("dir", "rtl"); - } - $('#typeahead_example_3').typeahead(null, { - name: 'datypeahead_example_3', - displayKey: 'value', - source: custom.ttAdapter(), - hint: (App.isRTL() ? false : true), - templates: { - suggestion: Handlebars.compile([ - '
', - '
', - '
', - '', - '
', - '
', - '
', - '

{{value}}

', - '

{{desc}}

', - '
', - '
', - ].join('')) - } - }); - - // Example #4 - - var nba = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - prefetch: '../demo/typeahead_nba.json' - }); - - var nhl = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - prefetch: '../demo/typeahead_nhl.json' - }); - - nba.initialize(); - nhl.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_4').attr("dir", "rtl"); - } - $('#typeahead_example_4').typeahead({ - hint: (App.isRTL() ? false : true), - highlight: true - }, - { - name: 'nba', - displayKey: 'team', - source: nba.ttAdapter(), - templates: { - header: '

NBA Teams

' - } - }, - { - name: 'nhl', - displayKey: 'team', - source: nhl.ttAdapter(), - templates: { - header: '

NHL Teams

' - } - }); - - } - - var handleTwitterTypeaheadModal = function() { - - // Example #1 - // instantiate the bloodhound suggestion engine - var numbers = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - local: [ - { num: 'metronic' }, - { num: 'keenthemes' }, - { num: 'metronic theme' }, - { num: 'metronic template' }, - { num: 'keenthemes team' } - ] - }); - - // initialize the bloodhound suggestion engine - numbers.initialize(); - - // instantiate the typeahead UI - if (App.isRTL()) { - $('#typeahead_example_modal_1').attr("dir", "rtl"); - } - $('#typeahead_example_modal_1').typeahead(null, { - displayKey: 'num', - hint: (App.isRTL() ? false : true), - source: numbers.ttAdapter() - }); - - // Example #2 - var countries = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.name); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 10, - prefetch: { - url: '../demo/typeahead_countries.json', - filter: function(list) { - return $.map(list, function(country) { return { name: country }; }); - } - } - }); - - countries.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_modal_2').attr("dir", "rtl"); - } - $('#typeahead_example_modal_2').typeahead(null, { - name: 'typeahead_example_modal_2', - displayKey: 'name', - hint: (App.isRTL() ? false : true), - source: countries.ttAdapter() - }); - - // Example #3 - var custom = new Bloodhound({ - datumTokenizer: function(d) { return d.tokens; }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - remote: '../demo/typeahead_custom.php?query=%QUERY' - }); - - custom.initialize(); - - if (App.isRTL()) { - $('#typeahead_example_modal_3').attr("dir", "rtl"); - } - $('#typeahead_example_modal_3').typeahead(null, { - name: 'datypeahead_example_modal_3', - displayKey: 'value', - hint: (App.isRTL() ? false : true), - source: custom.ttAdapter(), - templates: { - suggestion: Handlebars.compile([ - '
', - '
', - '
', - '', - '
', - '
', - '
', - '

{{value}}

', - '

{{desc}}

', - '
', - '
', - ].join('')) - } - }); - - // Example #4 - - var nba = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 3, - prefetch: '../demo/typeahead_nba.json' - }); - - var nhl = new Bloodhound({ - datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, - queryTokenizer: Bloodhound.tokenizers.whitespace, - limit: 3, - prefetch: '../demo/typeahead_nhl.json' - }); - - nba.initialize(); - nhl.initialize(); - - $('#typeahead_example_modal_4').typeahead({ - hint: (App.isRTL() ? false : true), - highlight: true - }, - { - name: 'nba', - displayKey: 'team', - source: nba.ttAdapter(), - templates: { - header: '

NBA Teams

' - } - }, - { - name: 'nhl', - displayKey: 'team', - source: nhl.ttAdapter(), - templates: { - header: '

NHL Teams

' - } - }); - - } - - return { - //main function to initiate the module - init: function () { - handleTwitterTypeahead(); - handleTwitterTypeaheadModal(); - } - }; - -}(); - -jQuery(document).ready(function() { - ComponentsTypeahead.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/components-typeahead.min.js b/assets/pages/scripts/components-typeahead.min.js deleted file mode 100755 index 31f9bd5..0000000 --- a/assets/pages/scripts/components-typeahead.min.js +++ /dev/null @@ -1 +0,0 @@ -var ComponentsTypeahead=function(){var e=function(){var e=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.num)},queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{num:"metronic"},{num:"keenthemes"},{num:"metronic theme"},{num:"metronic template"},{num:"keenthemes team"}]});e.initialize(),App.isRTL()&&$("#typeahead_example_1").attr("dir","rtl"),$("#typeahead_example_1").typeahead(null,{displayKey:"num",hint:!App.isRTL(),source:e.ttAdapter()});var t=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.name)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:10,prefetch:{url:"../demo/typeahead_countries.json",filter:function(e){return $.map(e,function(e){return{name:e}})}}});t.initialize(),App.isRTL()&&$("#typeahead_example_2").attr("dir","rtl"),$("#typeahead_example_2").typeahead(null,{name:"typeahead_example_2",displayKey:"name",hint:!App.isRTL(),source:t.ttAdapter()});var a=new Bloodhound({datumTokenizer:function(e){return e.tokens},queryTokenizer:Bloodhound.tokenizers.whitespace,remote:"../demo/typeahead_custom.php?query=%QUERY"});a.initialize(),App.isRTL()&&$("#typeahead_example_3").attr("dir","rtl"),$("#typeahead_example_3").typeahead(null,{name:"datypeahead_example_3",displayKey:"value",source:a.ttAdapter(),hint:!App.isRTL(),templates:{suggestion:Handlebars.compile(['
','
','
','',"
","
",'
','

{{value}}

',"

{{desc}}

","
","
"].join(""))}});var n=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"../demo/typeahead_nba.json"}),i=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"../demo/typeahead_nhl.json"});n.initialize(),i.initialize(),App.isRTL()&&$("#typeahead_example_4").attr("dir","rtl"),$("#typeahead_example_4").typeahead({hint:!App.isRTL(),highlight:!0},{name:"nba",displayKey:"team",source:n.ttAdapter(),templates:{header:"

NBA Teams

"}},{name:"nhl",displayKey:"team",source:i.ttAdapter(),templates:{header:"

NHL Teams

"}})},t=function(){var e=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.num)},queryTokenizer:Bloodhound.tokenizers.whitespace,local:[{num:"metronic"},{num:"keenthemes"},{num:"metronic theme"},{num:"metronic template"},{num:"keenthemes team"}]});e.initialize(),App.isRTL()&&$("#typeahead_example_modal_1").attr("dir","rtl"),$("#typeahead_example_modal_1").typeahead(null,{displayKey:"num",hint:!App.isRTL(),source:e.ttAdapter()});var t=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.name)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:10,prefetch:{url:"../demo/typeahead_countries.json",filter:function(e){return $.map(e,function(e){return{name:e}})}}});t.initialize(),App.isRTL()&&$("#typeahead_example_modal_2").attr("dir","rtl"),$("#typeahead_example_modal_2").typeahead(null,{name:"typeahead_example_modal_2",displayKey:"name",hint:!App.isRTL(),source:t.ttAdapter()});var a=new Bloodhound({datumTokenizer:function(e){return e.tokens},queryTokenizer:Bloodhound.tokenizers.whitespace,remote:"../demo/typeahead_custom.php?query=%QUERY"});a.initialize(),App.isRTL()&&$("#typeahead_example_modal_3").attr("dir","rtl"),$("#typeahead_example_modal_3").typeahead(null,{name:"datypeahead_example_modal_3",displayKey:"value",hint:!App.isRTL(),source:a.ttAdapter(),templates:{suggestion:Handlebars.compile(['
','
','
','',"
","
",'
','

{{value}}

',"

{{desc}}

","
","
"].join(""))}});var n=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:3,prefetch:"../demo/typeahead_nba.json"}),i=new Bloodhound({datumTokenizer:function(e){return Bloodhound.tokenizers.whitespace(e.team)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:3,prefetch:"../demo/typeahead_nhl.json"});n.initialize(),i.initialize(),$("#typeahead_example_modal_4").typeahead({hint:!App.isRTL(),highlight:!0},{name:"nba",displayKey:"team",source:n.ttAdapter(),templates:{header:"

NBA Teams

"}},{name:"nhl",displayKey:"team",source:i.ttAdapter(),templates:{header:"

NHL Teams

"}})};return{init:function(){e(),t()}}}();jQuery(document).ready(function(){ComponentsTypeahead.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/contact.js b/assets/pages/scripts/contact.js deleted file mode 100755 index bed7888..0000000 --- a/assets/pages/scripts/contact.js +++ /dev/null @@ -1,32 +0,0 @@ -var Contact = function () { - - return { - //main function to initiate the module - init: function () { - var map; - $(document).ready(function(){ - map = new GMaps({ - div: '#gmapbg', - lat: -13.004333, - lng: -38.494333 - }); - var marker = map.addMarker({ - lat: -13.004333, - lng: -38.494333, - title: 'Loop, Inc.', - infoWindow: { - content: "Metronic, Inc. 795 Park Ave, Suite 120
San Francisco, CA 94107" - } - }); - - marker.infoWindow.open(map, marker); - }); - } - }; - -}(); - -jQuery(document).ready(function() { - Contact.init(); -}); - diff --git a/assets/pages/scripts/contact.min.js b/assets/pages/scripts/contact.min.js deleted file mode 100755 index a331af2..0000000 --- a/assets/pages/scripts/contact.min.js +++ /dev/null @@ -1 +0,0 @@ -var Contact=function(){return{init:function(){var n;$(document).ready(function(){n=new GMaps({div:"#gmapbg",lat:-13.004333,lng:-38.494333});var t=n.addMarker({lat:-13.004333,lng:-38.494333,title:"Loop, Inc.",infoWindow:{content:"Metronic, Inc. 795 Park Ave, Suite 120
San Francisco, CA 94107"}});t.infoWindow.open(n,t)})}}}();jQuery(document).ready(function(){Contact.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/custom.js b/assets/pages/scripts/custom.js deleted file mode 100755 index e2d22ec..0000000 --- a/assets/pages/scripts/custom.js +++ /dev/null @@ -1,36 +0,0 @@ -/** -Custom module for you to write your own javascript functions -**/ -var Custom = function () { - - // private functions & variables - - var myFunc = function(text) { - alert(text); - } - - // public functions - return { - - //main function - init: function () { - //initialize here something. - }, - - //some helper function - doSomeStuff: function () { - myFunc(); - } - - }; - -}(); - -jQuery(document).ready(function() { - Custom.init(); -}); - -/*** -Usage -***/ -//Custom.doSomeStuff(); \ No newline at end of file diff --git a/assets/pages/scripts/custom.min.js b/assets/pages/scripts/custom.min.js deleted file mode 100755 index 5347c6d..0000000 --- a/assets/pages/scripts/custom.min.js +++ /dev/null @@ -1 +0,0 @@ -var Custom=function(){var n=function(n){alert(n)};return{init:function(){},doSomeStuff:function(){n()}}}();jQuery(document).ready(function(){Custom.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/dashboard.js b/assets/pages/scripts/dashboard.js deleted file mode 100755 index c2e3306..0000000 --- a/assets/pages/scripts/dashboard.js +++ /dev/null @@ -1,1395 +0,0 @@ -var Dashboard = function() { - - return { - - initJQVMAP: function() { - if (!jQuery().vectorMap) { - return; - } - - var showMap = function(name) { - jQuery('.vmaps').hide(); - jQuery('#vmap_' + name).show(); - } - - var setMap = function(name) { - var map = jQuery('#vmap_' + name); - - if (map.size() !== 1) { - return; - } - - var data = { - map: 'world_en', - backgroundColor: null, - borderColor: '#333333', - borderOpacity: 0.5, - borderWidth: 1, - color: '#c6c6c6', - enableZoom: true, - hoverColor: '#c9dfaf', - hoverOpacity: null, - values: sample_data, - normalizeFunction: 'linear', - scaleColors: ['#b6da93', '#909cae'], - selectedColor: '#c9dfaf', - selectedRegion: null, - showTooltip: true, - onLabelShow: function(event, label, code) { - - }, - onRegionOver: function(event, code) { - if (code == 'ca') { - event.preventDefault(); - } - }, - onRegionClick: function(element, code, region) { - var message = 'You clicked "' + region + '" which has the code: ' + code.toUpperCase(); - alert(message); - } - }; - - data.map = name + '_en'; - - map.width(map.parent().parent().width()); - map.show(); - map.vectorMap(data); - map.hide(); - } - - setMap("world"); - setMap("usa"); - setMap("europe"); - setMap("russia"); - setMap("germany"); - showMap("world"); - - jQuery('#regional_stat_world').click(function() { - showMap("world"); - }); - - jQuery('#regional_stat_usa').click(function() { - showMap("usa"); - }); - - jQuery('#regional_stat_europe').click(function() { - showMap("europe"); - }); - jQuery('#regional_stat_russia').click(function() { - showMap("russia"); - }); - jQuery('#regional_stat_germany').click(function() { - showMap("germany"); - }); - - $('#region_statistics_loading').hide(); - $('#region_statistics_content').show(); - - App.addResizeHandler(function() { - jQuery('.vmaps').each(function() { - var map = jQuery(this); - map.width(map.parent().width()); - }); - }); - }, - - initCalendar: function() { - if (!jQuery().fullCalendar) { - return; - } - - var date = new Date(); - var d = date.getDate(); - var m = date.getMonth(); - var y = date.getFullYear(); - - var h = {}; - - if ($('#calendar').width() <= 400) { - $('#calendar').addClass("mobile"); - h = { - left: 'title, prev, next', - center: '', - right: 'today,month,agendaWeek,agendaDay' - }; - } else { - $('#calendar').removeClass("mobile"); - if (App.isRTL()) { - h = { - right: 'title', - center: '', - left: 'prev,next,today,month,agendaWeek,agendaDay' - }; - } else { - h = { - left: 'title', - center: '', - right: 'prev,next,today,month,agendaWeek,agendaDay' - }; - } - } - - - - $('#calendar').fullCalendar('destroy'); // destroy the calendar - $('#calendar').fullCalendar({ //re-initialize the calendar - disableDragging: false, - header: h, - editable: true, - events: [{ - title: 'All Day', - start: new Date(y, m, 1), - backgroundColor: App.getBrandColor('yellow') - }, { - title: 'Long Event', - start: new Date(y, m, d - 5), - end: new Date(y, m, d - 2), - backgroundColor: App.getBrandColor('blue') - }, { - title: 'Repeating Event', - start: new Date(y, m, d - 3, 16, 0), - allDay: false, - backgroundColor: App.getBrandColor('red') - }, { - title: 'Repeating Event', - start: new Date(y, m, d + 6, 16, 0), - allDay: false, - backgroundColor: App.getBrandColor('green') - }, { - title: 'Meeting', - start: new Date(y, m, d + 9, 10, 30), - allDay: false - }, { - title: 'Lunch', - start: new Date(y, m, d, 14, 0), - end: new Date(y, m, d, 14, 0), - backgroundColor: App.getBrandColor('grey'), - allDay: false - }, { - title: 'Birthday', - start: new Date(y, m, d + 1, 19, 0), - end: new Date(y, m, d + 1, 22, 30), - backgroundColor: App.getBrandColor('purple'), - allDay: false - }, { - title: 'Click for Google', - start: new Date(y, m, 28), - end: new Date(y, m, 29), - backgroundColor: App.getBrandColor('yellow'), - url: 'http://google.com/' - }] - }); - }, - - initCharts: function() { - if (!jQuery.plot) { - return; - } - - function showChartTooltip(x, y, xValue, yValue) { - $('
' + yValue + '<\/div>').css({ - position: 'absolute', - display: 'none', - top: y - 40, - left: x - 40, - border: '0px solid #ccc', - padding: '2px 6px', - 'background-color': '#fff' - }).appendTo("body").fadeIn(200); - } - - var data = []; - var totalPoints = 250; - - // random data generator for plot charts - - function getRandomData() { - if (data.length > 0) data = data.slice(1); - // do a random walk - while (data.length < totalPoints) { - var prev = data.length > 0 ? data[data.length - 1] : 50; - var y = prev + Math.random() * 10 - 5; - if (y < 0) y = 0; - if (y > 100) y = 100; - data.push(y); - } - // zip the generated y values with the x values - var res = []; - for (var i = 0; i < data.length; ++i) res.push([i, data[i]]) - return res; - } - - function randValue() { - return (Math.floor(Math.random() * (1 + 50 - 20))) + 10; - } - - var visitors = [ - ['02/2013', 1500], - ['03/2013', 2500], - ['04/2013', 1700], - ['05/2013', 800], - ['06/2013', 1500], - ['07/2013', 2350], - ['08/2013', 1500], - ['09/2013', 1300], - ['10/2013', 4600] - ]; - - - if ($('#site_statistics').size() != 0) { - - $('#site_statistics_loading').hide(); - $('#site_statistics_content').show(); - - var plot_statistics = $.plot($("#site_statistics"), [{ - data: visitors, - lines: { - fill: 0.6, - lineWidth: 0 - }, - color: ['#f89f9f'] - }, { - data: visitors, - points: { - show: true, - fill: true, - radius: 5, - fillColor: "#f89f9f", - lineWidth: 3 - }, - color: '#fff', - shadowSize: 0 - }], - - { - xaxis: { - tickLength: 0, - tickDecimals: 0, - mode: "categories", - min: 0, - font: { - lineHeight: 14, - style: "normal", - variant: "small-caps", - color: "#6F7B8A" - } - }, - yaxis: { - ticks: 5, - tickDecimals: 0, - tickColor: "#eee", - font: { - lineHeight: 14, - style: "normal", - variant: "small-caps", - color: "#6F7B8A" - } - }, - grid: { - hoverable: true, - clickable: true, - tickColor: "#eee", - borderColor: "#eee", - borderWidth: 1 - } - }); - - var previousPoint = null; - $("#site_statistics").bind("plothover", function(event, pos, item) { - $("#x").text(pos.x.toFixed(2)); - $("#y").text(pos.y.toFixed(2)); - if (item) { - if (previousPoint != item.dataIndex) { - previousPoint = item.dataIndex; - - $("#tooltip").remove(); - var x = item.datapoint[0].toFixed(2), - y = item.datapoint[1].toFixed(2); - - showChartTooltip(item.pageX, item.pageY, item.datapoint[0], item.datapoint[1] + ' visits'); - } - } else { - $("#tooltip").remove(); - previousPoint = null; - } - }); - } - - - if ($('#site_activities').size() != 0) { - //site activities - var previousPoint2 = null; - $('#site_activities_loading').hide(); - $('#site_activities_content').show(); - - var data1 = [ - ['DEC', 300], - ['JAN', 600], - ['FEB', 1100], - ['MAR', 1200], - ['APR', 860], - ['MAY', 1200], - ['JUN', 1450], - ['JUL', 1800], - ['AUG', 1200], - ['SEP', 600] - ]; - - - var plot_statistics = $.plot($("#site_activities"), - - [{ - data: data1, - lines: { - fill: 0.2, - lineWidth: 0, - }, - color: ['#BAD9F5'] - }, { - data: data1, - points: { - show: true, - fill: true, - radius: 4, - fillColor: "#9ACAE6", - lineWidth: 2 - }, - color: '#9ACAE6', - shadowSize: 1 - }, { - data: data1, - lines: { - show: true, - fill: false, - lineWidth: 3 - }, - color: '#9ACAE6', - shadowSize: 0 - }], - - { - - xaxis: { - tickLength: 0, - tickDecimals: 0, - mode: "categories", - min: 0, - font: { - lineHeight: 18, - style: "normal", - variant: "small-caps", - color: "#6F7B8A" - } - }, - yaxis: { - ticks: 5, - tickDecimals: 0, - tickColor: "#eee", - font: { - lineHeight: 14, - style: "normal", - variant: "small-caps", - color: "#6F7B8A" - } - }, - grid: { - hoverable: true, - clickable: true, - tickColor: "#eee", - borderColor: "#eee", - borderWidth: 1 - } - }); - - $("#site_activities").bind("plothover", function(event, pos, item) { - $("#x").text(pos.x.toFixed(2)); - $("#y").text(pos.y.toFixed(2)); - if (item) { - if (previousPoint2 != item.dataIndex) { - previousPoint2 = item.dataIndex; - $("#tooltip").remove(); - var x = item.datapoint[0].toFixed(2), - y = item.datapoint[1].toFixed(2); - showChartTooltip(item.pageX, item.pageY, item.datapoint[0], item.datapoint[1] + 'M$'); - } - } - }); - - $('#site_activities').bind("mouseleave", function() { - $("#tooltip").remove(); - }); - } - }, - - initEasyPieCharts: function() { - if (!jQuery().easyPieChart) { - return; - } - - $('.easy-pie-chart .number.transactions').easyPieChart({ - animate: 1000, - size: 75, - lineWidth: 3, - barColor: App.getBrandColor('yellow') - }); - - $('.easy-pie-chart .number.visits').easyPieChart({ - animate: 1000, - size: 75, - lineWidth: 3, - barColor: App.getBrandColor('green') - }); - - $('.easy-pie-chart .number.bounce').easyPieChart({ - animate: 1000, - size: 75, - lineWidth: 3, - barColor: App.getBrandColor('red') - }); - - $('.easy-pie-chart-reload').click(function() { - $('.easy-pie-chart .number').each(function() { - var newValue = Math.floor(100 * Math.random()); - $(this).data('easyPieChart').update(newValue); - $('span', this).text(newValue); - }); - }); - }, - - initSparklineCharts: function() { - if (!jQuery().sparkline) { - return; - } - $("#sparkline_bar").sparkline([8, 9, 10, 11, 10, 10, 12, 10, 10, 11, 9, 12, 11, 10, 9, 11, 13, 13, 12], { - type: 'bar', - width: '100', - barWidth: 5, - height: '55', - barColor: '#35aa47', - negBarColor: '#e02222' - }); - - $("#sparkline_bar2").sparkline([9, 11, 12, 13, 12, 13, 10, 14, 13, 11, 11, 12, 11, 11, 10, 12, 11, 10], { - type: 'bar', - width: '100', - barWidth: 5, - height: '55', - barColor: '#ffb848', - negBarColor: '#e02222' - }); - - $("#sparkline_bar5").sparkline([8, 9, 10, 11, 10, 10, 12, 10, 10, 11, 9, 12, 11, 10, 9, 11, 13, 13, 12], { - type: 'bar', - width: '100', - barWidth: 5, - height: '55', - barColor: '#35aa47', - negBarColor: '#e02222' - }); - - $("#sparkline_bar6").sparkline([9, 11, 12, 13, 12, 13, 10, 14, 13, 11, 11, 12, 11, 11, 10, 12, 11, 10], { - type: 'bar', - width: '100', - barWidth: 5, - height: '55', - barColor: '#ffb848', - negBarColor: '#e02222' - }); - - $("#sparkline_line").sparkline([9, 10, 9, 10, 10, 11, 12, 10, 10, 11, 11, 12, 11, 10, 12, 11, 10, 12], { - type: 'line', - width: '100', - height: '55', - lineColor: '#ffb848' - }); - }, - - initMorisCharts: function() { - if (Morris.EventEmitter && $('#sales_statistics').size() > 0) { - // Use Morris.Area instead of Morris.Line - dashboardMainChart = Morris.Area({ - element: 'sales_statistics', - padding: 0, - behaveLikeLine: false, - gridEnabled: false, - gridLineColor: false, - axes: false, - fillOpacity: 1, - data: [{ - period: '2011 Q1', - sales: 1400, - profit: 400 - }, { - period: '2011 Q2', - sales: 1100, - profit: 600 - }, { - period: '2011 Q3', - sales: 1600, - profit: 500 - }, { - period: '2011 Q4', - sales: 1200, - profit: 400 - }, { - period: '2012 Q1', - sales: 1550, - profit: 800 - }], - lineColors: ['#399a8c', '#92e9dc'], - xkey: 'period', - ykeys: ['sales', 'profit'], - labels: ['Sales', 'Profit'], - pointSize: 0, - lineWidth: 0, - hideHover: 'auto', - resize: true - }); - - } - }, - - initChat: function() { - var cont = $('#chats'); - var list = $('.chats', cont); - var form = $('.chat-form', cont); - var input = $('input', form); - var btn = $('.btn', form); - - var handleClick = function(e) { - e.preventDefault(); - - var text = input.val(); - if (text.length == 0) { - return; - } - - var time = new Date(); - var time_str = (time.getHours() + ':' + time.getMinutes()); - var tpl = ''; - tpl += '
  • '; - tpl += ''; - tpl += '
    '; - tpl += ''; - tpl += 'Bob Nilson '; - tpl += 'at ' + time_str + ''; - tpl += ''; - tpl += text; - tpl += ''; - tpl += '
    '; - tpl += '
  • '; - - var msg = list.append(tpl); - input.val(""); - - var getLastPostPos = function() { - var height = 0; - cont.find("li.out, li.in").each(function() { - height = height + $(this).outerHeight(); - }); - - return height; - } - - cont.find('.scroller').slimScroll({ - scrollTo: getLastPostPos() - }); - } - - $('body').on('click', '.message .name', function(e) { - e.preventDefault(); // prevent click event - - var name = $(this).text(); // get clicked user's full name - input.val('@' + name + ':'); // set it into the input field - App.scrollTo(input); // scroll to input if needed - }); - - btn.click(handleClick); - - input.keypress(function(e) { - if (e.which == 13) { - handleClick(e); - return false; //<---- Add this line - } - }); - }, - - initDashboardDaterange: function() { - if (!jQuery().daterangepicker) { - return; - } - - $('#dashboard-report-range').daterangepicker({ - "ranges": { - 'Today': [moment(), moment()], - 'Yesterday': [moment().subtract('days', 1), moment().subtract('days', 1)], - 'Last 7 Days': [moment().subtract('days', 6), moment()], - 'Last 30 Days': [moment().subtract('days', 29), moment()], - 'This Month': [moment().startOf('month'), moment().endOf('month')], - 'Last Month': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')] - }, - "locale": { - "format": "MM/DD/YYYY", - "separator": " - ", - "applyLabel": "Apply", - "cancelLabel": "Cancel", - "fromLabel": "From", - "toLabel": "To", - "customRangeLabel": "Custom", - "daysOfWeek": [ - "Su", - "Mo", - "Tu", - "We", - "Th", - "Fr", - "Sa" - ], - "monthNames": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ], - "firstDay": 1 - }, - //"startDate": "11/08/2015", - //"endDate": "11/14/2015", - opens: (App.isRTL() ? 'right' : 'left'), - }, function(start, end, label) { - $('#dashboard-report-range span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); - }); - - $('#dashboard-report-range span').html(moment().subtract('days', 29).format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); - $('#dashboard-report-range').show(); - }, - - initAmChart1: function() { - if (typeof(AmCharts) === 'undefined' || $('#dashboard_amchart_1').size() === 0) { - return; - } - - var chartData = [{ - "date": "2012-01-05", - "distance": 480, - "townName": "Miami", - "townName2": "Miami", - "townSize": 10, - "latitude": 25.83, - "duration": 501 - }, { - "date": "2012-01-06", - "distance": 386, - "townName": "Tallahassee", - "townSize": 7, - "latitude": 30.46, - "duration": 443 - }, { - "date": "2012-01-07", - "distance": 348, - "townName": "New Orleans", - "townSize": 10, - "latitude": 29.94, - "duration": 405 - }, { - "date": "2012-01-08", - "distance": 238, - "townName": "Houston", - "townName2": "Houston", - "townSize": 16, - "latitude": 29.76, - "duration": 309 - }, { - "date": "2012-01-09", - "distance": 218, - "townName": "Dalas", - "townSize": 17, - "latitude": 32.8, - "duration": 287 - }, { - "date": "2012-01-10", - "distance": 349, - "townName": "Oklahoma City", - "townSize": 11, - "latitude": 35.49, - "duration": 485 - }, { - "date": "2012-01-11", - "distance": 603, - "townName": "Kansas City", - "townSize": 10, - "latitude": 39.1, - "duration": 890 - }, { - "date": "2012-01-12", - "distance": 534, - "townName": "Denver", - "townName2": "Denver", - "townSize": 18, - "latitude": 39.74, - "duration": 810 - }, { - "date": "2012-01-13", - "townName": "Salt Lake City", - "townSize": 12, - "distance": 425, - "duration": 670, - "latitude": 40.75, - "alpha": 0.4 - }, { - "date": "2012-01-14", - "latitude": 36.1, - "duration": 470, - "townName": "Las Vegas", - "townName2": "Las Vegas", - "bulletClass": "lastBullet" - }, { - "date": "2012-01-15" - }]; - var chart = AmCharts.makeChart("dashboard_amchart_1", { - type: "serial", - fontSize: 12, - fontFamily: "Open Sans", - dataDateFormat: "YYYY-MM-DD", - dataProvider: chartData, - - addClassNames: true, - startDuration: 1, - color: "#6c7b88", - marginLeft: 0, - - categoryField: "date", - categoryAxis: { - parseDates: true, - minPeriod: "DD", - autoGridCount: false, - gridCount: 50, - gridAlpha: 0.1, - gridColor: "#FFFFFF", - axisColor: "#555555", - dateFormats: [{ - period: 'DD', - format: 'DD' - }, { - period: 'WW', - format: 'MMM DD' - }, { - period: 'MM', - format: 'MMM' - }, { - period: 'YYYY', - format: 'YYYY' - }] - }, - - valueAxes: [{ - id: "a1", - title: "distance", - gridAlpha: 0, - axisAlpha: 0 - }, { - id: "a2", - position: "right", - gridAlpha: 0, - axisAlpha: 0, - labelsEnabled: false - }, { - id: "a3", - title: "duration", - position: "right", - gridAlpha: 0, - axisAlpha: 0, - inside: true, - duration: "mm", - durationUnits: { - DD: "d. ", - hh: "h ", - mm: "min", - ss: "" - } - }], - graphs: [{ - id: "g1", - valueField: "distance", - title: "distance", - type: "column", - fillAlphas: 0.7, - valueAxis: "a1", - balloonText: "[[value]] miles", - legendValueText: "[[value]] mi", - legendPeriodValueText: "total: [[value.sum]] mi", - lineColor: "#08a3cc", - alphaField: "alpha", - }, { - id: "g2", - valueField: "latitude", - classNameField: "bulletClass", - title: "latitude/city", - type: "line", - valueAxis: "a2", - lineColor: "#786c56", - lineThickness: 1, - legendValueText: "[[description]]/[[value]]", - descriptionField: "townName", - bullet: "round", - bulletSizeField: "townSize", - bulletBorderColor: "#02617a", - bulletBorderAlpha: 1, - bulletBorderThickness: 2, - bulletColor: "#89c4f4", - labelText: "[[townName2]]", - labelPosition: "right", - balloonText: "latitude:[[value]]", - showBalloon: true, - animationPlayed: true, - }, { - id: "g3", - title: "duration", - valueField: "duration", - type: "line", - valueAxis: "a3", - lineAlpha: 0.8, - lineColor: "#e26a6a", - balloonText: "[[value]]", - lineThickness: 1, - legendValueText: "[[value]]", - bullet: "square", - bulletBorderColor: "#e26a6a", - bulletBorderThickness: 1, - bulletBorderAlpha: 0.8, - dashLengthField: "dashLength", - animationPlayed: true - }], - - chartCursor: { - zoomable: false, - categoryBalloonDateFormat: "DD", - cursorAlpha: 0, - categoryBalloonColor: "#e26a6a", - categoryBalloonAlpha: 0.8, - valueBalloonsEnabled: false - }, - legend: { - bulletType: "round", - equalWidths: false, - valueWidth: 120, - useGraphSettings: true, - color: "#6c7b88" - } - }); - }, - - initAmChart2: function() { - if (typeof(AmCharts) === 'undefined' || $('#dashboard_amchart_2').size() === 0) { - return; - } - - // svg path for target icon - var targetSVG = "M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z"; - // svg path for plane icon - var planeSVG = "M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z"; - - var map = AmCharts.makeChart("dashboard_amchart_2", { - type: "map", - "theme": "light", - pathToImages: "../assets/global/plugins/amcharts/ammap/images/", - - dataProvider: { - map: "worldLow", - linkToObject: "london", - images: [{ - id: "london", - color: "#009dc7", - svgPath: targetSVG, - title: "London", - latitude: 51.5002, - longitude: -0.1262, - scale: 1.5, - zoomLevel: 2.74, - zoomLongitude: -20.1341, - zoomLatitude: 49.1712, - - lines: [{ - latitudes: [51.5002, 50.4422], - longitudes: [-0.1262, 30.5367] - }, { - latitudes: [51.5002, 46.9480], - longitudes: [-0.1262, 7.4481] - }, { - latitudes: [51.5002, 59.3328], - longitudes: [-0.1262, 18.0645] - }, { - latitudes: [51.5002, 40.4167], - longitudes: [-0.1262, -3.7033] - }, { - latitudes: [51.5002, 46.0514], - longitudes: [-0.1262, 14.5060] - }, { - latitudes: [51.5002, 48.2116], - longitudes: [-0.1262, 17.1547] - }, { - latitudes: [51.5002, 44.8048], - longitudes: [-0.1262, 20.4781] - }, { - latitudes: [51.5002, 55.7558], - longitudes: [-0.1262, 37.6176] - }, { - latitudes: [51.5002, 38.7072], - longitudes: [-0.1262, -9.1355] - }, { - latitudes: [51.5002, 54.6896], - longitudes: [-0.1262, 25.2799] - }, { - latitudes: [51.5002, 64.1353], - longitudes: [-0.1262, -21.8952] - }, { - latitudes: [51.5002, 40.4300], - longitudes: [-0.1262, -74.0000] - }], - - images: [{ - label: "Flights from London", - svgPath: planeSVG, - left: 100, - top: 45, - labelShiftY: 5, - color: "#d93d5e", - labelColor: "#d93d5e", - labelRollOverColor: "#d93d5e", - labelFontSize: 20 - }, { - label: "show flights from Vilnius", - left: 106, - top: 70, - labelColor: "#6c7b88", - labelRollOverColor: "#d93d5e", - labelFontSize: 11, - linkToObject: "vilnius" - }] - }, - - { - id: "vilnius", - color: "#009dc7", - svgPath: targetSVG, - title: "Vilnius", - latitude: 54.6896, - longitude: 25.2799, - scale: 1.5, - zoomLevel: 4.92, - zoomLongitude: 15.4492, - zoomLatitude: 50.2631, - - lines: [{ - latitudes: [54.6896, 50.8371], - longitudes: [25.2799, 4.3676] - }, { - latitudes: [54.6896, 59.9138], - longitudes: [25.2799, 10.7387] - }, { - latitudes: [54.6896, 40.4167], - longitudes: [25.2799, -3.7033] - }, { - latitudes: [54.6896, 50.0878], - longitudes: [25.2799, 14.4205] - }, { - latitudes: [54.6896, 48.2116], - longitudes: [25.2799, 17.1547] - }, { - latitudes: [54.6896, 44.8048], - longitudes: [25.2799, 20.4781] - }, { - latitudes: [54.6896, 55.7558], - longitudes: [25.2799, 37.6176] - }, { - latitudes: [54.6896, 37.9792], - longitudes: [25.2799, 23.7166] - }, { - latitudes: [54.6896, 54.6896], - longitudes: [25.2799, 25.2799] - }, { - latitudes: [54.6896, 51.5002], - longitudes: [25.2799, -0.1262] - }, { - latitudes: [54.6896, 53.3441], - longitudes: [25.2799, -6.2675] - }], - - images: [{ - label: "Flights from Vilnius", - svgPath: planeSVG, - left: 100, - top: 45, - labelShiftY: 5, - color: "#d93d5e", - labelColor: "#d93d5e", - labelRollOverColor: "#d93d5e", - labelFontSize: 20 - }, { - label: "show flights from London", - left: 106, - top: 70, - labelColor: "#009dc7", - labelRollOverColor: "#d93d5e", - labelFontSize: 11, - linkToObject: "london" - }] - }, { - svgPath: targetSVG, - title: "Brussels", - latitude: 50.8371, - longitude: 4.3676 - }, { - svgPath: targetSVG, - title: "Prague", - latitude: 50.0878, - longitude: 14.4205 - }, { - svgPath: targetSVG, - title: "Athens", - latitude: 37.9792, - longitude: 23.7166 - }, { - svgPath: targetSVG, - title: "Reykjavik", - latitude: 64.1353, - longitude: -21.8952 - }, { - svgPath: targetSVG, - title: "Dublin", - latitude: 53.3441, - longitude: -6.2675 - }, { - svgPath: targetSVG, - title: "Oslo", - latitude: 59.9138, - longitude: 10.7387 - }, { - svgPath: targetSVG, - title: "Lisbon", - latitude: 38.7072, - longitude: -9.1355 - }, { - svgPath: targetSVG, - title: "Moscow", - latitude: 55.7558, - longitude: 37.6176 - }, { - svgPath: targetSVG, - title: "Belgrade", - latitude: 44.8048, - longitude: 20.4781 - }, { - svgPath: targetSVG, - title: "Bratislava", - latitude: 48.2116, - longitude: 17.1547 - }, { - svgPath: targetSVG, - title: "Ljubljana", - latitude: 46.0514, - longitude: 14.5060 - }, { - svgPath: targetSVG, - title: "Madrid", - latitude: 40.4167, - longitude: -3.7033 - }, { - svgPath: targetSVG, - title: "Stockholm", - latitude: 59.3328, - longitude: 18.0645 - }, { - svgPath: targetSVG, - title: "Bern", - latitude: 46.9480, - longitude: 7.4481 - }, { - svgPath: targetSVG, - title: "Kiev", - latitude: 50.4422, - longitude: 30.5367 - }, { - svgPath: targetSVG, - title: "Paris", - latitude: 48.8567, - longitude: 2.3510 - }, { - svgPath: targetSVG, - title: "New York", - latitude: 40.43, - longitude: -74 - } - ] - }, - - zoomControl: { - buttonFillColor: "#dddddd" - }, - - areasSettings: { - unlistedAreasColor: "#15A892" - }, - - imagesSettings: { - color: "#d93d5e", - rollOverColor: "#d93d5e", - selectedColor: "#009dc7" - }, - - linesSettings: { - color: "#d93d5e", - alpha: 0.4 - }, - - - backgroundZoomsToTop: true, - linesAboveImages: true, - - "export": { - "enabled": true, - "libs": { - "path": "http://www.amcharts.com/lib/3/plugins/export/libs/" - } - } - }); - }, - - initAmChart3: function() { - if (typeof(AmCharts) === 'undefined' || $('#dashboard_amchart_3').size() === 0) { - return; - } - - var chart = AmCharts.makeChart("dashboard_amchart_3", { - "type": "serial", - "addClassNames": true, - "theme": "light", - "path": "../assets/global/plugins/amcharts/ammap/images/", - "autoMargins": false, - "marginLeft": 30, - "marginRight": 8, - "marginTop": 10, - "marginBottom": 26, - "balloon": { - "adjustBorderColor": false, - "horizontalPadding": 10, - "verticalPadding": 8, - "color": "#ffffff" - }, - - "dataProvider": [{ - "year": 2009, - "income": 23.5, - "expenses": 21.1 - }, { - "year": 2010, - "income": 26.2, - "expenses": 30.5 - }, { - "year": 2011, - "income": 30.1, - "expenses": 34.9 - }, { - "year": 2012, - "income": 29.5, - "expenses": 31.1 - }, { - "year": 2013, - "income": 30.6, - "expenses": 28.2, - }, { - "year": 2014, - "income": 34.1, - "expenses": 32.9, - "dashLengthColumn": 5, - "alpha": 0.2, - "additional": "(projection)" - }], - "valueAxes": [{ - "axisAlpha": 0, - "position": "left" - }], - "startDuration": 1, - "graphs": [{ - "alphaField": "alpha", - "balloonText": "[[title]] in [[category]]:
    [[value]] [[additional]]
    ", - "fillAlphas": 1, - "title": "Income", - "type": "column", - "valueField": "income", - "dashLengthField": "dashLengthColumn" - }, { - "id": "graph2", - "balloonText": "[[title]] in [[category]]:
    [[value]] [[additional]]
    ", - "bullet": "round", - "lineThickness": 3, - "bulletSize": 7, - "bulletBorderAlpha": 1, - "bulletColor": "#FFFFFF", - "useLineColorForBulletBorder": true, - "bulletBorderThickness": 3, - "fillAlphas": 0, - "lineAlpha": 1, - "title": "Expenses", - "valueField": "expenses" - }], - "categoryField": "year", - "categoryAxis": { - "gridPosition": "start", - "axisAlpha": 0, - "tickLength": 0 - }, - "export": { - "enabled": true - } - }); - }, - - initAmChart4: function() { - if (typeof(AmCharts) === 'undefined' || $('#dashboard_amchart_4').size() === 0) { - return; - } - - var chart = AmCharts.makeChart("dashboard_amchart_4", { - "type": "pie", - "theme": "light", - "path": "../assets/global/plugins/amcharts/ammap/images/", - "dataProvider": [{ - "country": "Lithuania", - "value": 260 - }, { - "country": "Ireland", - "value": 201 - }, { - "country": "Germany", - "value": 65 - }, { - "country": "Australia", - "value": 39 - }, { - "country": "UK", - "value": 19 - }, { - "country": "Latvia", - "value": 10 - }], - "valueField": "value", - "titleField": "country", - "outlineAlpha": 0.4, - "depth3D": 15, - "balloonText": "[[title]]
    [[value]] ([[percents]]%)", - "angle": 30, - "export": { - "enabled": true - } - }); - jQuery('.chart-input').off().on('input change', function() { - var property = jQuery(this).data('property'); - var target = chart; - var value = Number(this.value); - chart.startDuration = 0; - - if (property == 'innerRadius') { - value += "%"; - } - - target[property] = value; - chart.validateNow(); - }); - }, - - initWorldMapStats: function() { - if ($('#mapplic').size() === 0) { - return; - } - - $('#mapplic').mapplic({ - source: '../assets/global/plugins/mapplic/world.json', - height: 265, - animate: false, - sidebar: false, - minimap: false, - locations: true, - deeplinking: true, - fullscreen: false, - hovertip: true, - zoombuttons: false, - clearbutton: false, - developer: false, - maxscale: 2, - skin: 'mapplic-dark', - zoom: true - }); - - $("#widget_sparkline_bar").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#4db3a4', - negBarColor: '#e02222' - }); - - $("#widget_sparkline_bar2").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#f36a5a', - negBarColor: '#e02222' - }); - - $("#widget_sparkline_bar3").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#5b9bd1', - negBarColor: '#e02222' - }); - - $("#widget_sparkline_bar4").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#9a7caf', - negBarColor: '#e02222' - }); - }, - - init: function() { - - this.initJQVMAP(); - this.initCalendar(); - this.initCharts(); - this.initEasyPieCharts(); - this.initSparklineCharts(); - this.initChat(); - this.initDashboardDaterange(); - this.initMorisCharts(); - - this.initAmChart1(); - this.initAmChart2(); - this.initAmChart3(); - this.initAmChart4(); - - this.initWorldMapStats(); - } - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - Dashboard.init(); // init metronic core componets - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/dashboard.min.js b/assets/pages/scripts/dashboard.min.js deleted file mode 100755 index d15ba38..0000000 --- a/assets/pages/scripts/dashboard.min.js +++ /dev/null @@ -1 +0,0 @@ -var Dashboard=function(){return{initJQVMAP:function(){if(jQuery().vectorMap){var e=function(e){jQuery(".vmaps").hide(),jQuery("#vmap_"+e).show()},t=function(e){var t=jQuery("#vmap_"+e);if(1===t.size()){var a={map:"world_en",backgroundColor:null,borderColor:"#333333",borderOpacity:.5,borderWidth:1,color:"#c6c6c6",enableZoom:!0,hoverColor:"#c9dfaf",hoverOpacity:null,values:sample_data,normalizeFunction:"linear",scaleColors:["#b6da93","#909cae"],selectedColor:"#c9dfaf",selectedRegion:null,showTooltip:!0,onLabelShow:function(e,t,a){},onRegionOver:function(e,t){"ca"==t&&e.preventDefault()},onRegionClick:function(e,t,a){var i='You clicked "'+a+'" which has the code: '+t.toUpperCase();alert(i)}};a.map=e+"_en",t.width(t.parent().parent().width()),t.show(),t.vectorMap(a),t.hide()}};t("world"),t("usa"),t("europe"),t("russia"),t("germany"),e("world"),jQuery("#regional_stat_world").click(function(){e("world")}),jQuery("#regional_stat_usa").click(function(){e("usa")}),jQuery("#regional_stat_europe").click(function(){e("europe")}),jQuery("#regional_stat_russia").click(function(){e("russia")}),jQuery("#regional_stat_germany").click(function(){e("germany")}),$("#region_statistics_loading").hide(),$("#region_statistics_content").show(),App.addResizeHandler(function(){jQuery(".vmaps").each(function(){var e=jQuery(this);e.width(e.parent().width())})})}},initCalendar:function(){if(jQuery().fullCalendar){var e=new Date,t=e.getDate(),a=e.getMonth(),i=e.getFullYear(),l={};$("#calendar").width()<=400?($("#calendar").addClass("mobile"),l={left:"title, prev, next",center:"",right:"today,month,agendaWeek,agendaDay"}):($("#calendar").removeClass("mobile"),l=App.isRTL()?{right:"title",center:"",left:"prev,next,today,month,agendaWeek,agendaDay"}:{left:"title",center:"",right:"prev,next,today,month,agendaWeek,agendaDay"}),$("#calendar").fullCalendar("destroy"),$("#calendar").fullCalendar({disableDragging:!1,header:l,editable:!0,events:[{title:"All Day",start:new Date(i,a,1),backgroundColor:App.getBrandColor("yellow")},{title:"Long Event",start:new Date(i,a,t-5),end:new Date(i,a,t-2),backgroundColor:App.getBrandColor("blue")},{title:"Repeating Event",start:new Date(i,a,t-3,16,0),allDay:!1,backgroundColor:App.getBrandColor("red")},{title:"Repeating Event",start:new Date(i,a,t+6,16,0),allDay:!1,backgroundColor:App.getBrandColor("green")},{title:"Meeting",start:new Date(i,a,t+9,10,30),allDay:!1},{title:"Lunch",start:new Date(i,a,t,14,0),end:new Date(i,a,t,14,0),backgroundColor:App.getBrandColor("grey"),allDay:!1},{title:"Birthday",start:new Date(i,a,t+1,19,0),end:new Date(i,a,t+1,22,30),backgroundColor:App.getBrandColor("purple"),allDay:!1},{title:"Click for Google",start:new Date(i,a,28),end:new Date(i,a,29),backgroundColor:App.getBrandColor("yellow"),url:"http://google.com/"}]})}},initCharts:function(){function e(e,t,a,i){$('
    '+i+"
    ").css({position:"absolute",display:"none",top:t-40,left:e-40,border:"0px solid #ccc",padding:"2px 6px","background-color":"#fff"}).appendTo("body").fadeIn(200)}if(jQuery.plot){var t=[["02/2013",1500],["03/2013",2500],["04/2013",1700],["05/2013",800],["06/2013",1500],["07/2013",2350],["08/2013",1500],["09/2013",1300],["10/2013",4600]];if(0!=$("#site_statistics").size()){$("#site_statistics_loading").hide(),$("#site_statistics_content").show();var a=($.plot($("#site_statistics"),[{data:t,lines:{fill:.6,lineWidth:0},color:["#f89f9f"]},{data:t,points:{show:!0,fill:!0,radius:5,fillColor:"#f89f9f",lineWidth:3},color:"#fff",shadowSize:0}],{xaxis:{tickLength:0,tickDecimals:0,mode:"categories",min:0,font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},yaxis:{ticks:5,tickDecimals:0,tickColor:"#eee",font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},grid:{hoverable:!0,clickable:!0,tickColor:"#eee",borderColor:"#eee",borderWidth:1}}),null);$("#site_statistics").bind("plothover",function(t,i,l){if($("#x").text(i.x.toFixed(2)),$("#y").text(i.y.toFixed(2)),l){if(a!=l.dataIndex){a=l.dataIndex,$("#tooltip").remove();l.datapoint[0].toFixed(2),l.datapoint[1].toFixed(2);e(l.pageX,l.pageY,l.datapoint[0],l.datapoint[1]+" visits")}}else $("#tooltip").remove(),a=null})}if(0!=$("#site_activities").size()){var i=null;$("#site_activities_loading").hide(),$("#site_activities_content").show();var l=[["DEC",300],["JAN",600],["FEB",1100],["MAR",1200],["APR",860],["MAY",1200],["JUN",1450],["JUL",1800],["AUG",1200],["SEP",600]];$.plot($("#site_activities"),[{data:l,lines:{fill:.2,lineWidth:0},color:["#BAD9F5"]},{data:l,points:{show:!0,fill:!0,radius:4,fillColor:"#9ACAE6",lineWidth:2},color:"#9ACAE6",shadowSize:1},{data:l,lines:{show:!0,fill:!1,lineWidth:3},color:"#9ACAE6",shadowSize:0}],{xaxis:{tickLength:0,tickDecimals:0,mode:"categories",min:0,font:{lineHeight:18,style:"normal",variant:"small-caps",color:"#6F7B8A"}},yaxis:{ticks:5,tickDecimals:0,tickColor:"#eee",font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},grid:{hoverable:!0,clickable:!0,tickColor:"#eee",borderColor:"#eee",borderWidth:1}});$("#site_activities").bind("plothover",function(t,a,l){if($("#x").text(a.x.toFixed(2)),$("#y").text(a.y.toFixed(2)),l&&i!=l.dataIndex){i=l.dataIndex,$("#tooltip").remove();l.datapoint[0].toFixed(2),l.datapoint[1].toFixed(2);e(l.pageX,l.pageY,l.datapoint[0],l.datapoint[1]+"M$")}}),$("#site_activities").bind("mouseleave",function(){$("#tooltip").remove()})}}},initEasyPieCharts:function(){jQuery().easyPieChart&&($(".easy-pie-chart .number.transactions").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:App.getBrandColor("yellow")}),$(".easy-pie-chart .number.visits").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:App.getBrandColor("green")}),$(".easy-pie-chart .number.bounce").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:App.getBrandColor("red")}),$(".easy-pie-chart-reload").click(function(){$(".easy-pie-chart .number").each(function(){var e=Math.floor(100*Math.random());$(this).data("easyPieChart").update(e),$("span",this).text(e)})}))},initSparklineCharts:function(){jQuery().sparkline&&($("#sparkline_bar").sparkline([8,9,10,11,10,10,12,10,10,11,9,12,11,10,9,11,13,13,12],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#35aa47",negBarColor:"#e02222"}),$("#sparkline_bar2").sparkline([9,11,12,13,12,13,10,14,13,11,11,12,11,11,10,12,11,10],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#ffb848",negBarColor:"#e02222"}),$("#sparkline_bar5").sparkline([8,9,10,11,10,10,12,10,10,11,9,12,11,10,9,11,13,13,12],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#35aa47",negBarColor:"#e02222"}),$("#sparkline_bar6").sparkline([9,11,12,13,12,13,10,14,13,11,11,12,11,11,10,12,11,10],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#ffb848",negBarColor:"#e02222"}),$("#sparkline_line").sparkline([9,10,9,10,10,11,12,10,10,11,11,12,11,10,12,11,10,12],{type:"line",width:"100",height:"55",lineColor:"#ffb848"}))},initMorisCharts:function(){Morris.EventEmitter&&$("#sales_statistics").size()>0&&(dashboardMainChart=Morris.Area({element:"sales_statistics",padding:0,behaveLikeLine:!1,gridEnabled:!1,gridLineColor:!1,axes:!1,fillOpacity:1,data:[{period:"2011 Q1",sales:1400,profit:400},{period:"2011 Q2",sales:1100,profit:600},{period:"2011 Q3",sales:1600,profit:500},{period:"2011 Q4",sales:1200,profit:400},{period:"2012 Q1",sales:1550,profit:800}],lineColors:["#399a8c","#92e9dc"],xkey:"period",ykeys:["sales","profit"],labels:["Sales","Profit"],pointSize:0,lineWidth:0,hideHover:"auto",resize:!0}))},initChat:function(){var e=$("#chats"),t=$(".chats",e),a=$(".chat-form",e),i=$("input",a),l=$(".btn",a),o=function(a){a.preventDefault();var l=i.val();if(0!=l.length){var o=new Date,n=o.getHours()+":"+o.getMinutes(),r="";r+='
  • ',r+='',r+='
    ',r+='',r+='Bob Nilson ',r+='at '+n+"",r+='',r+=l,r+="",r+="
    ",r+="
  • ";t.append(r);i.val("");var s=function(){var t=0;return e.find("li.out, li.in").each(function(){t+=$(this).outerHeight()}),t};e.find(".scroller").slimScroll({scrollTo:s()})}};$("body").on("click",".message .name",function(e){e.preventDefault();var t=$(this).text();i.val("@"+t+":"),App.scrollTo(i)}),l.click(o),i.keypress(function(e){return 13==e.which?(o(e),!1):void 0})},initDashboardDaterange:function(){jQuery().daterangepicker&&($("#dashboard-report-range").daterangepicker({ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},locale:{format:"MM/DD/YYYY",separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1},opens:App.isRTL()?"right":"left"},function(e,t,a){$("#dashboard-report-range span").html(e.format("MMMM D, YYYY")+" - "+t.format("MMMM D, YYYY"))}),$("#dashboard-report-range span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")),$("#dashboard-report-range").show())},initAmChart1:function(){if("undefined"!=typeof AmCharts&&0!==$("#dashboard_amchart_1").size()){var e=[{date:"2012-01-05",distance:480,townName:"Miami",townName2:"Miami",townSize:10,latitude:25.83,duration:501},{date:"2012-01-06",distance:386,townName:"Tallahassee",townSize:7,latitude:30.46,duration:443},{date:"2012-01-07",distance:348,townName:"New Orleans",townSize:10,latitude:29.94,duration:405},{date:"2012-01-08",distance:238,townName:"Houston",townName2:"Houston",townSize:16,latitude:29.76,duration:309},{date:"2012-01-09",distance:218,townName:"Dalas",townSize:17,latitude:32.8,duration:287},{date:"2012-01-10",distance:349,townName:"Oklahoma City",townSize:11,latitude:35.49,duration:485},{date:"2012-01-11",distance:603,townName:"Kansas City",townSize:10,latitude:39.1,duration:890},{date:"2012-01-12",distance:534,townName:"Denver",townName2:"Denver",townSize:18,latitude:39.74,duration:810},{date:"2012-01-13",townName:"Salt Lake City",townSize:12,distance:425,duration:670,latitude:40.75,alpha:.4},{date:"2012-01-14",latitude:36.1,duration:470,townName:"Las Vegas",townName2:"Las Vegas",bulletClass:"lastBullet"},{date:"2012-01-15"}];AmCharts.makeChart("dashboard_amchart_1",{type:"serial",fontSize:12,fontFamily:"Open Sans",dataDateFormat:"YYYY-MM-DD",dataProvider:e,addClassNames:!0,startDuration:1,color:"#6c7b88",marginLeft:0,categoryField:"date",categoryAxis:{parseDates:!0,minPeriod:"DD",autoGridCount:!1,gridCount:50,gridAlpha:.1,gridColor:"#FFFFFF",axisColor:"#555555",dateFormats:[{period:"DD",format:"DD"},{period:"WW",format:"MMM DD"},{period:"MM",format:"MMM"},{period:"YYYY",format:"YYYY"}]},valueAxes:[{id:"a1",title:"distance",gridAlpha:0,axisAlpha:0},{id:"a2",position:"right",gridAlpha:0,axisAlpha:0,labelsEnabled:!1},{id:"a3",title:"duration",position:"right",gridAlpha:0,axisAlpha:0,inside:!0,duration:"mm",durationUnits:{DD:"d. ",hh:"h ",mm:"min",ss:""}}],graphs:[{id:"g1",valueField:"distance",title:"distance",type:"column",fillAlphas:.7,valueAxis:"a1",balloonText:"[[value]] miles",legendValueText:"[[value]] mi",legendPeriodValueText:"total: [[value.sum]] mi",lineColor:"#08a3cc",alphaField:"alpha"},{id:"g2",valueField:"latitude",classNameField:"bulletClass",title:"latitude/city",type:"line",valueAxis:"a2",lineColor:"#786c56",lineThickness:1,legendValueText:"[[description]]/[[value]]",descriptionField:"townName",bullet:"round",bulletSizeField:"townSize",bulletBorderColor:"#02617a",bulletBorderAlpha:1,bulletBorderThickness:2,bulletColor:"#89c4f4",labelText:"[[townName2]]",labelPosition:"right",balloonText:"latitude:[[value]]",showBalloon:!0,animationPlayed:!0},{id:"g3",title:"duration",valueField:"duration",type:"line",valueAxis:"a3",lineAlpha:.8,lineColor:"#e26a6a",balloonText:"[[value]]",lineThickness:1,legendValueText:"[[value]]",bullet:"square",bulletBorderColor:"#e26a6a",bulletBorderThickness:1,bulletBorderAlpha:.8,dashLengthField:"dashLength",animationPlayed:!0}],chartCursor:{zoomable:!1,categoryBalloonDateFormat:"DD",cursorAlpha:0,categoryBalloonColor:"#e26a6a",categoryBalloonAlpha:.8,valueBalloonsEnabled:!1},legend:{bulletType:"round",equalWidths:!1,valueWidth:120,useGraphSettings:!0,color:"#6c7b88"}})}},initAmChart2:function(){if("undefined"!=typeof AmCharts&&0!==$("#dashboard_amchart_2").size()){var e="M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z",t="M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z";AmCharts.makeChart("dashboard_amchart_2",{type:"map",theme:"light",pathToImages:"../assets/global/plugins/amcharts/ammap/images/",dataProvider:{map:"worldLow",linkToObject:"london",images:[{id:"london",color:"#009dc7",svgPath:e,title:"London",latitude:51.5002,longitude:-.1262,scale:1.5,zoomLevel:2.74,zoomLongitude:-20.1341,zoomLatitude:49.1712,lines:[{latitudes:[51.5002,50.4422],longitudes:[-.1262,30.5367]},{latitudes:[51.5002,46.948],longitudes:[-.1262,7.4481]},{latitudes:[51.5002,59.3328],longitudes:[-.1262,18.0645]},{latitudes:[51.5002,40.4167],longitudes:[-.1262,-3.7033]},{latitudes:[51.5002,46.0514],longitudes:[-.1262,14.506]},{latitudes:[51.5002,48.2116],longitudes:[-.1262,17.1547]},{latitudes:[51.5002,44.8048],longitudes:[-.1262,20.4781]},{latitudes:[51.5002,55.7558],longitudes:[-.1262,37.6176]},{latitudes:[51.5002,38.7072],longitudes:[-.1262,-9.1355]},{latitudes:[51.5002,54.6896],longitudes:[-.1262,25.2799]},{latitudes:[51.5002,64.1353],longitudes:[-.1262,-21.8952]},{latitudes:[51.5002,40.43],longitudes:[-.1262,-74]}],images:[{label:"Flights from London",svgPath:t,left:100,top:45,labelShiftY:5,color:"#d93d5e",labelColor:"#d93d5e",labelRollOverColor:"#d93d5e",labelFontSize:20},{label:"show flights from Vilnius",left:106,top:70,labelColor:"#6c7b88",labelRollOverColor:"#d93d5e",labelFontSize:11,linkToObject:"vilnius"}]},{id:"vilnius",color:"#009dc7",svgPath:e,title:"Vilnius",latitude:54.6896,longitude:25.2799,scale:1.5,zoomLevel:4.92,zoomLongitude:15.4492,zoomLatitude:50.2631,lines:[{latitudes:[54.6896,50.8371],longitudes:[25.2799,4.3676]},{latitudes:[54.6896,59.9138],longitudes:[25.2799,10.7387]},{latitudes:[54.6896,40.4167],longitudes:[25.2799,-3.7033]},{latitudes:[54.6896,50.0878],longitudes:[25.2799,14.4205]},{latitudes:[54.6896,48.2116],longitudes:[25.2799,17.1547]},{latitudes:[54.6896,44.8048],longitudes:[25.2799,20.4781]},{latitudes:[54.6896,55.7558],longitudes:[25.2799,37.6176]},{latitudes:[54.6896,37.9792],longitudes:[25.2799,23.7166]},{latitudes:[54.6896,54.6896],longitudes:[25.2799,25.2799]},{latitudes:[54.6896,51.5002],longitudes:[25.2799,-.1262]},{latitudes:[54.6896,53.3441],longitudes:[25.2799,-6.2675]}],images:[{label:"Flights from Vilnius",svgPath:t,left:100,top:45,labelShiftY:5,color:"#d93d5e",labelColor:"#d93d5e",labelRollOverColor:"#d93d5e",labelFontSize:20},{label:"show flights from London",left:106,top:70,labelColor:"#009dc7",labelRollOverColor:"#d93d5e",labelFontSize:11,linkToObject:"london"}]},{svgPath:e,title:"Brussels",latitude:50.8371,longitude:4.3676},{svgPath:e,title:"Prague",latitude:50.0878,longitude:14.4205},{svgPath:e,title:"Athens",latitude:37.9792,longitude:23.7166},{svgPath:e,title:"Reykjavik",latitude:64.1353,longitude:-21.8952},{svgPath:e,title:"Dublin",latitude:53.3441,longitude:-6.2675},{svgPath:e,title:"Oslo",latitude:59.9138,longitude:10.7387},{svgPath:e,title:"Lisbon",latitude:38.7072,longitude:-9.1355},{svgPath:e,title:"Moscow",latitude:55.7558,longitude:37.6176},{svgPath:e,title:"Belgrade",latitude:44.8048,longitude:20.4781},{svgPath:e,title:"Bratislava",latitude:48.2116,longitude:17.1547},{svgPath:e,title:"Ljubljana",latitude:46.0514,longitude:14.506},{svgPath:e,title:"Madrid",latitude:40.4167,longitude:-3.7033},{svgPath:e,title:"Stockholm",latitude:59.3328,longitude:18.0645},{svgPath:e,title:"Bern",latitude:46.948,longitude:7.4481},{svgPath:e,title:"Kiev",latitude:50.4422,longitude:30.5367},{svgPath:e,title:"Paris",latitude:48.8567,longitude:2.351},{svgPath:e,title:"New York",latitude:40.43,longitude:-74}]},zoomControl:{buttonFillColor:"#dddddd"},areasSettings:{unlistedAreasColor:"#15A892"},imagesSettings:{color:"#d93d5e",rollOverColor:"#d93d5e",selectedColor:"#009dc7"},linesSettings:{color:"#d93d5e",alpha:.4},backgroundZoomsToTop:!0,linesAboveImages:!0,"export":{enabled:!0,libs:{path:"http://www.amcharts.com/lib/3/plugins/export/libs/"}}})}},initAmChart3:function(){if("undefined"!=typeof AmCharts&&0!==$("#dashboard_amchart_3").size()){AmCharts.makeChart("dashboard_amchart_3",{type:"serial",addClassNames:!0,theme:"light",path:"../assets/global/plugins/amcharts/ammap/images/",autoMargins:!1,marginLeft:30,marginRight:8,marginTop:10,marginBottom:26,balloon:{adjustBorderColor:!1,horizontalPadding:10,verticalPadding:8,color:"#ffffff"},dataProvider:[{year:2009,income:23.5,expenses:21.1},{year:2010,income:26.2,expenses:30.5},{year:2011,income:30.1,expenses:34.9},{year:2012,income:29.5,expenses:31.1},{year:2013,income:30.6,expenses:28.2},{year:2014,income:34.1,expenses:32.9,dashLengthColumn:5,alpha:.2,additional:"(projection)"}],valueAxes:[{axisAlpha:0,position:"left"}],startDuration:1,graphs:[{alphaField:"alpha",balloonText:"[[title]] in [[category]]:
    [[value]] [[additional]]
    ",fillAlphas:1,title:"Income",type:"column",valueField:"income",dashLengthField:"dashLengthColumn"},{id:"graph2",balloonText:"[[title]] in [[category]]:
    [[value]] [[additional]]
    ",bullet:"round",lineThickness:3,bulletSize:7,bulletBorderAlpha:1,bulletColor:"#FFFFFF",useLineColorForBulletBorder:!0,bulletBorderThickness:3,fillAlphas:0,lineAlpha:1,title:"Expenses",valueField:"expenses"}],categoryField:"year",categoryAxis:{gridPosition:"start",axisAlpha:0,tickLength:0},"export":{enabled:!0}})}},initAmChart4:function(){if("undefined"!=typeof AmCharts&&0!==$("#dashboard_amchart_4").size()){var e=AmCharts.makeChart("dashboard_amchart_4",{type:"pie",theme:"light",path:"../assets/global/plugins/amcharts/ammap/images/",dataProvider:[{country:"Lithuania",value:260},{country:"Ireland",value:201},{country:"Germany",value:65},{country:"Australia",value:39},{country:"UK",value:19},{country:"Latvia",value:10}],valueField:"value",titleField:"country",outlineAlpha:.4,depth3D:15,balloonText:"[[title]]
    [[value]] ([[percents]]%)",angle:30,"export":{enabled:!0}});jQuery(".chart-input").off().on("input change",function(){var t=jQuery(this).data("property"),a=e,i=Number(this.value);e.startDuration=0,"innerRadius"==t&&(i+="%"),a[t]=i,e.validateNow()})}},initWorldMapStats:function(){0!==$("#mapplic").size()&&($("#mapplic").mapplic({source:"../assets/global/plugins/mapplic/world.json",height:265,animate:!1,sidebar:!1,minimap:!1,locations:!0,deeplinking:!0,fullscreen:!1,hovertip:!0,zoombuttons:!1,clearbutton:!1,developer:!1,maxscale:2,skin:"mapplic-dark",zoom:!0}),$("#widget_sparkline_bar").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#4db3a4",negBarColor:"#e02222"}),$("#widget_sparkline_bar2").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#f36a5a",negBarColor:"#e02222"}),$("#widget_sparkline_bar3").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#5b9bd1",negBarColor:"#e02222"}),$("#widget_sparkline_bar4").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#9a7caf",negBarColor:"#e02222"}))},init:function(){this.initJQVMAP(),this.initCalendar(),this.initCharts(),this.initEasyPieCharts(),this.initSparklineCharts(),this.initChat(),this.initDashboardDaterange(),this.initMorisCharts(),this.initAmChart1(),this.initAmChart2(),this.initAmChart3(),this.initAmChart4(),this.initWorldMapStats()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){Dashboard.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/form-dropzone.js b/assets/pages/scripts/form-dropzone.js deleted file mode 100755 index 769441c..0000000 --- a/assets/pages/scripts/form-dropzone.js +++ /dev/null @@ -1,41 +0,0 @@ -var FormDropzone = function () { - - - return { - //main function to initiate the module - init: function () { - - Dropzone.options.myDropzone = { - dictDefaultMessage: "", - init: function() { - this.on("addedfile", function(file) { - // Create the remove button - var removeButton = Dropzone.createElement("Remove"); - - // Capture the Dropzone instance as closure. - var _this = this; - - // Listen to the click event - removeButton.addEventListener("click", function(e) { - // Make sure the button click doesn't submit the form: - e.preventDefault(); - e.stopPropagation(); - - // Remove the file preview. - _this.removeFile(file); - // If you want to the delete the file on the server as well, - // you can do the AJAX request here. - }); - - // Add the button to the file preview element. - file.previewElement.appendChild(removeButton); - }); - } - } - } - }; -}(); - -jQuery(document).ready(function() { - FormDropzone.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/form-dropzone.min.js b/assets/pages/scripts/form-dropzone.min.js deleted file mode 100755 index d8b2acc..0000000 --- a/assets/pages/scripts/form-dropzone.min.js +++ /dev/null @@ -1 +0,0 @@ -var FormDropzone=function(){return{init:function(){Dropzone.options.myDropzone={dictDefaultMessage:"",init:function(){this.on("addedfile",function(e){var n=Dropzone.createElement("Remove"),t=this;n.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation(),t.removeFile(e)}),e.previewElement.appendChild(n)})}}}}}();jQuery(document).ready(function(){FormDropzone.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/form-editable.js b/assets/pages/scripts/form-editable.js deleted file mode 100755 index cccb0b0..0000000 --- a/assets/pages/scripts/form-editable.js +++ /dev/null @@ -1,571 +0,0 @@ -var FormEditable = function() { - - $.mockjaxSettings.responseTime = 500; - - var log = function(settings, response) { - var s = [], - str; - s.push(settings.type.toUpperCase() + ' url = "' + settings.url + '"'); - for (var a in settings.data) { - if (settings.data[a] && typeof settings.data[a] === 'object') { - str = []; - for (var j in settings.data[a]) { - str.push(j + ': "' + settings.data[a][j] + '"'); - } - str = '{ ' + str.join(', ') + ' }'; - } else { - str = '"' + settings.data[a] + '"'; - } - s.push(a + ' = ' + str); - } - s.push('RESPONSE: status = ' + response.status); - - if (response.responseText) { - if ($.isArray(response.responseText)) { - s.push('['); - $.each(response.responseText, function(i, v) { - s.push('{value: ' + v.value + ', text: "' + v.text + '"}'); - }); - s.push(']'); - } else { - s.push($.trim(response.responseText)); - } - } - s.push('--------------------------------------\n'); - $('#console').val(s.join('\n') + $('#console').val()); - } - - var initAjaxMock = function() { - //ajax mocks - - $.mockjax({ - url: '/post', - response: function(settings) { - log(settings, this); - } - }); - - $.mockjax({ - url: '/error', - status: 400, - statusText: 'Bad Request', - response: function(settings) { - this.responseText = 'Please input correct value'; - log(settings, this); - } - }); - - $.mockjax({ - url: '/status', - status: 500, - response: function(settings) { - this.responseText = 'Internal Server Error'; - log(settings, this); - } - }); - - $.mockjax({ - url: '/groups', - response: function(settings) { - this.responseText = [{ - value: 0, - text: 'Guest' - }, { - value: 1, - text: 'Service' - }, { - value: 2, - text: 'Customer' - }, { - value: 3, - text: 'Operator' - }, { - value: 4, - text: 'Support' - }, { - value: 5, - text: 'Admin' - }]; - log(settings, this); - } - }); - - } - - var initEditables = function() { - - //set editable mode based on URL parameter - if (App.getURLParameter('mode') == 'inline') { - $.fn.editable.defaults.mode = 'inline'; - $('#inline').attr("checked", true); - } else { - $('#inline').attr("checked", false); - } - - //global settings - $.fn.editable.defaults.inputclass = 'form-control'; - $.fn.editable.defaults.url = '/post'; - - //editables element samples - $('#username').editable({ - url: '/post', - type: 'text', - pk: 1, - name: 'username', - title: 'Enter username' - }); - - $('#firstname').editable({ - validate: function(value) { - if ($.trim(value) == '') return 'This field is required'; - } - }); - - $('#sex').editable({ - prepend: "not selected", - inputclass: 'form-control', - source: [{ - value: 1, - text: 'Male' - }, { - value: 2, - text: 'Female' - }], - display: function(value, sourceData) { - var colors = { - "": "gray", - 1: "green", - 2: "blue" - }, - elem = $.grep(sourceData, function(o) { - return o.value == value; - }); - - if (elem.length) { - $(this).text(elem[0].text).css("color", colors[value]); - } else { - $(this).empty(); - } - } - }); - - $('#status').editable(); - - $('#group').editable({ - showbuttons: false - }); - - $('#vacation').editable({ - rtl: App.isRTL() - }); - - $('#dob').editable({ - inputclass: 'form-control', - }); - - $('#event').editable({ - placement: (App.isRTL() ? 'left' : 'right'), - combodate: { - firstItem: 'name' - } - }); - - $('#meeting_start').editable({ - format: 'yyyy-mm-dd hh:ii', - viewformat: 'dd/mm/yyyy hh:ii', - validate: function(v) { - if (v && v.getDate() == 10) return 'Day cant be 10!'; - }, - datetimepicker: { - rtl: App.isRTL(), - todayBtn: 'linked', - weekStart: 1 - } - }); - - $('#comments').editable({ - showbuttons: 'bottom' - }); - - $('#note').editable({ - showbuttons: (App.isRTL() ? 'left' : 'right') - }); - - $('#pencil').click(function(e) { - e.stopPropagation(); - e.preventDefault(); - $('#note').editable('toggle'); - }); - - $('#state').editable({ - source: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Dakota", "North Carolina", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"] - }); - - $('#fruits').editable({ - pk: 1, - limit: 3, - source: [{ - value: 1, - text: 'banana' - }, { - value: 2, - text: 'peach' - }, { - value: 3, - text: 'apple' - }, { - value: 4, - text: 'watermelon' - }, { - value: 5, - text: 'orange' - }] - }); - - $('#fruits').on('shown', function(e, reason) { - App.initUniform(); - }); - - $('#tags').editable({ - inputclass: 'form-control input-medium', - select2: { - tags: ['html', 'javascript', 'css', 'ajax'], - tokenSeparators: [",", " "] - } - }); - - var countries = []; - $.each({ - "BD": "Bangladesh", - "BE": "Belgium", - "BF": "Burkina Faso", - "BG": "Bulgaria", - "BA": "Bosnia and Herzegovina", - "BB": "Barbados", - "WF": "Wallis and Futuna", - "BL": "Saint Bartelemey", - "BM": "Bermuda", - "BN": "Brunei Darussalam", - "BO": "Bolivia", - "BH": "Bahrain", - "BI": "Burundi", - "BJ": "Benin", - "BT": "Bhutan", - "JM": "Jamaica", - "BV": "Bouvet Island", - "BW": "Botswana", - "WS": "Samoa", - "BR": "Brazil", - "BS": "Bahamas", - "JE": "Jersey", - "BY": "Belarus", - "O1": "Other Country", - "LV": "Latvia", - "RW": "Rwanda", - "RS": "Serbia", - "TL": "Timor-Leste", - "RE": "Reunion", - "LU": "Luxembourg", - "TJ": "Tajikistan", - "RO": "Romania", - "PG": "Papua New Guinea", - "GW": "Guinea-Bissau", - "GU": "Guam", - "GT": "Guatemala", - "GS": "South Georgia and the South Sandwich Islands", - "GR": "Greece", - "GQ": "Equatorial Guinea", - "GP": "Guadeloupe", - "JP": "Japan", - "GY": "Guyana", - "GG": "Guernsey", - "GF": "French Guiana", - "GE": "Georgia", - "GD": "Grenada", - "GB": "United Kingdom", - "GA": "Gabon", - "SV": "El Salvador", - "GN": "Guinea", - "GM": "Gambia", - "GL": "Greenland", - "GI": "Gibraltar", - "GH": "Ghana", - "OM": "Oman", - "TN": "Tunisia", - "JO": "Jordan", - "HR": "Croatia", - "HT": "Haiti", - "HU": "Hungary", - "HK": "Hong Kong", - "HN": "Honduras", - "HM": "Heard Island and McDonald Islands", - "VE": "Venezuela", - "PR": "Puerto Rico", - "PS": "Palestinian Territory", - "PW": "Palau", - "PT": "Portugal", - "SJ": "Svalbard and Jan Mayen", - "PY": "Paraguay", - "IQ": "Iraq", - "PA": "Panama", - "PF": "French Polynesia", - "BZ": "Belize", - "PE": "Peru", - "PK": "Pakistan", - "PH": "Philippines", - "PN": "Pitcairn", - "TM": "Turkmenistan", - "PL": "Poland", - "PM": "Saint Pierre and Miquelon", - "ZM": "Zambia", - "EH": "Western Sahara", - "RU": "Russian Federation", - "EE": "Estonia", - "EG": "Egypt", - "TK": "Tokelau", - "ZA": "South Africa", - "EC": "Ecuador", - "IT": "Italy", - "VN": "Vietnam", - "SB": "Solomon Islands", - "EU": "Europe", - "ET": "Ethiopia", - "SO": "Somalia", - "ZW": "Zimbabwe", - "SA": "Saudi Arabia", - "ES": "Spain", - "ER": "Eritrea", - "ME": "Montenegro", - "MD": "Moldova, Republic of", - "MG": "Madagascar", - "MF": "Saint Martin", - "MA": "Morocco", - "MC": "Monaco", - "UZ": "Uzbekistan", - "MM": "Myanmar", - "ML": "Mali", - "MO": "Macao", - "MN": "Mongolia", - "MH": "Marshall Islands", - "MK": "Macedonia", - "MU": "Mauritius", - "MT": "Malta", - "MW": "Malawi", - "MV": "Maldives", - "MQ": "Martinique", - "MP": "Northern Mariana Islands", - "MS": "Montserrat", - "MR": "Mauritania", - "IM": "Isle of Man", - "UG": "Uganda", - "TZ": "Tanzania, United Republic of", - "MY": "Malaysia", - "MX": "Mexico", - "IL": "Israel", - "FR": "France", - "IO": "British Indian Ocean Territory", - "FX": "France, Metropolitan", - "SH": "Saint Helena", - "FI": "Finland", - "FJ": "Fiji", - "FK": "Falkland Islands (Malvinas)", - "FM": "Micronesia, Federated States of", - "FO": "Faroe Islands", - "NI": "Nicaragua", - "NL": "Netherlands", - "NO": "Norway", - "NA": "Namibia", - "VU": "Vanuatu", - "NC": "New Caledonia", - "NE": "Niger", - "NF": "Norfolk Island", - "NG": "Nigeria", - "NZ": "New Zealand", - "NP": "Nepal", - "NR": "Nauru", - "NU": "Niue", - "CK": "Cook Islands", - "CI": "Cote d'Ivoire", - "CH": "Switzerland", - "CO": "Colombia", - "CN": "China", - "CM": "Cameroon", - "CL": "Chile", - "CC": "Cocos (Keeling) Islands", - "CA": "Canada", - "CG": "Congo", - "CF": "Central African Republic", - "CD": "Congo, The Democratic Republic of the", - "CZ": "Czech Republic", - "CY": "Cyprus", - "CX": "Christmas Island", - "CR": "Costa Rica", - "CV": "Cape Verde", - "CU": "Cuba", - "SZ": "Swaziland", - "SY": "Syrian Arab Republic", - "KG": "Kyrgyzstan", - "KE": "Kenya", - "SR": "Suriname", - "KI": "Kiribati", - "KH": "Cambodia", - "KN": "Saint Kitts and Nevis", - "KM": "Comoros", - "ST": "Sao Tome and Principe", - "SK": "Slovakia", - "KR": "Korea, Republic of", - "SI": "Slovenia", - "KP": "Korea, Democratic People's Republic of", - "KW": "Kuwait", - "SN": "Senegal", - "SM": "San Marino", - "SL": "Sierra Leone", - "SC": "Seychelles", - "KZ": "Kazakhstan", - "KY": "Cayman Islands", - "SG": "Singapore", - "SE": "Sweden", - "SD": "Sudan", - "DO": "Dominican Republic", - "DM": "Dominica", - "DJ": "Djibouti", - "DK": "Denmark", - "VG": "Virgin Islands, British", - "DE": "Germany", - "YE": "Yemen", - "DZ": "Algeria", - "US": "United States", - "UY": "Uruguay", - "YT": "Mayotte", - "UM": "United States Minor Outlying Islands", - "LB": "Lebanon", - "LC": "Saint Lucia", - "LA": "Lao People's Democratic Republic", - "TV": "Tuvalu", - "TW": "Taiwan", - "TT": "Trinidad and Tobago", - "TR": "Turkey", - "LK": "Sri Lanka", - "LI": "Liechtenstein", - "A1": "Anonymous Proxy", - "TO": "Tonga", - "LT": "Lithuania", - "A2": "Satellite Provider", - "LR": "Liberia", - "LS": "Lesotho", - "TH": "Thailand", - "TF": "French Southern Territories", - "TG": "Togo", - "TD": "Chad", - "TC": "Turks and Caicos Islands", - "LY": "Libyan Arab Jamahiriya", - "VA": "Holy See (Vatican City State)", - "VC": "Saint Vincent and the Grenadines", - "AE": "United Arab Emirates", - "AD": "Andorra", - "AG": "Antigua and Barbuda", - "AF": "Afghanistan", - "AI": "Anguilla", - "VI": "Virgin Islands, U.S.", - "IS": "Iceland", - "IR": "Iran, Islamic Republic of", - "AM": "Armenia", - "AL": "Albania", - "AO": "Angola", - "AN": "Netherlands Antilles", - "AQ": "Antarctica", - "AP": "Asia/Pacific Region", - "AS": "American Samoa", - "AR": "Argentina", - "AU": "Australia", - "AT": "Austria", - "AW": "Aruba", - "IN": "India", - "AX": "Aland Islands", - "AZ": "Azerbaijan", - "IE": "Ireland", - "ID": "Indonesia", - "UA": "Ukraine", - "QA": "Qatar", - "MZ": "Mozambique" - }, function(k, v) { - countries.push({ - id: k, - text: v - }); - }); - - $('#country').editable({ - inputclass: 'form-control input-medium', - source: countries - }); - - $('#address').editable({ - url: '/post', - value: { - city: "San Francisco", - street: "Valencia", - building: "#24" - }, - validate: function(value) { - if (value.city == '') return 'city is required!'; - }, - display: function(value) { - if (!value) { - $(this).empty(); - return; - } - var html = '' + $('
    ').text(value.city).html() + ', ' + $('
    ').text(value.street).html() + ' st., bld. ' + $('
    ').text(value.building).html(); - $(this).html(html); - } - }); - } - - return { - //main function to initiate the module - init: function() { - - // inii ajax simulation - initAjaxMock(); - - // init editable elements - initEditables(); - - // init editable toggler - $('#enable').click(function() { - $('#user .editable').editable('toggleDisabled'); - }); - - // init - $('#inline').on('change', function(e) { - if ($(this).is(':checked')) { - window.location.href = 'form_editable.html?mode=inline'; - } else { - window.location.href = 'form_editable.html'; - } - }); - - // handle editable elements on hidden event fired - $('#user .editable').on('hidden', function(e, reason) { - if (reason === 'save' || reason === 'nochange') { - var $next = $(this).closest('tr').next().find('.editable'); - if ($('#autoopen').is(':checked')) { - setTimeout(function() { - $next.editable('show'); - }, 300); - } else { - $next.focus(); - } - } - }); - - - } - - }; - -}(); - -jQuery(document).ready(function() { - FormEditable.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/form-editable.min.js b/assets/pages/scripts/form-editable.min.js deleted file mode 100755 index 2927799..0000000 --- a/assets/pages/scripts/form-editable.min.js +++ /dev/null @@ -1 +0,0 @@ -var FormEditable=function(){$.mockjaxSettings.responseTime=500;var a=function(a,e){var i,n=[];n.push(a.type.toUpperCase()+' url = "'+a.url+'"');for(var t in a.data){if(a.data[t]&&"object"==typeof a.data[t]){i=[];for(var o in a.data[t])i.push(o+': "'+a.data[t][o]+'"');i="{ "+i.join(", ")+" }"}else i='"'+a.data[t]+'"';n.push(t+" = "+i)}n.push("RESPONSE: status = "+e.status),e.responseText&&($.isArray(e.responseText)?(n.push("["),$.each(e.responseText,function(a,e){n.push("{value: "+e.value+', text: "'+e.text+'"}')}),n.push("]")):n.push($.trim(e.responseText))),n.push("--------------------------------------\n"),$("#console").val(n.join("\n")+$("#console").val())},e=function(){$.mockjax({url:"/post",response:function(e){a(e,this)}}),$.mockjax({url:"/error",status:400,statusText:"Bad Request",response:function(e){this.responseText="Please input correct value",a(e,this)}}),$.mockjax({url:"/status",status:500,response:function(e){this.responseText="Internal Server Error",a(e,this)}}),$.mockjax({url:"/groups",response:function(e){this.responseText=[{value:0,text:"Guest"},{value:1,text:"Service"},{value:2,text:"Customer"},{value:3,text:"Operator"},{value:4,text:"Support"},{value:5,text:"Admin"}],a(e,this)}})},i=function(){"inline"==App.getURLParameter("mode")?($.fn.editable.defaults.mode="inline",$("#inline").attr("checked",!0)):$("#inline").attr("checked",!1),$.fn.editable.defaults.inputclass="form-control",$.fn.editable.defaults.url="/post",$("#username").editable({url:"/post",type:"text",pk:1,name:"username",title:"Enter username"}),$("#firstname").editable({validate:function(a){return""==$.trim(a)?"This field is required":void 0}}),$("#sex").editable({prepend:"not selected",inputclass:"form-control",source:[{value:1,text:"Male"},{value:2,text:"Female"}],display:function(a,e){var i={"":"gray",1:"green",2:"blue"},n=$.grep(e,function(e){return e.value==a});n.length?$(this).text(n[0].text).css("color",i[a]):$(this).empty()}}),$("#status").editable(),$("#group").editable({showbuttons:!1}),$("#vacation").editable({rtl:App.isRTL()}),$("#dob").editable({inputclass:"form-control"}),$("#event").editable({placement:App.isRTL()?"left":"right",combodate:{firstItem:"name"}}),$("#meeting_start").editable({format:"yyyy-mm-dd hh:ii",viewformat:"dd/mm/yyyy hh:ii",validate:function(a){return a&&10==a.getDate()?"Day cant be 10!":void 0},datetimepicker:{rtl:App.isRTL(),todayBtn:"linked",weekStart:1}}),$("#comments").editable({showbuttons:"bottom"}),$("#note").editable({showbuttons:App.isRTL()?"left":"right"}),$("#pencil").click(function(a){a.stopPropagation(),a.preventDefault(),$("#note").editable("toggle")}),$("#state").editable({source:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]}),$("#fruits").editable({pk:1,limit:3,source:[{value:1,text:"banana"},{value:2,text:"peach"},{value:3,text:"apple"},{value:4,text:"watermelon"},{value:5,text:"orange"}]}),$("#fruits").on("shown",function(a,e){App.initUniform()}),$("#tags").editable({inputclass:"form-control input-medium",select2:{tags:["html","javascript","css","ajax"],tokenSeparators:[","," "]}});var a=[];$.each({BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BA:"Bosnia and Herzegovina",BB:"Barbados",WF:"Wallis and Futuna",BL:"Saint Bartelemey",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BT:"Bhutan",JM:"Jamaica",BV:"Bouvet Island",BW:"Botswana",WS:"Samoa",BR:"Brazil",BS:"Bahamas",JE:"Jersey",BY:"Belarus",O1:"Other Country",LV:"Latvia",RW:"Rwanda",RS:"Serbia",TL:"Timor-Leste",RE:"Reunion",LU:"Luxembourg",TJ:"Tajikistan",RO:"Romania",PG:"Papua New Guinea",GW:"Guinea-Bissau",GU:"Guam",GT:"Guatemala",GS:"South Georgia and the South Sandwich Islands",GR:"Greece",GQ:"Equatorial Guinea",GP:"Guadeloupe",JP:"Japan",GY:"Guyana",GG:"Guernsey",GF:"French Guiana",GE:"Georgia",GD:"Grenada",GB:"United Kingdom",GA:"Gabon",SV:"El Salvador",GN:"Guinea",GM:"Gambia",GL:"Greenland",GI:"Gibraltar",GH:"Ghana",OM:"Oman",TN:"Tunisia",JO:"Jordan",HR:"Croatia",HT:"Haiti",HU:"Hungary",HK:"Hong Kong",HN:"Honduras",HM:"Heard Island and McDonald Islands",VE:"Venezuela",PR:"Puerto Rico",PS:"Palestinian Territory",PW:"Palau",PT:"Portugal",SJ:"Svalbard and Jan Mayen",PY:"Paraguay",IQ:"Iraq",PA:"Panama",PF:"French Polynesia",BZ:"Belize",PE:"Peru",PK:"Pakistan",PH:"Philippines",PN:"Pitcairn",TM:"Turkmenistan",PL:"Poland",PM:"Saint Pierre and Miquelon",ZM:"Zambia",EH:"Western Sahara",RU:"Russian Federation",EE:"Estonia",EG:"Egypt",TK:"Tokelau",ZA:"South Africa",EC:"Ecuador",IT:"Italy",VN:"Vietnam",SB:"Solomon Islands",EU:"Europe",ET:"Ethiopia",SO:"Somalia",ZW:"Zimbabwe",SA:"Saudi Arabia",ES:"Spain",ER:"Eritrea",ME:"Montenegro",MD:"Moldova, Republic of",MG:"Madagascar",MF:"Saint Martin",MA:"Morocco",MC:"Monaco",UZ:"Uzbekistan",MM:"Myanmar",ML:"Mali",MO:"Macao",MN:"Mongolia",MH:"Marshall Islands",MK:"Macedonia",MU:"Mauritius",MT:"Malta",MW:"Malawi",MV:"Maldives",MQ:"Martinique",MP:"Northern Mariana Islands",MS:"Montserrat",MR:"Mauritania",IM:"Isle of Man",UG:"Uganda",TZ:"Tanzania, United Republic of",MY:"Malaysia",MX:"Mexico",IL:"Israel",FR:"France",IO:"British Indian Ocean Territory",FX:"France, Metropolitan",SH:"Saint Helena",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands (Malvinas)",FM:"Micronesia, Federated States of",FO:"Faroe Islands",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NA:"Namibia",VU:"Vanuatu",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NZ:"New Zealand",NP:"Nepal",NR:"Nauru",NU:"Niue",CK:"Cook Islands",CI:"Cote d'Ivoire",CH:"Switzerland",CO:"Colombia",CN:"China",CM:"Cameroon",CL:"Chile",CC:"Cocos (Keeling) Islands",CA:"Canada",CG:"Congo",CF:"Central African Republic",CD:"Congo, The Democratic Republic of the",CZ:"Czech Republic",CY:"Cyprus",CX:"Christmas Island",CR:"Costa Rica",CV:"Cape Verde",CU:"Cuba",SZ:"Swaziland",SY:"Syrian Arab Republic",KG:"Kyrgyzstan",KE:"Kenya",SR:"Suriname",KI:"Kiribati",KH:"Cambodia",KN:"Saint Kitts and Nevis",KM:"Comoros",ST:"Sao Tome and Principe",SK:"Slovakia",KR:"Korea, Republic of",SI:"Slovenia",KP:"Korea, Democratic People's Republic of",KW:"Kuwait",SN:"Senegal",SM:"San Marino",SL:"Sierra Leone",SC:"Seychelles",KZ:"Kazakhstan",KY:"Cayman Islands",SG:"Singapore",SE:"Sweden",SD:"Sudan",DO:"Dominican Republic",DM:"Dominica",DJ:"Djibouti",DK:"Denmark",VG:"Virgin Islands, British",DE:"Germany",YE:"Yemen",DZ:"Algeria",US:"United States",UY:"Uruguay",YT:"Mayotte",UM:"United States Minor Outlying Islands",LB:"Lebanon",LC:"Saint Lucia",LA:"Lao People's Democratic Republic",TV:"Tuvalu",TW:"Taiwan",TT:"Trinidad and Tobago",TR:"Turkey",LK:"Sri Lanka",LI:"Liechtenstein",A1:"Anonymous Proxy",TO:"Tonga",LT:"Lithuania",A2:"Satellite Provider",LR:"Liberia",LS:"Lesotho",TH:"Thailand",TF:"French Southern Territories",TG:"Togo",TD:"Chad",TC:"Turks and Caicos Islands",LY:"Libyan Arab Jamahiriya",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",AE:"United Arab Emirates",AD:"Andorra",AG:"Antigua and Barbuda",AF:"Afghanistan",AI:"Anguilla",VI:"Virgin Islands, U.S.",IS:"Iceland",IR:"Iran, Islamic Republic of",AM:"Armenia",AL:"Albania",AO:"Angola",AN:"Netherlands Antilles",AQ:"Antarctica",AP:"Asia/Pacific Region",AS:"American Samoa",AR:"Argentina",AU:"Australia",AT:"Austria",AW:"Aruba",IN:"India",AX:"Aland Islands",AZ:"Azerbaijan",IE:"Ireland",ID:"Indonesia",UA:"Ukraine",QA:"Qatar",MZ:"Mozambique"},function(e,i){a.push({id:e,text:i})}),$("#country").editable({inputclass:"form-control input-medium",source:a}),$("#address").editable({url:"/post",value:{city:"San Francisco",street:"Valencia",building:"#24"},validate:function(a){return""==a.city?"city is required!":void 0},display:function(a){if(!a)return void $(this).empty();var e=""+$("
    ").text(a.city).html()+", "+$("
    ").text(a.street).html()+" st., bld. "+$("
    ").text(a.building).html();$(this).html(e)}})};return{init:function(){e(),i(),$("#enable").click(function(){$("#user .editable").editable("toggleDisabled")}),$("#inline").on("change",function(a){$(this).is(":checked")?window.location.href="form_editable.html?mode=inline":window.location.href="form_editable.html"}),$("#user .editable").on("hidden",function(a,e){if("save"===e||"nochange"===e){var i=$(this).closest("tr").next().find(".editable");$("#autoopen").is(":checked")?setTimeout(function(){i.editable("show")},300):i.focus()}})}}}();jQuery(document).ready(function(){FormEditable.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/form-fileupload.js b/assets/pages/scripts/form-fileupload.js deleted file mode 100755 index 9d51f10..0000000 --- a/assets/pages/scripts/form-fileupload.js +++ /dev/null @@ -1,61 +0,0 @@ -var FormFileUpload = function () { - return { - //main function to initiate the module - init: function () { - - // Initialize the jQuery File Upload widget: - $('#fileupload').fileupload({ - disableImageResize: false, - autoUpload: false, - disableImageResize: /Android(?!.*Chrome)|Opera/.test(window.navigator.userAgent), - maxFileSize: 5000000, - acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i, - // Uncomment the following to send cross-domain cookies: - //xhrFields: {withCredentials: true}, - }); - - // Enable iframe cross-domain access via redirect option: - $('#fileupload').fileupload( - 'option', - 'redirect', - window.location.href.replace( - /\/[^\/]*$/, - '/cors/result.html?%s' - ) - ); - - // Upload server status check for browsers with CORS support: - if ($.support.cors) { - $.ajax({ - type: 'HEAD' - }).fail(function () { - $('
    ') - .text('Upload server currently unavailable - ' + - new Date()) - .appendTo('#fileupload'); - }); - } - - // Load & display existing files: - $('#fileupload').addClass('fileupload-processing'); - $.ajax({ - // Uncomment the following to send cross-domain cookies: - //xhrFields: {withCredentials: true}, - url: $('#fileupload').attr("action"), - dataType: 'json', - context: $('#fileupload')[0] - }).always(function () { - $(this).removeClass('fileupload-processing'); - }).done(function (result) { - $(this).fileupload('option', 'done') - .call(this, $.Event('done'), {result: result}); - }); - } - - }; - -}(); - -jQuery(document).ready(function() { - FormFileUpload.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/form-fileupload.min.js b/assets/pages/scripts/form-fileupload.min.js deleted file mode 100755 index 552da23..0000000 --- a/assets/pages/scripts/form-fileupload.min.js +++ /dev/null @@ -1 +0,0 @@ -var FormFileUpload=function(){return{init:function(){$("#fileupload").fileupload({disableImageResize:!1,autoUpload:!1,disableImageResize:/Android(?!.*Chrome)|Opera/.test(window.navigator.userAgent),maxFileSize:5e6,acceptFileTypes:/(\.|\/)(gif|jpe?g|png)$/i}),$("#fileupload").fileupload("option","redirect",window.location.href.replace(/\/[^\/]*$/,"/cors/result.html?%s")),$.support.cors&&$.ajax({type:"HEAD"}).fail(function(){$('
    ').text("Upload server currently unavailable - "+new Date).appendTo("#fileupload")}),$("#fileupload").addClass("fileupload-processing"),$.ajax({url:$("#fileupload").attr("action"),dataType:"json",context:$("#fileupload")[0]}).always(function(){$(this).removeClass("fileupload-processing")}).done(function(e){$(this).fileupload("option","done").call(this,$.Event("done"),{result:e})})}}}();jQuery(document).ready(function(){FormFileUpload.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/form-icheck.js b/assets/pages/scripts/form-icheck.js deleted file mode 100755 index dfea5b2..0000000 --- a/assets/pages/scripts/form-icheck.js +++ /dev/null @@ -1,59 +0,0 @@ -var FormiCheck = function () { - return { - //main function to initiate the module - init: function () { - - $('.icheck-colors li').click(function() { - var self = $(this); - - if (!self.hasClass('active')) { - self.siblings().removeClass('active'); - - var skin = self.closest('.skin'), - color = self.attr('class') ? '-' + self.attr('class') : '', - colorTmp = skin.data('color') ? '-' + skin.data('color') : '-grey', - colorTmp = (colorTmp === '-black' ? '' : colorTmp); - - checkbox_default = 'icheckbox_minimal', - radio_default = 'iradio_minimal', - checkbox = 'icheckbox_minimal' + colorTmp, - radio = 'iradio_minimal' + colorTmp; - - if (skin.hasClass('skin-square')) { - checkbox_default = 'icheckbox_square'; - radio_default = 'iradio_square'; - checkbox = 'icheckbox_square' + colorTmp; - radio = 'iradio_square' + colorTmp; - }; - - if (skin.hasClass('skin-flat')) { - checkbox_default = 'icheckbox_flat'; - radio_default = 'iradio_flat'; - checkbox = 'icheckbox_flat' + colorTmp; - radio = 'iradio_flat' + colorTmp; - }; - - if (skin.hasClass('skin-line')) { - checkbox_default = 'icheckbox_line'; - radio_default = 'iradio_line'; - checkbox = 'icheckbox_line' + colorTmp; - radio = 'iradio_line' + colorTmp; - }; - - skin.find('.icheck').each(function() { - var element = $(this).hasClass('state') ? $(this) : $(this).parent(); - var element_class = element.attr('class').replace(checkbox, checkbox_default + color).replace(radio, radio_default + color); - element.attr('class', element_class); - }); - - skin.data('color', self.attr('class') ? self.attr('class') : 'black'); - self.addClass('active'); - }; - }); - } - }; -}(); - -jQuery(document).ready(function() { - FormiCheck.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/form-icheck.min.js b/assets/pages/scripts/form-icheck.min.js deleted file mode 100755 index 0b62bcc..0000000 --- a/assets/pages/scripts/form-icheck.min.js +++ /dev/null @@ -1 +0,0 @@ -var FormiCheck=function(){return{init:function(){$(".icheck-colors li").click(function(){var a=$(this);if(!a.hasClass("active")){a.siblings().removeClass("active");var i=a.closest(".skin"),c=a.attr("class")?"-"+a.attr("class"):"",e=i.data("color")?"-"+i.data("color"):"-grey",e="-black"===e?"":e;checkbox_default="icheckbox_minimal",radio_default="iradio_minimal",checkbox="icheckbox_minimal"+e,radio="iradio_minimal"+e,i.hasClass("skin-square")&&(checkbox_default="icheckbox_square",radio_default="iradio_square",checkbox="icheckbox_square"+e,radio="iradio_square"+e),i.hasClass("skin-flat")&&(checkbox_default="icheckbox_flat",radio_default="iradio_flat",checkbox="icheckbox_flat"+e,radio="iradio_flat"+e),i.hasClass("skin-line")&&(checkbox_default="icheckbox_line",radio_default="iradio_line",checkbox="icheckbox_line"+e,radio="iradio_line"+e),i.find(".icheck").each(function(){var a=$(this).hasClass("state")?$(this):$(this).parent(),i=a.attr("class").replace(checkbox,checkbox_default+c).replace(radio,radio_default+c);a.attr("class",i)}),i.data("color",a.attr("class")?a.attr("class"):"black"),a.addClass("active")}})}}}();jQuery(document).ready(function(){FormiCheck.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/form-image-crop.js b/assets/pages/scripts/form-image-crop.js deleted file mode 100755 index e6e7f34..0000000 --- a/assets/pages/scripts/form-image-crop.js +++ /dev/null @@ -1,531 +0,0 @@ -var FormImageCrop = function () { - - var demo1 = function() { - $('#demo1').Jcrop(); - } - - var demo2 = function() { - var jcrop_api; - - $('#demo2').Jcrop({ - onChange: showCoords, - onSelect: showCoords, - onRelease: clearCoords - },function(){ - jcrop_api = this; - }); - - $('#coords').on('change','input',function(e){ - var x1 = $('#x1').val(), - x2 = $('#x2').val(), - y1 = $('#y1').val(), - y2 = $('#y2').val(); - jcrop_api.setSelect([x1,y1,x2,y2]); - }); - - // Simple event handler, called from onChange and onSelect - // event handlers, as per the Jcrop invocation above - function showCoords(c) - { - $('#x1').val(c.x); - $('#y1').val(c.y); - $('#x2').val(c.x2); - $('#y2').val(c.y2); - $('#w').val(c.w); - $('#h').val(c.h); - }; - - function clearCoords() - { - $('#coords input').val(''); - }; - } - - var demo3 = function() { - // Create variables (in this scope) to hold the API and image size - var jcrop_api, - boundx, - boundy, - // Grab some information about the preview pane - $preview = $('#preview-pane'), - $pcnt = $('#preview-pane .preview-container'), - $pimg = $('#preview-pane .preview-container img'), - - xsize = $pcnt.width(), - ysize = $pcnt.height(); - - console.log('init',[xsize,ysize]); - - $('#demo3').Jcrop({ - onChange: updatePreview, - onSelect: updatePreview, - aspectRatio: xsize / ysize - },function(){ - // Use the API to get the real image size - var bounds = this.getBounds(); - boundx = bounds[0]; - boundy = bounds[1]; - // Store the API in the jcrop_api variable - jcrop_api = this; - // Move the preview into the jcrop container for css positioning - $preview.appendTo(jcrop_api.ui.holder); - }); - - function updatePreview(c) - { - if (parseInt(c.w) > 0) - { - var rx = xsize / c.w; - var ry = ysize / c.h; - - $pimg.css({ - width: Math.round(rx * boundx) + 'px', - height: Math.round(ry * boundy) + 'px', - marginLeft: '-' + Math.round(rx * c.x) + 'px', - marginTop: '-' + Math.round(ry * c.y) + 'px' - }); - } - }; - } - - var demo4 = function() { - var jcrop_api; - - $('#demo4').Jcrop({ - bgFade: true, - bgOpacity: .2, - setSelect: [ 60, 70, 540, 330 ] - },function(){ - jcrop_api = this; - }); - - $('#fadetog').change(function(){ - jcrop_api.setOptions({ - bgFade: this.checked - }); - }).attr('checked', true); - App.updateUniform('#fadetog'); - - $('#shadetog').change(function(){ - if (this.checked) $('#shadetxt').slideDown(); - else $('#shadetxt').slideUp(); - jcrop_api.setOptions({ - shade: this.checked - }); - }).attr('checked', false); - - // Define page sections - var sections = { - bgc_buttons: 'Change bgColor', - bgo_buttons: 'Change bgOpacity', - anim_buttons: 'Animate Selection' - }; - // Define animation buttons - var ac = { - anim1: [217,122,382,284], - anim2: [20,20,580,380], - anim3: [24,24,176,376], - anim4: [347,165,550,355], - anim5: [136,55,472,183] - }; - // Define bgOpacity buttons - var bgo = { - Low: .2, - Mid: .5, - High: .8, - Full: 1 - }; - // Define bgColor buttons - var bgc = { - R: '#900', - B: '#4BB6F0', - Y: '#F0B207', - G: '#46B81C', - W: 'white', - K: 'black' - }; - // Create fieldset targets for buttons - for(i in sections) - insertSection(i,sections[i]); - - function create_btn(c) { - var $o = $('', - '', - '
    ', - '', - '', - '
    ' - ].join(''); - - $(tmpl).modal(); - }); - - //ajax demo: - var $modal = $('#ajax-modal'); - - $('#ajax-demo').on('click', function(){ - // create the backdrop and wait for next modal to be triggered - $('body').modalmanager('loading'); - var el = $(this); - - setTimeout(function(){ - $modal.load(el.attr('data-url'), '', function(){ - $modal.modal(); - }); - }, 1000); - }); - - $modal.on('click', '.update', function(){ - $modal.modal('loading'); - setTimeout(function(){ - $modal - .modal('loading') - .find('.modal-body') - .prepend('
    ' + - 'Updated!' + - '
    '); - }, 1000); - }); - } - - }; - -}(); - -jQuery(document).ready(function() { - UIExtendedModals.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-extended-modals.min.js b/assets/pages/scripts/ui-extended-modals.min.js deleted file mode 100755 index b185068..0000000 --- a/assets/pages/scripts/ui-extended-modals.min.js +++ /dev/null @@ -1 +0,0 @@ -var UIExtendedModals=function(){return{init:function(){$.fn.modal.defaults.spinner=$.fn.modalmanager.defaults.spinner='
    ',$.fn.modalmanager.defaults.resize=!0,$(".dynamic .demo").click(function(){var a=['"].join("");$(a).modal()});var a=$("#ajax-modal");$("#ajax-demo").on("click",function(){$("body").modalmanager("loading");var d=$(this);setTimeout(function(){a.load(d.attr("data-url"),"",function(){a.modal()})},1e3)}),a.on("click",".update",function(){a.modal("loading"),setTimeout(function(){a.modal("loading").find(".modal-body").prepend('
    Updated!
    ')},1e3)})}}}();jQuery(document).ready(function(){UIExtendedModals.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-general.js b/assets/pages/scripts/ui-general.js deleted file mode 100755 index 5c42a50..0000000 --- a/assets/pages/scripts/ui-general.js +++ /dev/null @@ -1,72 +0,0 @@ -var UIGeneral = function () { - - var handlePulsate = function () { - if (!jQuery().pulsate) { - return; - } - - if (App.isIE8() == true) { - return; // pulsate plugin does not support IE8 and below - } - - if (jQuery().pulsate) { - jQuery('#pulsate-regular').pulsate({ - color: "#bf1c56" - }); - - jQuery('#pulsate-once').click(function () { - $('#pulsate-once-target').pulsate({ - color: "#399bc3", - repeat: false - }); - }); - - jQuery('#pulsate-crazy').click(function () { - $('#pulsate-crazy-target').pulsate({ - color: "#fdbe41", - reach: 50, - repeat: 10, - speed: 100, - glow: true - }); - }); - } - } - - var handleDynamicPagination = function() { - $('#dynamic_pager_demo1').bootpag({ - paginationClass: 'pagination', - next: '', - prev: '', - total: 6, - page: 1, - }).on("page", function(event, num){ - $("#dynamic_pager_content1").html("Page " + num + " content here"); // or some ajax content loading... - }); - - $('#dynamic_pager_demo2').bootpag({ - paginationClass: 'pagination pagination-sm', - next: '', - prev: '', - total: 24, - page: 1, - maxVisible: 6 - }).on('page', function(event, num){ - $("#dynamic_pager_content2").html("Page " + num + " content here"); // or some ajax content loading... - }); - } - - return { - //main function to initiate the module - init: function () { - handlePulsate(); - handleDynamicPagination(); - } - - }; - -}(); - -jQuery(document).ready(function() { - UIGeneral.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-general.min.js b/assets/pages/scripts/ui-general.min.js deleted file mode 100755 index 60969c7..0000000 --- a/assets/pages/scripts/ui-general.min.js +++ /dev/null @@ -1 +0,0 @@ -var UIGeneral=function(){var a=function(){jQuery().pulsate&&1!=App.isIE8()&&jQuery().pulsate&&(jQuery("#pulsate-regular").pulsate({color:"#bf1c56"}),jQuery("#pulsate-once").click(function(){$("#pulsate-once-target").pulsate({color:"#399bc3",repeat:!1})}),jQuery("#pulsate-crazy").click(function(){$("#pulsate-crazy-target").pulsate({color:"#fdbe41",reach:50,repeat:10,speed:100,glow:!0})}))},e=function(){$("#dynamic_pager_demo1").bootpag({paginationClass:"pagination",next:'',prev:'',total:6,page:1}).on("page",function(a,e){$("#dynamic_pager_content1").html("Page "+e+" content here")}),$("#dynamic_pager_demo2").bootpag({paginationClass:"pagination pagination-sm",next:'',prev:'',total:24,page:1,maxVisible:6}).on("page",function(a,e){$("#dynamic_pager_content2").html("Page "+e+" content here")})};return{init:function(){a(),e()}}}();jQuery(document).ready(function(){UIGeneral.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-idletimeout.js b/assets/pages/scripts/ui-idletimeout.js deleted file mode 100755 index 8c9bfad..0000000 --- a/assets/pages/scripts/ui-idletimeout.js +++ /dev/null @@ -1,49 +0,0 @@ -var UIIdleTimeout = function () { - - return { - - //main function to initiate the module - init: function () { - - // cache a reference to the countdown element so we don't have to query the DOM for it on each ping. - var $countdown; - - $('body').append(''); - - // start the idle timer plugin - $.idleTimeout('#idle-timeout-dialog', '.modal-content button:last', { - idleAfter: 5, // 5 seconds - timeout: 30000, //30 seconds to timeout - pollingInterval: 5, // 5 seconds - keepAliveURL: '../demo/idletimeout_keepalive.php', - serverResponseEquals: 'OK', - onTimeout: function(){ - window.location = "?p=page_user_lock_1"; - }, - onIdle: function(){ - $('#idle-timeout-dialog').modal('show'); - $countdown = $('#idle-timeout-counter'); - - $('#idle-timeout-dialog-keepalive').on('click', function () { - $('#idle-timeout-dialog').modal('hide'); - }); - - $('#idle-timeout-dialog-logout').on('click', function () { - $('#idle-timeout-dialog').modal('hide'); - $.idleTimeout.options.onTimeout.call(this); - }); - }, - onCountdown: function(counter){ - $countdown.html(counter); // update the counter - } - }); - - } - - }; - -}(); - -jQuery(document).ready(function() { - UIIdleTimeout.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-idletimeout.min.js b/assets/pages/scripts/ui-idletimeout.min.js deleted file mode 100755 index 4786e88..0000000 --- a/assets/pages/scripts/ui-idletimeout.min.js +++ /dev/null @@ -1 +0,0 @@ -var UIIdleTimeout=function(){return{init:function(){var o;$("body").append(""),$.idleTimeout("#idle-timeout-dialog",".modal-content button:last",{idleAfter:5,timeout:3e4,pollingInterval:5,keepAliveURL:"../demo/idletimeout_keepalive.php",serverResponseEquals:"OK",onTimeout:function(){window.location="?p=page_user_lock_1"},onIdle:function(){$("#idle-timeout-dialog").modal("show"),o=$("#idle-timeout-counter"),$("#idle-timeout-dialog-keepalive").on("click",function(){$("#idle-timeout-dialog").modal("hide")}),$("#idle-timeout-dialog-logout").on("click",function(){$("#idle-timeout-dialog").modal("hide"),$.idleTimeout.options.onTimeout.call(this)})},onCountdown:function(e){o.html(e)}})}}}();jQuery(document).ready(function(){UIIdleTimeout.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-modals.js b/assets/pages/scripts/ui-modals.js deleted file mode 100755 index 009a944..0000000 --- a/assets/pages/scripts/ui-modals.js +++ /dev/null @@ -1,21 +0,0 @@ -var UIModals = function () { - - var handleModals = function () { - $("#draggable").draggable({ - handle: ".modal-header" - }); - } - - return { - //main function to initiate the module - init: function () { - handleModals(); - } - - }; - -}(); - -jQuery(document).ready(function() { - UIModals.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-modals.min.js b/assets/pages/scripts/ui-modals.min.js deleted file mode 100755 index 2eb88d3..0000000 --- a/assets/pages/scripts/ui-modals.min.js +++ /dev/null @@ -1 +0,0 @@ -var UIModals=function(){var n=function(){$("#draggable").draggable({handle:".modal-header"})};return{init:function(){n()}}}();jQuery(document).ready(function(){UIModals.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-nestable.js b/assets/pages/scripts/ui-nestable.js deleted file mode 100755 index 4a8b551..0000000 --- a/assets/pages/scripts/ui-nestable.js +++ /dev/null @@ -1,55 +0,0 @@ -var UINestable = function () { - - var updateOutput = function (e) { - var list = e.length ? e : $(e.target), - output = list.data('output'); - if (window.JSON) { - output.val(window.JSON.stringify(list.nestable('serialize'))); //, null, 2)); - } else { - output.val('JSON browser support required for this demo.'); - } - }; - - - return { - //main function to initiate the module - init: function () { - - // activate Nestable for list 1 - $('#nestable_list_1').nestable({ - group: 1 - }) - .on('change', updateOutput); - - // activate Nestable for list 2 - $('#nestable_list_2').nestable({ - group: 1 - }) - .on('change', updateOutput); - - // output initial serialised data - updateOutput($('#nestable_list_1').data('output', $('#nestable_list_1_output'))); - updateOutput($('#nestable_list_2').data('output', $('#nestable_list_2_output'))); - - $('#nestable_list_menu').on('click', function (e) { - var target = $(e.target), - action = target.data('action'); - if (action === 'expand-all') { - $('.dd').nestable('expandAll'); - } - if (action === 'collapse-all') { - $('.dd').nestable('collapseAll'); - } - }); - - $('#nestable_list_3').nestable(); - - } - - }; - -}(); - -jQuery(document).ready(function() { - UINestable.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-nestable.min.js b/assets/pages/scripts/ui-nestable.min.js deleted file mode 100755 index 53bd391..0000000 --- a/assets/pages/scripts/ui-nestable.min.js +++ /dev/null @@ -1 +0,0 @@ -var UINestable=function(){var t=function(t){var e=t.length?t:$(t.target),a=e.data("output");window.JSON?a.val(window.JSON.stringify(e.nestable("serialize"))):a.val("JSON browser support required for this demo.")};return{init:function(){$("#nestable_list_1").nestable({group:1}).on("change",t),$("#nestable_list_2").nestable({group:1}).on("change",t),t($("#nestable_list_1").data("output",$("#nestable_list_1_output"))),t($("#nestable_list_2").data("output",$("#nestable_list_2_output"))),$("#nestable_list_menu").on("click",function(t){var e=$(t.target),a=e.data("action");"expand-all"===a&&$(".dd").nestable("expandAll"),"collapse-all"===a&&$(".dd").nestable("collapseAll")}),$("#nestable_list_3").nestable()}}}();jQuery(document).ready(function(){UINestable.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-notific8.js b/assets/pages/scripts/ui-notific8.js deleted file mode 100755 index dbbb88f..0000000 --- a/assets/pages/scripts/ui-notific8.js +++ /dev/null @@ -1,44 +0,0 @@ -var UINotific8 = function () { - - return { - //main function to initiate the module - init: function () { - - - $('#notific8_show').click(function(event) { - var settings = { - theme: $('#notific8_theme').val(), - sticky: $('#notific8_sticky').is(':checked'), - horizontalEdge: $('#notific8_pos_hor').val(), - verticalEdge: $('#notific8_pos_ver').val() - }, - $button = $(this); - - if ($.trim($('#notific8_heading').val()) != '') { - settings.heading = $.trim($('#notific8_heading').val()); - } - - if (!settings.sticky) { - settings.life = $('#notific8_life').val(); - } - - $.notific8('zindex', 11500); - $.notific8($.trim($('#notific8_text').val()), settings); - - $button.attr('disabled', 'disabled'); - - setTimeout(function() { - $button.removeAttr('disabled'); - }, 1000); - - }); - - } - - }; - -}(); - -jQuery(document).ready(function() { - UINotific8.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-notific8.min.js b/assets/pages/scripts/ui-notific8.min.js deleted file mode 100755 index c905c0e..0000000 --- a/assets/pages/scripts/ui-notific8.min.js +++ /dev/null @@ -1 +0,0 @@ -var UINotific8=function(){return{init:function(){$("#notific8_show").click(function(i){var t={theme:$("#notific8_theme").val(),sticky:$("#notific8_sticky").is(":checked"),horizontalEdge:$("#notific8_pos_hor").val(),verticalEdge:$("#notific8_pos_ver").val()},n=$(this);""!=$.trim($("#notific8_heading").val())&&(t.heading=$.trim($("#notific8_heading").val())),t.sticky||(t.life=$("#notific8_life").val()),$.notific8("zindex",11500),$.notific8($.trim($("#notific8_text").val()),t),n.attr("disabled","disabled"),setTimeout(function(){n.removeAttr("disabled")},1e3)})}}}();jQuery(document).ready(function(){UINotific8.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-session-timeout.js b/assets/pages/scripts/ui-session-timeout.js deleted file mode 100755 index aa0fc90..0000000 --- a/assets/pages/scripts/ui-session-timeout.js +++ /dev/null @@ -1,28 +0,0 @@ -var SessionTimeout = function () { - - var handlesessionTimeout = function () { - $.sessionTimeout({ - title: 'Session Timeout Notification', - message: 'Your session is about to expire.', - keepAliveUrl: '../demo/timeout-keep-alive.php', - redirUrl: 'page_user_lock_1.html', - logoutUrl: 'page_user_login_1.html', - warnAfter: 5000, //warn after 5 seconds - redirAfter: 10000, //redirect after 10 secons, - countdownMessage: 'Redirecting in {timer} seconds.', - countdownBar: true - }); - } - - return { - //main function to initiate the module - init: function () { - handlesessionTimeout(); - } - }; - -}(); - -jQuery(document).ready(function() { - SessionTimeout.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-session-timeout.min.js b/assets/pages/scripts/ui-session-timeout.min.js deleted file mode 100755 index b602874..0000000 --- a/assets/pages/scripts/ui-session-timeout.min.js +++ /dev/null @@ -1 +0,0 @@ -var SessionTimeout=function(){var e=function(){$.sessionTimeout({title:"Session Timeout Notification",message:"Your session is about to expire.",keepAliveUrl:"../demo/timeout-keep-alive.php",redirUrl:"page_user_lock_1.html",logoutUrl:"page_user_login_1.html",warnAfter:5e3,redirAfter:1e4,countdownMessage:"Redirecting in {timer} seconds.",countdownBar:!0})};return{init:function(){e()}}}();jQuery(document).ready(function(){SessionTimeout.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-toastr.js b/assets/pages/scripts/ui-toastr.js deleted file mode 100755 index 351334e..0000000 --- a/assets/pages/scripts/ui-toastr.js +++ /dev/null @@ -1,121 +0,0 @@ -var UIToastr = function () { - - return { - //main function to initiate the module - init: function () { - - var i = -1, - toastCount = 0, - $toastlast, - getMessage = function () { - var msgs = ['Hello, some notification sample goes here', - '
    ', - 'Did you like this one ? :)', - 'Totally Awesome!!!', - 'Yeah, this is the Metronic!', - 'Explore the power of App. Purchase it now!' - ]; - i++; - if (i === msgs.length) { - i = 0; - } - - return msgs[i]; - }; - - $('#showtoast').click(function () { - var shortCutFunction = $("#toastTypeGroup input:checked").val(); - var msg = $('#message').val(); - var title = $('#title').val() || ''; - var $showDuration = $('#showDuration'); - var $hideDuration = $('#hideDuration'); - var $timeOut = $('#timeOut'); - var $extendedTimeOut = $('#extendedTimeOut'); - var $showEasing = $('#showEasing'); - var $hideEasing = $('#hideEasing'); - var $showMethod = $('#showMethod'); - var $hideMethod = $('#hideMethod'); - var toastIndex = toastCount++; - - toastr.options = { - closeButton: $('#closeButton').prop('checked'), - debug: $('#debugInfo').prop('checked'), - positionClass: $('#positionGroup input:checked').val() || 'toast-top-right', - onclick: null - }; - - if ($('#addBehaviorOnToastClick').prop('checked')) { - toastr.options.onclick = function () { - alert('You can perform some custom action after a toast goes away'); - }; - } - - if ($showDuration.val().length) { - toastr.options.showDuration = $showDuration.val(); - } - - if ($hideDuration.val().length) { - toastr.options.hideDuration = $hideDuration.val(); - } - - if ($timeOut.val().length) { - toastr.options.timeOut = $timeOut.val(); - } - - if ($extendedTimeOut.val().length) { - toastr.options.extendedTimeOut = $extendedTimeOut.val(); - } - - if ($showEasing.val().length) { - toastr.options.showEasing = $showEasing.val(); - } - - if ($hideEasing.val().length) { - toastr.options.hideEasing = $hideEasing.val(); - } - - if ($showMethod.val().length) { - toastr.options.showMethod = $showMethod.val(); - } - - if ($hideMethod.val().length) { - toastr.options.hideMethod = $hideMethod.val(); - } - - if (!msg) { - msg = getMessage(); - } - - $("#toastrOptions").text("Command: toastr[" + shortCutFunction + "](\"" + msg + (title ? "\", \"" + title : '') + "\")\n\ntoastr.options = " + JSON.stringify(toastr.options, null, 2)); - - var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists - $toastlast = $toast; - if ($toast.find('#okBtn').length) { - $toast.delegate('#okBtn', 'click', function () { - alert('you clicked me. i was toast #' + toastIndex + '. goodbye!'); - $toast.remove(); - }); - } - if ($toast.find('#surpriseBtn').length) { - $toast.delegate('#surpriseBtn', 'click', function () { - alert('Surprise! you clicked me. i was toast #' + toastIndex + '. You could perform an action here.'); - }); - } - - $('#clearlasttoast').click(function () { - toastr.clear($toastlast); - }); - }); - $('#cleartoasts').click(function () { - toastr.clear(); - }); - - } - - }; - -}(); - -jQuery(document).ready(function() { - UIToastr.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-toastr.min.js b/assets/pages/scripts/ui-toastr.min.js deleted file mode 100755 index 88f1dd1..0000000 --- a/assets/pages/scripts/ui-toastr.min.js +++ /dev/null @@ -1 +0,0 @@ -var UIToastr=function(){return{init:function(){var t,o=-1,e=0,n=function(){var t=["Hello, some notification sample goes here",'
    ',"Did you like this one ? :)","Totally Awesome!!!","Yeah, this is the Metronic!","Explore the power of App. Purchase it now!"];return o++,o===t.length&&(o=0),t[o]};$("#showtoast").click(function(){var o=$("#toastTypeGroup input:checked").val(),a=$("#message").val(),i=$("#title").val()||"",s=$("#showDuration"),r=$("#hideDuration"),l=$("#timeOut"),c=$("#extendedTimeOut"),u=$("#showEasing"),h=$("#hideEasing"),p=$("#showMethod"),d=$("#hideMethod"),v=e++;toastr.options={closeButton:$("#closeButton").prop("checked"),debug:$("#debugInfo").prop("checked"),positionClass:$("#positionGroup input:checked").val()||"toast-top-right",onclick:null},$("#addBehaviorOnToastClick").prop("checked")&&(toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}),s.val().length&&(toastr.options.showDuration=s.val()),r.val().length&&(toastr.options.hideDuration=r.val()),l.val().length&&(toastr.options.timeOut=l.val()),c.val().length&&(toastr.options.extendedTimeOut=c.val()),u.val().length&&(toastr.options.showEasing=u.val()),h.val().length&&(toastr.options.hideEasing=h.val()),p.val().length&&(toastr.options.showMethod=p.val()),d.val().length&&(toastr.options.hideMethod=d.val()),a||(a=n()),$("#toastrOptions").text("Command: toastr["+o+']("'+a+(i?'", "'+i:"")+'")\n\ntoastr.options = '+JSON.stringify(toastr.options,null,2));var m=toastr[o](a,i);t=m,m.find("#okBtn").length&&m.delegate("#okBtn","click",function(){alert("you clicked me. i was toast #"+v+". goodbye!"),m.remove()}),m.find("#surpriseBtn").length&&m.delegate("#surpriseBtn","click",function(){alert("Surprise! you clicked me. i was toast #"+v+". You could perform an action here.")}),$("#clearlasttoast").click(function(){toastr.clear(t)})}),$("#cleartoasts").click(function(){toastr.clear()})}}}();jQuery(document).ready(function(){UIToastr.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/ui-tree.js b/assets/pages/scripts/ui-tree.js deleted file mode 100755 index 330c419..0000000 --- a/assets/pages/scripts/ui-tree.js +++ /dev/null @@ -1,202 +0,0 @@ -var UITree = function () { - - var handleSample1 = function () { - - $('#tree_1').jstree({ - "core" : { - "themes" : { - "responsive": false - } - }, - "types" : { - "default" : { - "icon" : "fa fa-folder icon-state-warning icon-lg" - }, - "file" : { - "icon" : "fa fa-file icon-state-warning icon-lg" - } - }, - "plugins": ["types"] - }); - - // handle link clicks in tree nodes(support target="_blank" as well) - $('#tree_1').on('select_node.jstree', function(e,data) { - var link = $('#' + data.selected).find('a'); - if (link.attr("href") != "#" && link.attr("href") != "javascript:;" && link.attr("href") != "") { - if (link.attr("target") == "_blank") { - link.attr("href").target = "_blank"; - } - document.location.href = link.attr("href"); - return false; - } - }); - } - - var handleSample2 = function () { - $('#tree_2').jstree({ - 'plugins': ["wholerow", "checkbox", "types"], - 'core': { - "themes" : { - "responsive": false - }, - 'data': [{ - "text": "Same but with checkboxes", - "children": [{ - "text": "initially selected", - "state": { - "selected": true - } - }, { - "text": "custom icon", - "icon": "fa fa-warning icon-state-danger" - }, { - "text": "initially open", - "icon" : "fa fa-folder icon-state-default", - "state": { - "opened": true - }, - "children": ["Another node"] - }, { - "text": "custom icon", - "icon": "fa fa-warning icon-state-warning" - }, { - "text": "disabled node", - "icon": "fa fa-check icon-state-success", - "state": { - "disabled": true - } - }] - }, - "And wholerow selection" - ] - }, - "types" : { - "default" : { - "icon" : "fa fa-folder icon-state-warning icon-lg" - }, - "file" : { - "icon" : "fa fa-file icon-state-warning icon-lg" - } - } - }); - } - - var contextualMenuSample = function() { - - $("#tree_3").jstree({ - "core" : { - "themes" : { - "responsive": false - }, - // so that create works - "check_callback" : true, - 'data': [{ - "text": "Parent Node", - "children": [{ - "text": "Initially selected", - "state": { - "selected": true - } - }, { - "text": "Custom Icon", - "icon": "fa fa-warning icon-state-danger" - }, { - "text": "Initially open", - "icon" : "fa fa-folder icon-state-success", - "state": { - "opened": true - }, - "children": [ - {"text": "Another node", "icon" : "fa fa-file icon-state-warning"} - ] - }, { - "text": "Another Custom Icon", - "icon": "fa fa-warning icon-state-warning" - }, { - "text": "Disabled Node", - "icon": "fa fa-check icon-state-success", - "state": { - "disabled": true - } - }, { - "text": "Sub Nodes", - "icon": "fa fa-folder icon-state-danger", - "children": [ - {"text": "Item 1", "icon" : "fa fa-file icon-state-warning"}, - {"text": "Item 2", "icon" : "fa fa-file icon-state-success"}, - {"text": "Item 3", "icon" : "fa fa-file icon-state-default"}, - {"text": "Item 4", "icon" : "fa fa-file icon-state-danger"}, - {"text": "Item 5", "icon" : "fa fa-file icon-state-info"} - ] - }] - }, - "Another Node" - ] - }, - "types" : { - "default" : { - "icon" : "fa fa-folder icon-state-warning icon-lg" - }, - "file" : { - "icon" : "fa fa-file icon-state-warning icon-lg" - } - }, - "state" : { "key" : "demo2" }, - "plugins" : [ "contextmenu", "dnd", "state", "types" ] - }); - - } - - var ajaxTreeSample = function() { - - $("#tree_4").jstree({ - "core" : { - "themes" : { - "responsive": false - }, - // so that create works - "check_callback" : true, - 'data' : { - 'url' : function (node) { - return '../demo/jstree_ajax_data.php'; - }, - 'data' : function (node) { - return { 'parent' : node.id }; - } - } - }, - "types" : { - "default" : { - "icon" : "fa fa-folder icon-state-warning icon-lg" - }, - "file" : { - "icon" : "fa fa-file icon-state-warning icon-lg" - } - }, - "state" : { "key" : "demo3" }, - "plugins" : [ "dnd", "state", "types" ] - }); - - } - - - return { - //main function to initiate the module - init: function () { - - handleSample1(); - handleSample2(); - contextualMenuSample(); - ajaxTreeSample(); - - } - - }; - -}(); - -if (App.isAngularJsApp() === false) { - jQuery(document).ready(function() { - UITree.init(); - }); -} \ No newline at end of file diff --git a/assets/pages/scripts/ui-tree.min.js b/assets/pages/scripts/ui-tree.min.js deleted file mode 100755 index 5302f75..0000000 --- a/assets/pages/scripts/ui-tree.min.js +++ /dev/null @@ -1 +0,0 @@ -var UITree=function(){var e=function(){$("#tree_1").jstree({core:{themes:{responsive:!1}},types:{"default":{icon:"fa fa-folder icon-state-warning icon-lg"},file:{icon:"fa fa-file icon-state-warning icon-lg"}},plugins:["types"]}),$("#tree_1").on("select_node.jstree",function(e,t){var n=$("#"+t.selected).find("a");return"#"!=n.attr("href")&&"javascript:;"!=n.attr("href")&&""!=n.attr("href")?("_blank"==n.attr("target")&&(n.attr("href").target="_blank"),document.location.href=n.attr("href"),!1):void 0})},t=function(){$("#tree_2").jstree({plugins:["wholerow","checkbox","types"],core:{themes:{responsive:!1},data:[{text:"Same but with checkboxes",children:[{text:"initially selected",state:{selected:!0}},{text:"custom icon",icon:"fa fa-warning icon-state-danger"},{text:"initially open",icon:"fa fa-folder icon-state-default",state:{opened:!0},children:["Another node"]},{text:"custom icon",icon:"fa fa-warning icon-state-warning"},{text:"disabled node",icon:"fa fa-check icon-state-success",state:{disabled:!0}}]},"And wholerow selection"]},types:{"default":{icon:"fa fa-folder icon-state-warning icon-lg"},file:{icon:"fa fa-file icon-state-warning icon-lg"}}})},n=function(){$("#tree_3").jstree({core:{themes:{responsive:!1},check_callback:!0,data:[{text:"Parent Node",children:[{text:"Initially selected",state:{selected:!0}},{text:"Custom Icon",icon:"fa fa-warning icon-state-danger"},{text:"Initially open",icon:"fa fa-folder icon-state-success",state:{opened:!0},children:[{text:"Another node",icon:"fa fa-file icon-state-warning"}]},{text:"Another Custom Icon",icon:"fa fa-warning icon-state-warning"},{text:"Disabled Node",icon:"fa fa-check icon-state-success",state:{disabled:!0}},{text:"Sub Nodes",icon:"fa fa-folder icon-state-danger",children:[{text:"Item 1",icon:"fa fa-file icon-state-warning"},{text:"Item 2",icon:"fa fa-file icon-state-success"},{text:"Item 3",icon:"fa fa-file icon-state-default"},{text:"Item 4",icon:"fa fa-file icon-state-danger"},{text:"Item 5",icon:"fa fa-file icon-state-info"}]}]},"Another Node"]},types:{"default":{icon:"fa fa-folder icon-state-warning icon-lg"},file:{icon:"fa fa-file icon-state-warning icon-lg"}},state:{key:"demo2"},plugins:["contextmenu","dnd","state","types"]})},a=function(){$("#tree_4").jstree({core:{themes:{responsive:!1},check_callback:!0,data:{url:function(e){return"../demo/jstree_ajax_data.php"},data:function(e){return{parent:e.id}}}},types:{"default":{icon:"fa fa-folder icon-state-warning icon-lg"},file:{icon:"fa fa-file icon-state-warning icon-lg"}},state:{key:"demo3"},plugins:["dnd","state","types"]})};return{init:function(){e(),t(),n(),a()}}}();App.isAngularJsApp()===!1&&jQuery(document).ready(function(){UITree.init()}); \ No newline at end of file diff --git a/assets/pages/scripts/widgets.js b/assets/pages/scripts/widgets.js deleted file mode 100755 index 20693b7..0000000 --- a/assets/pages/scripts/widgets.js +++ /dev/null @@ -1,79 +0,0 @@ -var Widgets = function () { - - var handleMapplic = function () { - $('#mapplic').mapplic({ - source: '../../assets/global/plugins/mapplic/world.json', - height: 265, - animate: false, - sidebar: false, - minimap: false, - locations: true, - deeplinking: true, - fullscreen: false, - hovertip: true, - zoombuttons: false, - clearbutton: false, - developer: false, - maxscale: 2, - skin: 'mapplic-dark', - zoom: true - }); - } - - var handleSparklineChart = function () { - $("#widget_sparkline_bar").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#4db3a4', - negBarColor: '#e02222' - }); - $("#widget_sparkline_bar2").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#f36a5a', - negBarColor: '#e02222' - }); - $("#widget_sparkline_bar3").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#5b9bd1', - negBarColor: '#e02222' - }); - $("#widget_sparkline_bar4").sparkline([8, 7, 9, 8.5, 8, 8.2, 8, 8.5, 9, 8, 9], { - type: 'bar', - width: '100', - barWidth: 5, - height: '30', - barColor: '#9a7caf', - negBarColor: '#e02222' - }); - } - - var handleCounter = function () { - $('.counter').counterUp({ - delay: 10, - time: 1000 - }); - } - - return { - - // main function - init: function () { - handleMapplic(); // handle mapplic map - handleSparklineChart(); // handle sparkline chart - handleCounter(); // handle counter - } - - }; -}(); - -jQuery(document).ready(function() { - Widgets.init(); -}); \ No newline at end of file diff --git a/assets/pages/scripts/widgets.min.js b/assets/pages/scripts/widgets.min.js deleted file mode 100755 index 4de9164..0000000 --- a/assets/pages/scripts/widgets.min.js +++ /dev/null @@ -1 +0,0 @@ -var Widgets=function(){var e=function(){$("#mapplic").mapplic({source:"../../assets/global/plugins/mapplic/world.json",height:265,animate:!1,sidebar:!1,minimap:!1,locations:!0,deeplinking:!0,fullscreen:!1,hovertip:!0,zoombuttons:!1,clearbutton:!1,developer:!1,maxscale:2,skin:"mapplic-dark",zoom:!0})},a=function(){$("#widget_sparkline_bar").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#4db3a4",negBarColor:"#e02222"}),$("#widget_sparkline_bar2").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#f36a5a",negBarColor:"#e02222"}),$("#widget_sparkline_bar3").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#5b9bd1",negBarColor:"#e02222"}),$("#widget_sparkline_bar4").sparkline([8,7,9,8.5,8,8.2,8,8.5,9,8,9],{type:"bar",width:"100",barWidth:5,height:"30",barColor:"#9a7caf",negBarColor:"#e02222"})},i=function(){$(".counter").counterUp({delay:10,time:1e3})};return{init:function(){e(),a(),i()}}}();jQuery(document).ready(function(){Widgets.init()}); \ No newline at end of file