More styles

This commit is contained in:
Gustavo Adolfo Mesa Roldán
2020-03-30 18:28:18 +02:00
parent b3e7a5743f
commit 4f2a08fc03
8 changed files with 51 additions and 1408 deletions
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -37,7 +37,9 @@ $('document').ready(function(){
{ title: "Level" },
{ title: "Specie" },
{ title: "Options", className: "options-table", orderable: false,data: null, targets: -1, "mRender": function(data, type, full) {
return '<button class="btn btn-primary btn-sm" onclick="showAnimal(\''+ full[0] +'\')">Show</button>&nbsp;&nbsp;<button class="btn btn-info btn-sm" onclick="editAnimal(\''+ full[0] +'\')">Edit</button>&nbsp;&nbsp;<button class="btn btn-danger btn-sm" onclick="removeAnimal(\''+full[0]+'\')">Remove</button>';
return '<button class="btn btn-primary btn-sm" onclick="showAnimal(\''+ full[0] +'\')"><i class="fa fa-eye" aria-hidden="true"></i></button>&nbsp;&nbsp;'
+ '<button class="btn btn-info btn-sm" onclick="editAnimal(\''+ full[0] +'\')"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></button>&nbsp;&nbsp;'
+ '<button class="btn btn-danger btn-sm" onclick="removeAnimal(\''+full[0]+'\')"><i class="fa fa-times" aria-hidden="true"></i></button>';
}}
]});
$("#load").fadeOut("fast");
+4 -4
View File
@@ -10,8 +10,8 @@ function set_chart(data){
label: 'Initial',
stack: 'Stack 0',
borderWidth: 2,
borderColor: "rgb(0, 153, 153, 0.5)",
backgroundColor: 'rgba(0, 153, 153, 0.9)',
borderColor: "rgb(0, 0, 0, 0.5)",
backgroundColor: 'rgba(0, 0, 0, 0.9)',
data: [
data.initial_health ? data.initial_health.$numberDecimal : "",
data.initial_energy ? data.initial_energy.$numberDecimal : "",
@@ -23,8 +23,8 @@ function set_chart(data){
label: 'Now',
stack: 'Stack 0',
borderWidth: 2,
borderColor: "rgb(0, 153, 153, 1)",
backgroundColor: 'rgba(0, 153, 153, 0.5)',
borderColor: "rgb(0, 0, 0, 1)",
backgroundColor: 'rgba(0, 0, 0, 0.5)',
data: [
data.health ? data.health.$numberDecimal : "",
data.energy ? data.energy.$numberDecimal : "",
File diff suppressed because one or more lines are too long