diff --git a/docs/custom.css b/docs/custom.css index f29180fb..c9dc6e6c 100644 --- a/docs/custom.css +++ b/docs/custom.css @@ -21,10 +21,10 @@ table{ } /* change the with of first column */ -/* thead tr th:first-child, +thead tr th:first-child, tbody tr td:first-child { width: 400px; min-width: 300px; max-width: 400px; word-break: break-all; -} */ +} diff --git a/overrides/main.html b/overrides/main.html index d5f35c9d..a6dcc9b4 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -39,8 +39,7 @@ new DataTable('#table1', { order: [[5, 'desc']], "columnDefs": [ - {"className": "dt-center", "targets": "_all"}, - { width: '30%', targets: 0 } + {"className": "dt-center", "targets": "_all"} ], pageLength: 5, layout: { @@ -52,8 +51,7 @@ new DataTable('#table2', { order: [[3, 'desc']], "columnDefs": [ - {"className": "dt-center", "targets": "_all"}, - { width: '30%', targets: 0 } + {"className": "dt-center", "targets": "_all"} ], pageLength: 5, layout: { @@ -63,41 +61,9 @@ } }); new DataTable('#table3', { - initComplete: function () { - this.api() - .columns() - .every(function () { - let column = this; - - // Create select element - let select = document.createElement('select'); - select.add(new Option('')); - column.footer().replaceChildren(select); - - // Apply listener for user change in value - select.addEventListener('change', function () { - column - .search(select.value, {exact: true}) - .draw(); - }); - - // keep the width of the select element same as the column - select.style.width = '100%'; - - // Add list of options - column - .data() - .unique() - .sort() - .each(function (d, j) { - select.add(new Option(d)); - }); - }); - }, // order: [[3, 'desc']], "columnDefs": [ - {"className": "dt-center", "targets": "_all"}, - { width: '25%', targets: 1 } + {"className": "dt-center", "targets": "_all"} ], pageLength: 5, layout: { @@ -107,41 +73,9 @@ } }); new DataTable('#table4', { - initComplete: function () { - this.api() - .columns() - .every(function () { - let column = this; - - // Create select element - let select = document.createElement('select'); - select.add(new Option('')); - column.footer().replaceChildren(select); - - // Apply listener for user change in value - select.addEventListener('change', function () { - column - .search(select.value, {exact: true}) - .draw(); - }); - - // keep the width of the select element same as the column - select.style.width = '100%'; - - // Add list of options - column - .data() - .unique() - .sort() - .each(function (d, j) { - select.add(new Option(d)); - }); - }); - }, // order: [[3, 'desc']], "columnDefs": [ - {"className": "dt-center", "targets": "_all"}, - { width: '30%', targets: 0 } + {"className": "dt-center", "targets": "_all"} ], pageLength: 5, layout: { diff --git a/templates/overview.txt b/templates/overview.txt index f2a3e431..fcf1659e 100644 --- a/templates/overview.txt +++ b/templates/overview.txt @@ -71,7 +71,7 @@ {% for article in most_cited_articles %} - {{article.title}} + {{article.title}}
{{ article.authors}} {{ article.publicationDate}} {{ article.journal}} @@ -97,7 +97,7 @@ {% for article in most_recent_articles %} - {{article.title}} + {{article.title}}
{{ article.authors}} {{ article.publicationDate}} {{ article.journal}} @@ -125,7 +125,7 @@ {% for article in manually_curated_articles %} {{ article.topic}} - {{article.title}} + {{article.title}}
{{ article.authors}} {{ article.publicationDate}} {{ article.journal}} @@ -133,16 +133,6 @@ {% endfor %} - - - Topic - Title - Authors - Publication Date - Journal/Conference - Citation count - -

@@ -159,16 +149,10 @@ {% for article in additional_reading %} {{ article.topic}} - {{article.name}} + {{article.name}}
{% endfor %} - - - Topic - Title - -