Skip to content

Commit

Permalink
update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
u-khasanova committed Jul 11, 2024
1 parent 1e61968 commit 789fbe2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ <h2>Nuclear proteins (UniProt)</h2>
table.column(i).search(filter.value, regex.checked, smart.checked).draw();
};

let table = CsvToHtmlTable.init({
csv_path: 'uniprot_only_nucl.csv',
element: 'table-container',
allow_download: true,
csv_options: {separator: ',', delimiter: '"'},
datatables_options: {"paging": true, "stateSave": true} ,
custom_formatting: [[0, format_uniprot_ac]]
});

document.querySelectorAll('input.global_filter').forEach((el) => {
el.addEventListener(el.type === 'text' ? 'keyup' : 'change', () =>
filterGlobal(table)
Expand All @@ -72,15 +81,6 @@ <h2>Nuclear proteins (UniProt)</h2>
filterColumn(table, columnIndex)
);
});

let table = CsvToHtmlTable.init({
csv_path: 'uniprot_only_nucl.csv',
element: 'table-container',
allow_download: true,
csv_options: {separator: ',', delimiter: '"'},
datatables_options: {"paging": true, "stateSave": true} ,
custom_formatting: [[0, format_uniprot_ac]]
});
</script>
</body>
</html>
Expand Down

0 comments on commit 789fbe2

Please sign in to comment.