Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions _includes/csv.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% assign csvdata = include.csvdata %}
<table>
<table class="display" style="width:100%">
<thead>
{% for column in csvdata[0] %}
<th>{{ column[0] }}</th>
{% endfor %}
<tr>
{% for column in csvdata[0] %}
<th>{{ column[0] }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in csvdata %}
Expand All @@ -13,5 +15,17 @@
{% endfor %}
</tr>
{% endfor %}
<tfoot>
<tr>
{% for column in csvdata[0] %}
<th>{{ column[0] }}</th>
{% endfor %}
</tr>
</tfoot>
</tbody>
</table>
</table>
<script type="text/javascript">
$(document).ready(function () {
$('table.display').DataTable();
});
</script>
4 changes: 3 additions & 1 deletion _includes/custom-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
<!-- Bootstrap core CSS -->
<!-- <link href="css/bootstrap.min.css" rel="stylesheet"> -->
<!-- <link href="css/dataTables.bootstrap.css" rel="stylesheet"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script type="text/javascript" src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script type="text/javascript" src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.23/datatables.min.js"></script>
<script src="../assets/js/script.js"></script>