mirror of
https://github.com/bartvdbraak/SlayerWeightCalculator.git
synced 2025-06-28 07:19:10 +00:00
ajax call json data renderer
This commit is contained in:
parent
33a7f153f0
commit
2cdb340edd
6 changed files with 11441 additions and 126 deletions
19
js/script.js
19
js/script.js
|
@ -1,7 +1,22 @@
|
|||
$(document).ready( function () {
|
||||
$('#masterTable').DataTable();
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable({
|
||||
ajax: "data/krystilia.json",
|
||||
columns: [
|
||||
{ data: 'monster'},
|
||||
{ data: 'taskweight'},
|
||||
{
|
||||
data: null,
|
||||
render: function ( data, type, row ) {
|
||||
return Math.round( col.taskweight * row.taskweight * 100 )+'%';
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
function filterEntries() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue