chess/public/assets/js/pages/crud/datatables/data-sources/javascript.js

60 lines
33 KiB
JavaScript
Raw Normal View History

2024-08-29 03:56:32 +00:00
"use strict";
var KTDatatablesDataSourceHtml = function() {
var dataJSONArray = JSON.parse(
'[[1,"54473-251","GT","San Pedro Ayampuc","Sanford-Halvorson","897 Magdeline Park","sgormally0@dot.gov","Shandra Gormally","Eichmann, Upton and Homenick","GTQ","sit amet cursus id turpis integer aliquet massa id lobortis convallis","Computers","house.gov","14.78667","-90.45111","5/21/2016","America/Guatemala",1,2],[2,"41250-308","ID","Langensari","Denesik-Langosh","9 Brickson Park Junction","eivanonko1@over-blog.com","Estele Ivanonko","Lowe, Batz and Purdy","IDR","lacinia aenean sit amet justo morbi ut odio cras mi pede malesuada in imperdiet","Baby","arizona.edu","-6.4222","105.9425","4/19/2016","Asia/Jakarta",1,3],[3,"0615-7571","HR","Slatina","Kunze, Schneider and Cronin","35712 Sundown Parkway","sbettley2@gmpg.org","Stephine Bettley","Bernier, Weimann and Wuckert","HRK","cras in purus eu magna vulputate luctus cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus vivamus","Toys","rakuten.co.jp","45.70333","17.70278","4/7/2016","Europe/Zagreb",6,3],[4,"49349-551","RU","Novo-Peredelkino","Jacobi-Ankunding","481 Sage Park","dmartijn3@printfriendly.com","Damara Martijn","Tromp-Hegmann","RUB","cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam","Baby","t-online.de","55.64528","37.33583","2/15/2016","Europe/Moscow",4,2],[5,"59779-750","ID","Bombu","Johns-Kunze","59 Marcy Hill","hpelzer4@friendfeed.com","Helsa Pelzer","Walker LLC","IDR","non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus metus arcu adipiscing molestie hendrerit","Toys","xrea.com","-8.6909","120.5162","1/30/2017","Asia/Makassar",4,3],[6,"63777-145","CN","Kaiyuan","Kris, Keeling and Weimann","122 Evergreen Street","sheugel5@mysql.com","Sigismundo Heugel","D\'Amore-Johnston","CNY","tempus vel pede morbi porttitor lorem id ligula suspendisse ornare consequat lectus in","Tools","gravatar.com","42.53306","124.04028","10/22/2016","Asia/Harbin",3,3],[7,"57520-0136","GR","Tríkala","Effertz Inc","328 8th Avenue","cewell6@reverbnation.com","Clarinda Ewell","Jakubowski and Sons","EUR","magnis dis parturient montes nascetur ridiculus mus vivamus vestibulum sagittis sapien","Music","msu.edu","40.59814","22.55733","9/3/2016","Europe/Athens",4,1],[8,"0093-5200","SE","Köping","West-Ullrich","48 Sommers Junction","adevenny7@webnode.com","Ariel Devenny","Goldner, Bartoletti and Towne","SEK","mauris laoreet ut rhoncus aliquet pulvinar sed nisl nunc rhoncus dui vel sem sed sagittis nam congue risus","Jewelery","flavors.me","59.514","15.9926","2/10/2016","Europe/Stockholm",2,3],[9,"14783-319","ID","Ujung","Stiedemann-Kemmer","10625 Dixon Road","bplewright8@mashable.com","Buck Plewright","Boyer and Sons","IDR","habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat id mauris vulputate elementum","Music","odnoklassniki.ru","-8.2137","114.3818","11/11/2016","Asia/Makassar",2,3],[10,"59011-454","CO","Salento","Daniel-Feest","48004 Mariners Cove Circle","gliddon9@wordpress.org","Gilberta Liddon","Nienow-Dickens","COP","dolor sit amet consectetuer adipiscing elit proin risus praesent lectus vestibulum quam sapien varius ut blandit","Electronics","deliciousdays.com","4.6375","-75.57028","12/15/2016","America/Bogota",6,2],[11,"0268-1530","ID","Sarkanjut","Mraz-Parisian","9630 Scoville Road","oheusticea@buzzfeed.com","Odetta Heustice","Gorczany-Mohr","IDR","interdum mauris non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus","Electronics","pagesperso-orange.fr","-7.10896","107.94173","7/28/2016","Asia/Jakarta",5,3],[12,"53057-012","CN","Baiguo","Reinger, Roberts and Medhurst","29238 Waywood Road","blillistoneb@ftc.gov","Brittne Lillistone","Schimmel, Bauch and Ortiz","CNY","ultrices posuere cubilia curae nulla dapibus dolor vel est donec odio justo sollicitudin ut suscipit a feugiat","Toys","typepad.com","29.8841","110.45615","9/23/2016","Asia/Chongqing",5,3],[13,"58232-9814","PL","Wołczyn","Stanton-Davis","63 Dwight Junction","oharlinc@whitehouse.gov","Oralia Harlin","Hagenes, Dicki and Rowe","PLN","felis sed lacus morbi se
var initTable1 = function() {
var table = $('#kt_datatable');
// begin first table
table.DataTable({
responsive: true,
data: dataJSONArray,
columnDefs: [
{
targets: -1,
title: 'Actions',
orderable: false,
render: function(data, type, full, meta) {
return '\
<div class="dropdown dropdown-inline">\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon" data-toggle="dropdown">\
<i class="la la-cog"></i>\
</a>\
<div class="dropdown-menu dropdown-menu-sm dropdown-menu-right">\
<ul class="nav nav-hoverable flex-column">\
<li class="nav-item"><a class="nav-link" href="#"><i class="nav-icon la la-edit"></i><span class="nav-text">Edit Details</span></a></li>\
<li class="nav-item"><a class="nav-link" href="#"><i class="nav-icon la la-leaf"></i><span class="nav-text">Update Status</span></a></li>\
<li class="nav-item"><a class="nav-link" href="#"><i class="nav-icon la la-print"></i><span class="nav-text">Print</span></a></li>\
</ul>\
</div>\
</div>\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon" title="Edit details">\
<i class="la la-edit"></i>\
</a>\
<a href="javascript:;" class="btn btn-sm btn-clean btn-icon" title="Delete">\
<i class="la la-trash"></i>\
</a>\
';
},
},
],
});
};
return {
//main function to initiate the module
init: function() {
initTable1();
},
};
}();
jQuery(document).ready(function() {
KTDatatablesDataSourceHtml.init();
});