Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Your name committed Oct 9, 2024
1 parent c7a3912 commit 7829a10
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ input[type="checkbox"] {
}



#list {
display: none;
}

.label-text {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function makeTable(type) {
"lengthChange": true,
"paging": true,
"searching": false,
"pageLength": 10,
"pageLength": 15,
"ordering": true,
"order": [1, "desc"],
"fixedHeader": true,
Expand Down
13 changes: 12 additions & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,18 @@ function updateAgencies(type, states) {

function main(type, states, state_default, crimes, crime_starter) {


$('#list').DataTable({
"columns": [
{
"width": "45%"
},
null,
null
],
"initComplete": function(){
$("#list").show();
}
});
makeDataSourceDropdown()
ctx = document.getElementById("graph").getContext('2d');
make_dropdown('#state_dropdown', states, state_default)
Expand Down

0 comments on commit 7829a10

Please sign in to comment.