NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 18.119.160.42
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/datatables/

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/datatables/advanced.js
"use strict";var KTDatatablesAdvanced={init:function(){var t,e;t={1:{title:"Pending",state:"primary"},2:{title:"Delivered",state:"danger"},3:{title:"Canceled",state:"primary"},4:{title:"Success",state:"success"},5:{title:"Info",state:"info"},6:{title:"Danger",state:"danger"},7:{title:"Warning",state:"warning"}},$("#kt_datatable_example_1").DataTable({columnDefs:[{render:function(e,a,n){var l=KTUtil.getRandomInt(1,7);return e+'<span class="ms-2 badge badge-light-'+t[l].state+' fw-bold">'+t[l].title+"</span>"},targets:1}]}),$("#kt_datatable_example_2").DataTable({columnDefs:[{visible:!1,targets:-1}]}),e=$("#kt_datatable_example_3").DataTable({columnDefs:[{visible:!1,targets:2}],order:[[2,"asc"]],displayLength:25,drawCallback:function(t){var e=this.api(),a=e.rows({page:"current"}).nodes(),n=null;e.column(2,{page:"current"}).data().each((function(t,e){n!==t&&($(a).eq(e).before('<tr class="group fs-5 fw-bolder"><td colspan="5">'+t+"</td></tr>"),n=t)}))}}),$("#kt_datatable_example_3 tbody").on("click","tr.group",(function(){var t=e.order()[0];2===t[0]&&"asc"===t[1]?e.order([2,"desc"]).draw():e.order([2,"asc"]).draw()})),$("#kt_datatable_example_4").DataTable({footerCallback:function(t,e,a,n,l){var r=this.api(),s=function(t){return"string"==typeof t?1*t.replace(/[\$,]/g,""):"number"==typeof t?t:0},i=r.column(4).data().reduce((function(t,e){return s(t)+s(e)}),0),c=r.column(4,{page:"current"}).data().reduce((function(t,e){return s(t)+s(e)}),0);$(r.column(4).footer()).html("$"+c+" ( $"+i+" total)")}}),$("#kt_datatable_example_5").DataTable({language:{lengthMenu:"Show _MENU_"},dom:"<'row'<'col-sm-6 d-flex align-items-center justify-conten-start'l><'col-sm-6 d-flex align-items-center justify-content-end'f>><'table-responsive'tr><'row'<'col-sm-12 col-md-5 d-flex align-items-center justify-content-center justify-content-md-start'i><'col-sm-12 col-md-7 d-flex align-items-center justify-content-center justify-content-md-end'p>>"}),function(){var t={1:{title:"Pending",state:"primary"},2:{title:"Delivered",state:"danger"},3:{title:"Canceled",state:"primary"},4:{title:"Success",state:"success"},5:{title:"Info",state:"info"},6:{title:"Danger",state:"danger"},7:{title:"Warning",state:"warning"}};$("#kt_datatable_example_6").DataTable({responsive:!0,columnDefs:[{render:function(e,a,n){var l=KTUtil.getRandomInt(1,7);return e+'<span class="ms-2 badge badge-light-'+t[l].state+' fw-bold">'+t[l].title+"</span>"},targets:1}]})}(),$("#kt_datatable_example_7").DataTable({select:!0})}};KTUtil.onDOMContentLoaded((function(){KTDatatablesAdvanced.init()}));

Anon7 - 2022
AnonSec Team