push code to git

This commit is contained in:
2022-01-08 10:15:27 +07:00
parent 1639c780b8
commit 305911da99
167 changed files with 24108 additions and 33 deletions

View File

@@ -0,0 +1,35 @@
var BlockUIDemo={init:function(){
$("#m_blockui_1_1").click(function(){
mApp.block("#m_blockui_1_content",{}),
setTimeout(function(){
mApp.unblock("#m_blockui_1_content")
},2e3)
}),
$("#m_blockui_1_2").click(function(){
mApp.block("#m_blockui_1_content",{
overlayColor:"#000000",state:"primary"
}),
setTimeout(function(){
mApp.unblock("#m_blockui_1_content")
},2e3)
}),
$("#m_blockui_1_3").click(function(){
mApp.block("#m_blockui_1_content",{
overlayColor:"#000000",type:"loader",state:"success",size:"lg"
}),
setTimeout(function(){
mApp.unblock("#m_blockui_1_content")
},2e3)
}),
$("#m_blockui_1_4").click(function(){
mApp.block("#m_blockui_1_content",{
overlayColor:"#000000",type:"loader",state:"success",message:"Please wait..."
}),
setTimeout(function(){mApp.unblock("#m_blockui_1_content")},2e3)}),$("#m_blockui_1_5").click(function(){mApp.block("#m_blockui_1_content",{overlayColor:"#000000",type:"loader",state:"primary",message:"Processing..."}),setTimeout(function(){mApp.unblock("#m_blockui_1_content")},2e3)}),$("#m_blockui_2_1").click(function(){mApp.block("#m_blockui_2_portlet",{}),setTimeout(function(){mApp.unblock("#m_blockui_2_portlet")},2e3)}),$("#m_blockui_2_2").click(function(){mApp.block("#m_blockui_2_portlet",{overlayColor:"#000000",state:"primary"}),setTimeout(function(){mApp.unblock("#m_blockui_2_portlet")},2e3)}),$("#m_blockui_2_3").click(function(){mApp.block("#m_blockui_2_portlet",{overlayColor:"#000000",type:"loader",state:"success",size:"lg"}),setTimeout(function(){mApp.unblock("#m_blockui_2_portlet")},2e3)}),$("#m_blockui_2_4").click(function(){mApp.block("#m_blockui_2_portlet",{overlayColor:"#000000",type:"loader",state:"success",message:"Please wait..."}),setTimeout(function(){mApp.unblock("#m_blockui_2_portlet")},2e3)}),$("#m_blockui_2_5").click(function(){mApp.block("#m_blockui_2_portlet",{overlayColor:"#000000",type:"loader",state:"primary",message:"Processing..."}),setTimeout(function(){mApp.unblock("#m_blockui_2_portlet")},2e3)}),
$("#m_blockui_3_1").click(
function(){
mApp.blockPage(),
setTimeout(function(){
mApp.unblockPage()},2e3)
}),
$("#m_blockui_3_2").click(function(){mApp.blockPage({overlayColor:"#000000",state:"primary"}),setTimeout(function(){mApp.unblockPage()},2e3)}),$("#m_blockui_3_3").click(function(){mApp.blockPage({overlayColor:"#000000",type:"loader",state:"success",size:"lg"}),setTimeout(function(){mApp.unblockPage()},2e3)}),$("#m_blockui_3_4").click(function(){mApp.blockPage({overlayColor:"#000000",type:"loader",state:"success",message:"Please wait..."}),setTimeout(function(){mApp.unblockPage()},2e3)}),$("#m_blockui_3_5").click(function(){mApp.blockPage({overlayColor:"#000000",type:"loader",state:"primary",message:"Processing..."}),setTimeout(function(){mApp.unblockPage()},2e3)}),$("#m_blockui_4_1").click(function(){mApp.block("#m_blockui_4_1_modal .modal-content",{}),setTimeout(function(){mApp.unblock("#m_blockui_4_1_modal .modal-content")},2e3)}),$("#m_blockui_4_2").click(function(){mApp.block("#m_blockui_4_2_modal .modal-content",{overlayColor:"#000000",state:"primary"}),setTimeout(function(){mApp.unblock("#m_blockui_4_2_modal .modal-content")},2e3)}),$("#m_blockui_4_3").click(function(){mApp.block("#m_blockui_4_3_modal .modal-content",{overlayColor:"#000000",type:"loader",state:"success",size:"lg"}),setTimeout(function(){mApp.unblock("#m_blockui_4_3_modal .modal-content")},2e3)}),$("#m_blockui_4_4").click(function(){mApp.block("#m_blockui_4_4_modal .modal-content",{overlayColor:"#000000",type:"loader",state:"success",message:"Please wait..."}),setTimeout(function(){mApp.unblock("#m_blockui_4_4_modal .modal-content")},2e3)}),$("#m_blockui_4_5").click(function(){mApp.block("#m_blockui_4_5_modal .modal-content",{overlayColor:"#000000",type:"loader",state:"primary",message:"Processing..."}),setTimeout(function(){mApp.unblock("#m_blockui_4_5_modal .modal-content")},2e3)})}};jQuery(document).ready(function(){BlockUIDemo.init()});

View File

@@ -0,0 +1 @@
var BootstrapNotifyDemo={init:function(){$("[data-switch=true]").bootstrapSwitch(),$("#m_notify_btn").click(function(){var e={message:"New order has been placed"};$("#m_notify_title").prop("checked")&&(e.title="Notification Title"),""!=$("#m_notify_icon").val()&&(e.icon="icon "+$("#m_notify_icon").val()),$("#m_notify_url").prop("checked")&&(e.url="www.keenthemes.com",e.target="_blank");var t=$.notify(e,{type:$("#m_notify_state").val(),allow_dismiss:$("#m_notify_dismiss").prop("checked"),newest_on_top:$("#m_notify_top").prop("checked"),mouse_over:$("#m_notify_pause").prop("checked"),showProgressbar:$("#m_notify_progress").prop("checked"),spacing:$("#m_notify_spacing").val(),timer:$("#m_notify_timer").val(),placement:{from:$("#m_notify_placement_from").val(),align:$("#m_notify_placement_align").val()},offset:{x:$("#m_notify_offset_x").val(),y:$("#m_notify_offset_y").val()},delay:$("#m_notify_delay").val(),z_index:$("#m_notify_zindex").val(),animate:{enter:"animated "+$("#m_notify_animate_enter").val(),exit:"animated "+$("#m_notify_animate_exit").val()}});$("#m_notify_progress").prop("checked")&&(setTimeout(function(){t.update("message","<strong>Saving</strong> Page Data."),t.update("type","primary"),t.update("progress",20)},1e3),setTimeout(function(){t.update("message","<strong>Saving</strong> User Data."),t.update("type","warning"),t.update("progress",40)},2e3),setTimeout(function(){t.update("message","<strong>Saving</strong> Profile Data."),t.update("type","danger"),t.update("progress",65)},3e3),setTimeout(function(){t.update("message","<strong>Checking</strong> for errors."),t.update("type","success"),t.update("progress",100)},4e3))})}};jQuery(document).ready(function(){BootstrapNotifyDemo.init()});

View File

@@ -0,0 +1 @@
var DropdownDemo={init:function(){var e,o,n;e=$("#m_dropdown_api_output"),o=new mDropdown("m_dropdown_api_1"),n=new mDropdown("m_dropdown_api_2"),o.on("afterShow",function(o){e.append("<p>Dropdown 1: afterShow event fired</p>")}),o.on("beforeShow",function(o){e.append("<p>Dropdown 1: beforeShow event fired</p>")}),o.on("afterHide",function(o){e.append("<p>Dropdown 1: afterHide event fired</p>")}),o.on("beforeHide",function(o){e.append("<p>Dropdown 1: beforeHide event fired</p>")}),n.on("afterShow",function(o){e.append("<p>Dropdown 2: afterShow event fired</p>")}),n.on("beforeShow",function(o){e.append("<p>Dropdown 2: beforeShow event fired</p>")}),n.on("afterHide",function(o){e.append("<p>Dropdown 2: afterHide event fired</p>")}),n.on("beforeHide",function(o){e.append("<p>Dropdown 2: beforeHide event fired</p>")})}};jQuery(document).ready(function(){DropdownDemo.init()});

View File

@@ -0,0 +1 @@
var Scrollable={init:function(){}};jQuery(document).ready(function(){Scrollable.init()});

View File

@@ -0,0 +1 @@
var SweetAlert2Demo={init:function(){$("#m_sweetalert_demo_1").click(function(e){swal("Good job!")}),$("#m_sweetalert_demo_2").click(function(e){swal("Here's the title!","...and here's the text!")}),$("#m_sweetalert_demo_3_1").click(function(e){swal("Good job!","You clicked the button!","warning")}),$("#m_sweetalert_demo_3_2").click(function(e){swal("Good job!","You clicked the button!","error")}),$("#m_sweetalert_demo_3_3").click(function(e){swal("Good job!","You clicked the button!","success")}),$("#m_sweetalert_demo_3_4").click(function(e){swal("Good job!","You clicked the button!","info")}),$("#m_sweetalert_demo_3_5").click(function(e){swal("Good job!","You clicked the button!","question")}),$("#m_sweetalert_demo_4").click(function(e){swal({title:"Good job!",text:"You clicked the button!",icon:"success",confirmButtonText:"Confirm me!",confirmButtonClass:"btn btn-focus m-btn m-btn--pill m-btn--air"})}),$("#m_sweetalert_demo_5").click(function(e){swal({title:"Good job!",text:"You clicked the button!",icon:"success",confirmButtonText:"<span><i class='la la-headphones'></i><span>I am game!</span></span>",confirmButtonClass:"btn btn-danger m-btn m-btn--pill m-btn--air m-btn--icon",showCancelButton:!0,cancelButtonText:"<span><i class='la la-thumbs-down'></i><span>No, thanks</span></span>",cancelButtonClass:"btn btn-secondary m-btn m-btn--pill m-btn--icon"})}),$("#m_sweetalert_demo_6").click(function(e){swal({position:"top-right",type:"success",title:"Your work has been saved",showConfirmButton:!1,timer:1500})}),$("#m_sweetalert_demo_7").click(function(e){swal({title:"jQuery HTML example",html:$("<div>").addClass("some-class").text("jQuery is everywhere."),animation:!1,customClass:"animated tada"})}),$("#m_sweetalert_demo_8").click(function(e){swal({title:"Are you sure?",text:"You won't be able to revert this!",type:"warning",showCancelButton:!0,confirmButtonText:"Yes, delete it!"}).then(function(e){e.value&&swal("Deleted!","Your file has been deleted.","success")})}),$("#m_sweetalert_demo_9").click(function(e){swal({title:"Are you sure?",text:"You won't be able to revert this!",type:"warning",showCancelButton:!0,confirmButtonText:"Yes, delete it!",cancelButtonText:"No, cancel!",reverseButtons:!0}).then(function(e){e.value?swal("Deleted!","Your file has been deleted.","success"):"cancel"===e.dismiss&&swal("Cancelled","Your imaginary file is safe :)","error")})}),$("#m_sweetalert_demo_10").click(function(e){swal({title:"Sweet!",text:"Modal with a custom image.",imageUrl:"https://unsplash.it/400/200",imageWidth:400,imageHeight:200,imageAlt:"Custom image",animation:!1})}),$("#m_sweetalert_demo_11").click(function(e){swal({title:"Auto close alert!",text:"I will close in 5 seconds.",timer:5e3,onOpen:function(){swal.showLoading()}}).then(function(e){"timer"===e.dismiss&&console.log("I was closed by the timer")})})}};jQuery(document).ready(function(){SweetAlert2Demo.init()});

View File

@@ -0,0 +1 @@
var ToastrDemo=function(){var t=function(){var t,o=-1,e=0;$("#showtoast").click(function(){var n,a=$("#toastTypeGroup input:radio:checked").val(),i=$("#message").val(),s=$("#title").val()||"",r=$("#showDuration"),l=$("#hideDuration"),c=$("#timeOut"),p=$("#extendedTimeOut"),u=$("#showEasing"),d=$("#hideEasing"),h=$("#showMethod"),v=$("#hideMethod"),g=e++,f=$("#addClear").prop("checked");toastr.options={closeButton:$("#closeButton").prop("checked"),debug:$("#debugInfo").prop("checked"),newestOnTop:$("#newestOnTop").prop("checked"),progressBar:$("#progressBar").prop("checked"),positionClass:$("#positionGroup input:radio:checked").val()||"toast-top-right",preventDuplicates:$("#preventDuplicates").prop("checked"),onclick:null},$("#addBehaviorOnToastClick").prop("checked")&&(toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}),r.val().length&&(toastr.options.showDuration=r.val()),l.val().length&&(toastr.options.hideDuration=l.val()),c.val().length&&(toastr.options.timeOut=f?0:c.val()),p.val().length&&(toastr.options.extendedTimeOut=f?0:p.val()),u.val().length&&(toastr.options.showEasing=u.val()),d.val().length&&(toastr.options.hideEasing=d.val()),h.val().length&&(toastr.options.showMethod=h.val()),v.val().length&&(toastr.options.hideMethod=v.val()),f&&(i=function(t){return t=t||"Clear itself?",t+='<br /><br /><button type="button" class="btn btn-outline-light btn-sm m-btn m-btn--air m-btn--wide clear">Yes</button>'}(i),toastr.options.tapToDismiss=!1),i||(++o===(n=["New order has been placed!","Are you the six fingered man?","Inconceivable!","I do not think that means what you think it means.","Have fun storming the castle!"]).length&&(o=0),i=n[o]),$("#toastrOptions").text("toastr.options = "+JSON.stringify(toastr.options,null,2)+";\n\ntoastr."+a+'("'+i+(s?'", "'+s:"")+'");');var k=toastr[a](i,s);t=k,void 0!==k&&(k.find("#okBtn").length&&k.delegate("#okBtn","click",function(){alert("you clicked me. i was toast #"+g+". goodbye!"),k.remove()}),k.find("#surpriseBtn").length&&k.delegate("#surpriseBtn","click",function(){alert("Surprise! you clicked me. i was toast #"+g+". You could perform an action here.")}),k.find(".clear").length&&k.delegate(".clear","click",function(){toastr.clear(k,{force:!0})}))}),$("#clearlasttoast").click(function(){toastr.clear(t)}),$("#cleartoasts").click(function(){toastr.clear()})};return{init:function(){t()}}}();jQuery(document).ready(function(){ToastrDemo.init()});

View File

@@ -0,0 +1 @@
var Treeview={init:function(){$("#m_tree_1").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"fa fa-folder"},file:{icon:"fa fa-file"}},plugins:["types"]}),$("#m_tree_2").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"fa fa-folder m--font-warning"},file:{icon:"fa fa-file m--font-warning"}},plugins:["types"]}),$("#m_tree_2").on("select_node.jstree",function(e,t){var n=$("#"+t.selected).find("a");if("#"!=n.attr("href")&&"javascript:;"!=n.attr("href")&&""!=n.attr("href"))return"_blank"==n.attr("target")&&(n.attr("href").target="_blank"),document.location.href=n.attr("href"),!1}),$("#m_tree_3").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 m--font-danger"},{text:"initially open",icon:"fa fa-folder m--font-default",state:{opened:!0},children:["Another node"]},{text:"custom icon",icon:"fa fa-warning m--font-waring"},{text:"disabled node",icon:"fa fa-check m--font-success",state:{disabled:!0}}]},"And wholerow selection"]},types:{default:{icon:"fa fa-folder m--font-warning"},file:{icon:"fa fa-file m--font-warning"}}}),$("#m_tree_4").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 m--font-danger"},{text:"Initially open",icon:"fa fa-folder m--font-success",state:{opened:!0},children:[{text:"Another node",icon:"fa fa-file m--font-waring"}]},{text:"Another Custom Icon",icon:"fa fa-warning m--font-waring"},{text:"Disabled Node",icon:"fa fa-check m--font-success",state:{disabled:!0}},{text:"Sub Nodes",icon:"fa fa-folder m--font-danger",children:[{text:"Item 1",icon:"fa fa-file m--font-waring"},{text:"Item 2",icon:"fa fa-file m--font-success"},{text:"Item 3",icon:"fa fa-file m--font-default"},{text:"Item 4",icon:"fa fa-file m--font-danger"},{text:"Item 5",icon:"fa fa-file m--font-info"}]}]},"Another Node"]},types:{default:{icon:"fa fa-folder m--font-brand"},file:{icon:"fa fa-file m--font-brand"}},state:{key:"demo2"},plugins:["contextmenu","state","types"]}),$("#m_tree_5").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 m--font-danger"},{text:"Initially open",icon:"fa fa-folder m--font-success",state:{opened:!0},children:[{text:"Another node",icon:"fa fa-file m--font-waring"}]},{text:"Another Custom Icon",icon:"fa fa-warning m--font-waring"},{text:"Disabled Node",icon:"fa fa-check m--font-success",state:{disabled:!0}},{text:"Sub Nodes",icon:"fa fa-folder m--font-danger",children:[{text:"Item 1",icon:"fa fa-file m--font-waring"},{text:"Item 2",icon:"fa fa-file m--font-success"},{text:"Item 3",icon:"fa fa-file m--font-default"},{text:"Item 4",icon:"fa fa-file m--font-danger"},{text:"Item 5",icon:"fa fa-file m--font-info"}]}]},"Another Node"]},types:{default:{icon:"fa fa-folder m--font-success"},file:{icon:"fa fa-file m--font-success"}},state:{key:"demo2"},plugins:["dnd","state","types"]}),$("#m_tree_6").jstree({core:{themes:{responsive:!1},check_callback:!0,data:{url:function(e){return"https://keenthemes.com/metronic/preview/inc/api/jstree/ajax_data.php"},data:function(e){return{parent:e.id}}}},types:{default:{icon:"fa fa-folder m--font-brand"},file:{icon:"fa fa-file m--font-brand"}},state:{key:"demo3"},plugins:["dnd","state","types"]})}};jQuery(document).ready(function(){Treeview.init()});