push code to git
This commit is contained in:
35
public/assets/demo/default/custom/components/base/blockui.js
Normal file
35
public/assets/demo/default/custom/components/base/blockui.js
Normal 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()});
|
||||
1
public/assets/demo/default/custom/components/base/bootstrap-notify.js
vendored
Normal file
1
public/assets/demo/default/custom/components/base/bootstrap-notify.js
vendored
Normal 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()});
|
||||
@@ -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()});
|
||||
@@ -0,0 +1 @@
|
||||
var Scrollable={init:function(){}};jQuery(document).ready(function(){Scrollable.init()});
|
||||
@@ -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()});
|
||||
@@ -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()});
|
||||
@@ -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()});
|
||||
@@ -0,0 +1 @@
|
||||
var CalendarBackgroundEvents={init:function(){var e=moment().startOf("day"),t=e.format("YYYY-MM"),i=e.clone().subtract(1,"day").format("YYYY-MM-DD"),r=e.format("YYYY-MM-DD"),o=e.clone().add(1,"day").format("YYYY-MM-DD");$("#m_calendar").fullCalendar({isRTL:mUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listWeek"},editable:!0,eventLimit:!0,navLinks:!0,businessHours:!0,events:[{title:"All Day Event",start:t+"-01",description:"Lorem ipsum dolor sit incid idunt ut",className:"m-fc-event--danger m-fc-event--solid-success"},{title:"Reporting",start:t+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:t+"-14",className:"m-fc-event--accent",constraint:"businessHours"},{title:"Company Trip",start:t+"-02",description:"Lorem ipsum dolor sit tempor incid",end:t+"-03",className:"m-fc-event--light m-fc-event--solid-primary"},{title:"Expo",start:t+"-03",description:"Lorem ipsum dolor sit tempor inci",end:t+"-05",className:"m-fc-event--primary",rendering:"background",color:mApp.getColor("accent")},{title:"Dinner",start:t+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:t+"-10",rendering:"background",color:mApp.getColor("info")},{id:999,title:"Repeating Event",start:t+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"m-fc-event--danger",color:mApp.getColor("primary")},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:t+"-16T16:00:00"},{title:"Conference",start:i,end:o,description:"Lorem ipsum dolor eius mod tempor labore",className:"m-fc-event--accent",rendering:"background",color:mApp.getColor("metal")},{title:"Meeting",start:r+"T10:30:00",end:r+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:r+"T12:00:00",className:"m-fc-event--info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:r+"T14:30:00",className:"m-fc-event--warning",description:"Lorem ipsum conse ctetur adipi scing",rendering:"background",color:mApp.getColor("warning")},{title:"Happy Hour",start:r+"T17:30:00",className:"m-fc-event--metal",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:r+"T20:00:00",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:o+"T07:00:00",className:"m-fc-event--primary",description:"Lorem ipsum dolor sit amet, scing",rendering:"background",color:mApp.getColor("focus")},{title:"Click for Google",url:"http://google.com/",start:t+"-28",description:"Lorem ipsum dolor sit amet, labore"}],eventRender:function(e,t){t.hasClass("fc-day-grid-event")?(t.data("content",e.description),t.data("placement","top"),mApp.initPopover(t)):t.hasClass("fc-time-grid-event")?t.find(".fc-title").append('<div class="fc-description">'+e.description+"</div>"):0!==t.find(".fc-list-item-title").lenght&&t.find(".fc-list-item-title").append('<div class="fc-description">'+e.description+"</div>")}})}};jQuery(document).ready(function(){CalendarBackgroundEvents.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var CalendarBasic={init:function(){var e=moment().startOf("day"),t=e.format("YYYY-MM"),i=e.clone().subtract(1,"day").format("YYYY-MM-DD"),n=e.format("YYYY-MM-DD"),r=e.clone().add(1,"day").format("YYYY-MM-DD");$("#m_calendar").fullCalendar({isRTL:mUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listWeek"},editable:!0,eventLimit:!0,navLinks:!0,events:[{title:"All Day Event",start:t+"-01",description:"Lorem ipsum dolor sit incid idunt ut",className:"m-fc-event--danger m-fc-event--solid-warning"},{title:"Reporting",start:t+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:t+"-14",className:"m-fc-event--accent"},{title:"Company Trip",start:t+"-02",description:"Lorem ipsum dolor sit tempor incid",end:t+"-03",className:"m-fc-event--primary"},{title:"ICT Expo 2017 - Product Release",start:t+"-03",description:"Lorem ipsum dolor sit tempor inci",end:t+"-05",className:"m-fc-event--light m-fc-event--solid-primary"},{title:"Dinner",start:t+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:t+"-10"},{id:999,title:"Repeating Event",start:t+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"m-fc-event--danger"},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:t+"-16T16:00:00"},{title:"Conference",start:i,end:r,description:"Lorem ipsum dolor eius mod tempor labore",className:"m-fc-event--accent"},{title:"Meeting",start:n+"T10:30:00",end:n+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:n+"T12:00:00",className:"m-fc-event--info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:n+"T14:30:00",className:"m-fc-event--warning",description:"Lorem ipsum conse ctetur adipi scing"},{title:"Happy Hour",start:n+"T17:30:00",className:"m-fc-event--metal",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:n+"T20:00:00",className:"m-fc-event--solid-focus m-fc-event--light",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:r+"T07:00:00",className:"m-fc-event--primary",description:"Lorem ipsum dolor sit amet, scing"},{title:"Click for Google",url:"http://google.com/",start:t+"-28",className:"m-fc-event--solid-info m-fc-event--light",description:"Lorem ipsum dolor sit amet, labore"}],eventRender:function(e,t){t.hasClass("fc-day-grid-event")?(t.data("content",e.description),t.data("placement","top"),mApp.initPopover(t)):t.hasClass("fc-time-grid-event")?t.find(".fc-title").append('<div class="fc-description">'+e.description+"</div>"):0!==t.find(".fc-list-item-title").lenght&&t.find(".fc-list-item-title").append('<div class="fc-description">'+e.description+"</div>")}})}};jQuery(document).ready(function(){CalendarBasic.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var CalendarExternalEvents={init:function(){var e,t,i,r,a;$("#m_calendar_external_events .fc-event").each(function(){$(this).data("event",{title:$.trim($(this).text()),stick:!0,className:$(this).data("color"),description:"Lorem ipsum dolor eius mod tempor labore"}),$(this).draggable({zIndex:999,revert:!0,revertDuration:0})}),e=moment().startOf("day"),t=e.format("YYYY-MM"),i=e.clone().subtract(1,"day").format("YYYY-MM-DD"),r=e.format("YYYY-MM-DD"),a=e.clone().add(1,"day").format("YYYY-MM-DD"),$("#m_calendar").fullCalendar({isRTL:mUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listWeek"},eventLimit:!0,navLinks:!0,events:[{title:"All Day Event",start:t+"-01",description:"Lorem ipsum dolor sit incid idunt ut",className:"m-fc-event--success"},{title:"Reporting",start:t+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:t+"-14",className:"m-fc-event--accent"},{title:"Company Trip",start:t+"-02",description:"Lorem ipsum dolor sit tempor incid",end:t+"-03",className:"m-fc-event--primary"},{title:"Expo",start:t+"-03",description:"Lorem ipsum dolor sit tempor inci",end:t+"-05",className:"m-fc-event--primary"},{title:"Dinner",start:t+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:t+"-10"},{id:999,title:"Repeating Event",start:t+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"m-fc-event--danger"},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:t+"-16T16:00:00"},{title:"Conference",start:i,end:a,description:"Lorem ipsum dolor eius mod tempor labore",className:"m-fc-event--accent"},{title:"Meeting",start:r+"T10:30:00",end:r+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:r+"T12:00:00",className:"m-fc-event--info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:r+"T14:30:00",className:"m-fc-event--warning",description:"Lorem ipsum conse ctetur adipi scing"},{title:"Happy Hour",start:r+"T17:30:00",className:"m-fc-event--metal",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:r+"T20:00:00",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:a+"T07:00:00",className:"m-fc-event--primary",description:"Lorem ipsum dolor sit amet, scing"},{title:"Click for Google",url:"http://google.com/",start:t+"-28",description:"Lorem ipsum dolor sit amet, labore"}],editable:!0,droppable:!0,drop:function(e,t,i,r){var a=$.fullCalendar.moment(e.format());a.stripTime(),a.time("08:00:00");var n=$.fullCalendar.moment(e.format());n.stripTime(),n.time("12:00:00"),$(this).data("event").start=a,$(this).data("event").end=n,$("#m_calendar_external_events_remove").is(":checked")&&$(this).remove()},eventRender:function(e,t){t.hasClass("fc-day-grid-event")?(t.data("content",e.description),t.data("placement","top"),mApp.initPopover(t)):t.hasClass("fc-time-grid-event")?t.find(".fc-title").append('<div class="fc-description">'+e.description+"</div>"):0!==t.find(".fc-list-item-title").lenght&&t.find(".fc-list-item-title").append('<div class="fc-description">'+e.description+"</div>")}})}};jQuery(document).ready(function(){CalendarExternalEvents.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var CalendarGoogle={init:function(){$("#m_calendar").fullCalendar({isRTL:mUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,listYear"},displayEventTime:!1,googleCalendarApiKey:"AIzaSyDcnW6WejpTOCffshGDDb4neIrXVUA1EAE",events:"en.usa#holiday@group.v.calendar.google.com",eventClick:function(e){return window.open(e.url,"gcalevent","width=700,height=600"),!1},loading:function(e){},eventRender:function(e,i){e.description&&(i.hasClass("fc-day-grid-event")?(i.data("content",e.description),i.data("placement","top"),mApp.initPopover(i)):i.hasClass("fc-time-grid-event")?i.find(".fc-title").append('<div class="fc-description">'+e.description+"</div>"):0!==i.find(".fc-list-item-title").lenght&&i.find(".fc-list-item-title").append('<div class="fc-description">'+e.description+"</div>"))}})}};jQuery(document).ready(function(){CalendarGoogle.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var CalendarListView={init:function(){var t=moment().startOf("day"),e=t.format("YYYY-MM"),i=t.clone().subtract(1,"day").format("YYYY-MM-DD"),r=t.format("YYYY-MM-DD"),s=t.clone().add(1,"day").format("YYYY-MM-DD");$("#m_calendar").fullCalendar({isRTL:mUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,agendaDay,listWeek"},defaultView:"listWeek",editable:!0,eventLimit:!0,navLinks:!0,height:900,events:[{title:"All Day Event",start:e+"-01",description:"Lorem ipsum dolor sit incid idunt ut",className:"m-fc-event--success"},{title:"Reporting",start:e+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:e+"-14",className:"m-fc-event--accent"},{title:"Company Trip",start:e+"-02",description:"Lorem ipsum dolor sit tempor incid",end:e+"-03",className:"m-fc-event--primary"},{title:"Expo",start:e+"-03",description:"Lorem ipsum dolor sit tempor inci",end:e+"-05",className:"m-fc-event--primary"},{title:"Dinner",start:e+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:e+"-10"},{id:999,title:"Repeating Event",start:e+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"m-fc-event--danger"},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:e+"-16T16:00:00"},{title:"Conference",start:i,end:s,description:"Lorem ipsum dolor eius mod tempor labore",className:"m-fc-event--accent"},{title:"Meeting",start:r+"T10:30:00",end:r+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:r+"T12:00:00",className:"m-fc-event--info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:r+"T14:30:00",className:"m-fc-event--warning",description:"Lorem ipsum conse ctetur adipi scing"},{title:"Happy Hour",start:r+"T17:30:00",className:"m-fc-event--metal",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:r+"T20:00:00",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:s+"T07:00:00",className:"m-fc-event--primary",description:"Lorem ipsum dolor sit amet, scing"},{title:"Click for Google",url:"http://google.com/",start:e+"-28",description:"Lorem ipsum dolor sit amet, labore"}],eventRender:function(t,e){e.hasClass("fc-day-grid-event")?(e.data("content",t.description),e.data("placement","top"),mApp.initPopover(e)):e.hasClass("fc-time-grid-event")?e.find(".fc-title").append('<div class="fc-description">'+t.description+"</div>"):0!==e.find(".fc-list-item-title").lenght&&e.find(".fc-list-item-title").append('<div class="fc-description">'+t.description+"</div>")}})}};jQuery(document).ready(function(){CalendarListView.init()});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var GoogleChartsDemo={init:function(){google.load("visualization","1",{packages:["corechart","bar","line"]}),google.setOnLoadCallback(function(){GoogleChartsDemo.runDemos()})},runDemos:function(){var e;!function(){var e=new google.visualization.DataTable;e.addColumn("timeofday","Time of Day"),e.addColumn("number","Motivation Level"),e.addColumn("number","Energy Level"),e.addRows([[{v:[8,0,0],f:"8 am"},1,.25],[{v:[9,0,0],f:"9 am"},2,.5],[{v:[10,0,0],f:"10 am"},3,1],[{v:[11,0,0],f:"11 am"},4,2.25],[{v:[12,0,0],f:"12 pm"},5,2.25],[{v:[13,0,0],f:"1 pm"},6,3],[{v:[14,0,0],f:"2 pm"},7,4],[{v:[15,0,0],f:"3 pm"},8,5.25],[{v:[16,0,0],f:"4 pm"},9,7.5],[{v:[17,0,0],f:"5 pm"},10,10]]);var a={title:"Motivation and Energy Level Throughout the Day",focusTarget:"category",hAxis:{title:"Time of Day",format:"h:mm a",viewWindow:{min:[7,30,0],max:[17,30,0]}},vAxis:{title:"Rating (scale of 1-10)"}};new google.visualization.ColumnChart(document.getElementById("m_gchart_1")).draw(e,a),new google.visualization.ColumnChart(document.getElementById("m_gchart_2")).draw(e,a)}(),(e=new google.visualization.DataTable).addColumn("number","Day"),e.addColumn("number","Guardians of the Galaxy"),e.addColumn("number","The Avengers"),e.addColumn("number","Transformers: Age of Extinction"),e.addRows([[1,37.8,80.8,41.8],[2,30.9,69.5,32.4],[3,25.4,57,25.7],[4,11.7,18.8,10.5],[5,11.9,17.6,10.4],[6,8.8,13.6,7.7],[7,7.6,12.3,9.6],[8,12.3,29.2,10.6],[9,16.9,42.9,14.8],[10,12.8,30.9,11.6],[11,5.3,7.9,4.7],[12,6.6,8.4,5.2],[13,4.8,6.3,3.6],[14,4.2,6.2,3.4]]),new google.charts.Line(document.getElementById("m_gchart_5")).draw(e,{chart:{title:"Box Office Earnings in First Two Weeks of Opening",subtitle:"in millions of dollars (USD)"}}),function(){var e=google.visualization.arrayToDataTable([["Task","Hours per Day"],["Work",11],["Eat",2],["Commute",2],["Watch TV",2],["Sleep",7]]),a={title:"My Daily Activities"};new google.visualization.PieChart(document.getElementById("m_gchart_3")).draw(e,a),a={pieHole:.4},new google.visualization.PieChart(document.getElementById("m_gchart_4")).draw(e,a)}()}};GoogleChartsDemo.init();
|
||||
@@ -0,0 +1 @@
|
||||
var MorrisChartsDemo={init:function(){new Morris.Line({element:"m_morris_1",data:[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],xkey:"y",ykeys:["a","b"],labels:["Values A","Values B"]}),new Morris.Area({element:"m_morris_2",data:[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],xkey:"y",ykeys:["a","b"],labels:["Series A","Series B"]}),new Morris.Bar({element:"m_morris_3",data:[{y:"2006",a:100,b:90},{y:"2007",a:75,b:65},{y:"2008",a:50,b:40},{y:"2009",a:75,b:65},{y:"2010",a:50,b:40},{y:"2011",a:75,b:65},{y:"2012",a:100,b:90}],xkey:"y",ykeys:["a","b"],labels:["Series A","Series B"]}),new Morris.Donut({element:"m_morris_4",data:[{label:"Download Sales",value:12},{label:"In-Store Sales",value:30},{label:"Mail-Order Sales",value:20}]})}};jQuery(document).ready(function(){MorrisChartsDemo.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var GoogleMapsDemo={init:function(){var t;new GMaps({div:"#m_gmap_1",lat:-12.043333,lng:-77.028333}),new GMaps({div:"#m_gmap_2",zoom:16,lat:-12.043333,lng:-77.028333,click:function(t){alert("click")},dragend:function(t){alert("dragend")}}),(t=new GMaps({div:"#m_gmap_3",lat:-51.38739,lng:-6.187181})).addMarker({lat:-51.38739,lng:-6.187181,title:"Lima",details:{database_id:42,author:"HPNeo"},click:function(t){console.log&&console.log(t),alert("You clicked in this marker")}}),t.addMarker({lat:-12.042,lng:-77.028333,title:"Marker with InfoWindow",infoWindow:{content:'<span style="color:#000">HTML Content!</span>'}}),t.setZoom(5),function(){var t=new GMaps({div:"#m_gmap_4",lat:-12.043333,lng:-77.028333});GMaps.geolocate({success:function(e){t.setCenter(e.coords.latitude,e.coords.longitude)},error:function(t){alert("Geolocation failed: "+t.message)},not_supported:function(){alert("Your browser does not support geolocation")},always:function(){}})}(),function(){var t=new GMaps({div:"#m_gmap_5",lat:-12.043333,lng:-77.028333,click:function(t){console.log(t)}});path=[[-12.044012922866312,-77.02470665341184],[-12.05449279282314,-77.03024273281858],[-12.055122327623378,-77.03039293652341],[-12.075917129727586,-77.02764635449216],[-12.07635776902266,-77.02792530422971],[-12.076819390363665,-77.02893381481931],[-12.088527520066453,-77.0241058385925],[-12.090814532191756,-77.02271108990476]],t.drawPolyline({path:path,strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6})}(),new GMaps({div:"#m_gmap_6",lat:-12.043333,lng:-77.028333}).drawPolygon({paths:[[-12.040397656836609,-77.03373871559225],[-12.040248585302038,-77.03993927003302],[-12.050047116528843,-77.02448169303511],[-12.044804866577001,-77.02154422636042]],strokeColor:"#BBD8E9",strokeOpacity:1,strokeWeight:3,fillColor:"#BBD8E9",fillOpacity:.6}),function(){var t=new GMaps({div:"#m_gmap_7",lat:-12.043333,lng:-77.028333});$("#m_gmap_7_btn").click(function(e){e.preventDefault(),mUtil.scrollTo("m_gmap_7_btn",400),t.travelRoute({origin:[-12.044012922866312,-77.02470665341184],destination:[-12.090814532191756,-77.02271108990476],travelMode:"driving",step:function(e){$("#m_gmap_7_routes").append("<li>"+e.instructions+"</li>"),$("#m_gmap_7_routes li:eq("+e.step_number+")").delay(800*e.step_number).fadeIn(500,function(){t.setCenter(e.end_location.lat(),e.end_location.lng()),t.drawPolyline({path:e.path,strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6})})}})})}(),function(){var t=new GMaps({div:"#m_gmap_8",lat:-12.043333,lng:-77.028333}),e=function(){var e=$.trim($("#m_gmap_8_address").val());GMaps.geocode({address:e,callback:function(e,o){if("OK"==o){var n=e[0].geometry.location;t.setCenter(n.lat(),n.lng()),t.addMarker({lat:n.lat(),lng:n.lng()}),mUtil.scrollTo("m_gmap_8")}}})};$("#m_gmap_8_btn").click(function(t){t.preventDefault(),e()}),$("#m_gmap_8_address").keypress(function(t){"13"==(t.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e())})}()}};jQuery(document).ready(function(){GoogleMapsDemo.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var jQVMapDemo=function(){var e={af:"16.63",al:"11.58",dz:"158.97",ao:"85.81",ag:"1.1",ar:"351.02",am:"8.83",au:"1219.72",at:"366.26",az:"52.17",bs:"7.54",bh:"21.73",bd:"105.4",bb:"3.96",by:"52.89",be:"461.33",bz:"1.43",bj:"6.49",bt:"1.4",bo:"19.18",ba:"16.2",bw:"12.5",br:"2023.53",bn:"11.96",bg:"44.84",bf:"8.67",bi:"1.47",kh:"11.36",cm:"21.88",ca:"1563.66",cv:"1.57",cf:"2.11",td:"7.59",cl:"199.18",cn:"5745.13",co:"283.11",km:"0.56",cd:"12.6",cg:"11.88",cr:"35.02",ci:"22.38",hr:"59.92",cy:"22.75",cz:"195.23",dk:"304.56",dj:"1.14",dm:"0.38",do:"50.87",ec:"61.49",eg:"216.83",sv:"21.8",gq:"14.55",er:"2.25",ee:"19.22",et:"30.94",fj:"3.15",fi:"231.98",fr:"2555.44",ga:"12.56",gm:"1.04",ge:"11.23",de:"3305.9",gh:"18.06",gr:"305.01",gd:"0.65",gt:"40.77",gn:"4.34",gw:"0.83",gy:"2.2",ht:"6.5",hn:"15.34",hk:"226.49",hu:"132.28",is:"12.77",in:"1430.02",id:"695.06",ir:"337.9",iq:"84.14",ie:"204.14",il:"201.25",it:"2036.69",jm:"13.74",jp:"5390.9",jo:"27.13",kz:"129.76",ke:"32.42",ki:"0.15",kr:"986.26",undefined:"5.73",kw:"117.32",kg:"4.44",la:"6.34",lv:"23.39",lb:"39.15",ls:"1.8",lr:"0.98",ly:"77.91",lt:"35.73",lu:"52.43",mk:"9.58",mg:"8.33",mw:"5.04",my:"218.95",mv:"1.43",ml:"9.08",mt:"7.8",mr:"3.49",mu:"9.43",mx:"1004.04",md:"5.36",mn:"5.81",me:"3.88",ma:"91.7",mz:"10.21",mm:"35.65",na:"11.45",np:"15.11",nl:"770.31",nz:"138",ni:"6.38",ne:"5.6",ng:"206.66",no:"413.51",om:"53.78",pk:"174.79",pa:"27.2",pg:"8.81",py:"17.17",pe:"153.55",ph:"189.06",pl:"438.88",pt:"223.7",qa:"126.52",ro:"158.39",ru:"1476.91",rw:"5.69",ws:"0.55",st:"0.19",sa:"434.44",sn:"12.66",rs:"38.92",sc:"0.92",sl:"1.9",sg:"217.38",sk:"86.26",si:"46.44",sb:"0.67",za:"354.41",es:"1374.78",lk:"48.24",kn:"0.56",lc:"1",vc:"0.58",sd:"65.93",sr:"3.3",sz:"3.17",se:"444.59",ch:"522.44",sy:"59.63",tw:"426.98",tj:"5.58",tz:"22.43",th:"312.61",tl:"0.62",tg:"3.07",to:"0.3",tt:"21.2",tn:"43.86",tr:"729.05",tm:0,ug:"17.12",ua:"136.56",ae:"239.65",gb:"2258.57",us:"14624.18",uy:"40.71",uz:"37.72",vu:"0.72",ve:"285.21",vn:"101.99",ye:"30.02",zm:"15.69",zw:"5.57"},n=function(n){var a={map:"world_en",backgroundColor:null,color:"#ffffff",hoverOpacity:.7,selectedColor:"#666666",enableZoom:!0,showTooltip:!0,values:e,scaleColors:["#C8EEFF","#006491"],normalizeFunction:"polynomial",onRegionOver:function(e,n){"ca"==n&&e.preventDefault()},onRegionClick:function(e,n,a){var o='You clicked "'+a+'" which has the code: '+n.toUpperCase();alert(o)}};a.map=n+"_en";var o=jQuery("#m_jqvmap_"+n);o.width(o.parent().width()),o.vectorMap(a)},a=function(){n("world"),n("usa"),n("europe"),n("russia"),n("germany")};return{init:function(){a(),mUtil.addResizeHandler(function(){a()})}}}();jQuery(document).ready(function(){jQVMapDemo.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var jVectorMap={init:function(){}};jQuery(document).ready(function(){jVectorMap.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var PortletDraggable={init:function(){$("#m_sortable_portlets").sortable({connectWith:".m-portlet__head",items:".m-portlet",opacity:.8,handle:".m-portlet__head",coneHelperSize:!0,placeholder:"m-portlet--sortable-placeholder",forcePlaceholderSize:!0,tolerance:"pointer",helper:"clone",tolerance:"pointer",forcePlaceholderSize:!0,helper:"clone",cancel:".m-portlet--sortable-empty",revert:250,update:function(e,t){t.item.prev().hasClass("m-portlet--sortable-empty")&&t.item.prev().before(t.item)}})}};jQuery(document).ready(function(){PortletDraggable.init()});
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var IdleTimerDemo={init:function(){$(document).on("idle.idleTimer",function(t,e,l){$("#docStatus").val(function(t,e){return e+"Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning").scrollTop($("#docStatus")[0].scrollHeight)}),$(document).on("active.idleTimer",function(t,e,l,s){$("#docStatus").val(function(t,e){return e+"Active ["+s.type+"] ["+s.target.nodeName+"] @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning").scrollTop($("#docStatus")[0].scrollHeight)}),$("#btPause").click(function(){return $(document).idleTimer("pause"),$("#docStatus").val(function(t,e){return e+"Paused @ "+moment().format()+" \n"}).scrollTop($("#docStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btResume").click(function(){return $(document).idleTimer("resume"),$("#docStatus").val(function(t,e){return e+"Resumed @ "+moment().format()+" \n"}).scrollTop($("#docStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btElapsed").click(function(){return $("#docStatus").val(function(t,e){return e+"Elapsed (since becoming active): "+$(document).idleTimer("getElapsedTime")+" \n"}).scrollTop($("#docStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btDestroy").click(function(){return $(document).idleTimer("destroy"),$("#docStatus").val(function(t,e){return e+"Destroyed: @ "+moment().format()+" \n"}).removeClass("alert-success").removeClass("alert-warning").scrollTop($("#docStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btInit").click(function(){return $(document).idleTimer({timeout:5e3}),$("#docStatus").val(function(t,e){return e+"Init: @ "+moment().format()+" \n"}).scrollTop($("#docStatus")[0].scrollHeight),$(document).idleTimer("isIdle")?$("#docStatus").removeClass("alert-success").addClass("alert-warning"):$("#docStatus").addClass("alert-success").removeClass("alert-warning"),$(this).blur(),!1}),$("#docStatus").val(""),$(document).idleTimer(5e3),$(document).idleTimer("isIdle")?$("#docStatus").val(function(t,e){return e+"Initial Idle State @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning").scrollTop($("#docStatus")[0].scrollHeight):$("#docStatus").val(function(t,e){return e+"Initial Active State @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning").scrollTop($("#docStatus")[0].scrollHeight),$("#docTimeout").text(5),$("#elStatus").on("idle.idleTimer",function(t,e,l){t.stopPropagation(),$("#elStatus").val(function(t,e){return e+"Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning").scrollTop($("#elStatus")[0].scrollHeight)}),$("#elStatus").on("active.idleTimer",function(t){t.stopPropagation(),$("#elStatus").val(function(t,e){return e+"Active @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning").scrollTop($("#elStatus")[0].scrollHeight)}),$("#btReset").click(function(){return $("#elStatus").idleTimer("reset").val(function(t,e){return e+"Reset @ "+moment().format()+" \n"}).scrollTop($("#elStatus")[0].scrollHeight),$("#elStatus").idleTimer("isIdle")?$("#elStatus").removeClass("alert-success").addClass("alert-warning"):$("#elStatus").addClass("alert-success").removeClass("alert-warning"),$(this).blur(),!1}),$("#btRemaining").click(function(){return $("#elStatus").val(function(t,e){return e+"Remaining: "+$("#elStatus").idleTimer("getRemainingTime")+" \n"}).scrollTop($("#elStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btLastActive").click(function(){return $("#elStatus").val(function(t,e){return e+"LastActive: "+$("#elStatus").idleTimer("getLastActiveTime")+" \n"}).scrollTop($("#elStatus")[0].scrollHeight),$(this).blur(),!1}),$("#btState").click(function(){return $("#elStatus").val(function(t,e){return e+"State: "+($("#elStatus").idleTimer("isIdle")?"idle":"active")+" \n"}).scrollTop($("#elStatus")[0].scrollHeight),$(this).blur(),!1}),$("#elStatus").val("").idleTimer(3e3),$("#elStatus").idleTimer("isIdle")?$("#elStatus").val(function(t,e){return e+"Initial Idle @ "+moment().format()+" \n"}).removeClass("alert-success").addClass("alert-warning").scrollTop($("#elStatus")[0].scrollHeight):$("#elStatus").val(function(t,e){return e+"Initial Active @ "+moment().format()+" \n"}).addClass("alert-success").removeClass("alert-warning").scrollTop($("#elStatus")[0].scrollHeight),$("#elTimeout").text(3)}};jQuery(document).ready(function(){IdleTimerDemo.init()});
|
||||
@@ -0,0 +1 @@
|
||||
var SessionTimeoutDemo={init:function(){$.sessionTimeout({title:"Session Timeout Notification",message:"Your session is about to expire.",keepAliveUrl:"https://keenthemes.com/metronic/preview/inc/api/session-timeout/keepalive.php",redirUrl:"?p=page_user_lock_1",logoutUrl:"?p=page_user_login_1",warnAfter:3e3,redirAfter:35e3,ignoreUserActivity:!0,countdownMessage:"Redirecting in {timer} seconds.",countdownBar:!0})}};jQuery(document).ready(function(){SessionTimeoutDemo.init()});
|
||||
Reference in New Issue
Block a user