NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 18.191.239.251
Web Server : Apache
System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : social-telecare ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/pcu.in.th/uat.pcu.in.th/assets/js/custom/documentation/general/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/assets/js/custom/documentation/general//toastr.js
"use strict";var KTGeneralToastr=function(){var t=function(){var t,o=-1,e=0;$("#showtoast").on("click",(function(){var n,a=$("#toastTypeGroup input:radio:checked").val(),s=$("#message").val(),i=$("#title").val()||"",r=$("#showDuration"),l=$("#hideDuration"),c=$("#timeOut"),p=$("#extendedTimeOut"),u=$("#showEasing"),h=$("#hideEasing"),d=$("#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()),h.val().length&&(toastr.options.hideEasing=h.val()),d.val().length&&(toastr.options.showMethod=d.val()),v.val().length&&(toastr.options.hideMethod=v.val()),f&&(s=function(t){return t=t||"Clear itself?",t+'<br /><br /><button type="button" class="btn btn-outline-light btn-sm">Yes</button>'}(s),toastr.options.tapToDismiss=!1),s||(++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),s=n[o]),$("#toastrOptions").text("toastr.options = "+JSON.stringify(toastr.options,null,2)+";\n\ntoastr."+a+'("'+s+(i?'", "'+i:"")+'");');var k=toastr[a](s,i);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").on("click",(function(){toastr.clear(t)})),$("#cleartoasts").on("click",(function(){toastr.clear()}))};return{init:function(){t()}}}();KTUtil.onDOMContentLoaded((function(){KTGeneralToastr.init()}));

Anon7 - 2022
AnonSec Team