text: var table;function loadDT(){table=$("#list").DataTable({destroy:!0,processing:!1,serverSide:!0,stateSave:!1,autoWidth:!1,responsive:!0,deferRender:!0,paging:!0,lengthMenu:[10,20,30,40,50,100,200,300,400,500,"All"],ajax:{url:"list-posts-json",method:"GET",data:{uid:guid()},dataSrc:function(t){return console.log(t),t.data}},columnDefs:[{targets:0,title:"Title",data:"title",render:function(t,e,a,s){return`${t} <a href="${a.url}" target="viewArticle" onclick="openInNewTab(this)"><i class="fas fa-external-link"></i></a>`}},{targets:1,title:"Labels",data:"labels",render:function(t,e,a,s){return`<div data-label="${JSON.stringify(t)}">${t.join(", ")}</div>`}}]}),table.on("init.dt",(function(){$(this).removeClass("table-loader").show()}))}$(document).ready((function(){load_module(["datatables.net","datatables.net-bs4","datatables.net-colreorder","datatables.net-rowreorder","datatables.net-scroller","datatables.net-select","datatables.net-buttons","datatables.net-buttons-html5"],(function(){loadCSS(["https://adminlte.io/themes/v3/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css","https://adminlte.io/themes/v3/plugins/datatables-responsive/css/responsive.bootstrap4.min.css"]),datatables_init().then(loadDT)}))}));