fix: table headers
This commit is contained in:
@@ -2,11 +2,12 @@
|
|||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
const searchInput = document.getElementById('searchInput');
|
const searchInput = document.getElementById('searchInput');
|
||||||
const table = document.getElementById('table');
|
const table = document.getElementById('table');
|
||||||
const table_r = Array.from(table.getElementsByTagName('tr'));
|
const table_r = Array.from(table.getElementsByClassName('table-entry'));
|
||||||
|
|
||||||
document.addEventListener('keydown', (event)=>{
|
document.addEventListener('keydown', (event)=>{
|
||||||
if (event.ctrlKey && event.key === 'k'){
|
if (event.ctrlKey && event.key === 'k'){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
searchInput.focus();
|
||||||
searchInput.select();
|
searchInput.select();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/*TODO also style svg icons accordingly */
|
||||||
:root{
|
:root{
|
||||||
--bg:#faf0e673;
|
--bg:#faf0e673;
|
||||||
--bg-acc:#EEEEEE;
|
--bg-acc:#EEEEEE;
|
||||||
|
|||||||
@@ -32,13 +32,13 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Title</th>
|
<th>Titel</th>
|
||||||
<th>Author</th>
|
<th>Autor</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for item in books %}
|
{% for item in books %}
|
||||||
<tr>
|
<tr class="table-entry">
|
||||||
<td>
|
<td>
|
||||||
<a href= {{ item.url }} target="_blank" rel="noopener noreferrer" class="table-link">
|
<a href= {{ item.url }} target="_blank" rel="noopener noreferrer" class="table-link">
|
||||||
<img src="{% static 'open-link.svg' %}" alt="Open Link" class="inline-icon">
|
<img src="{% static 'open-link.svg' %}" alt="Open Link" class="inline-icon">
|
||||||
|
|||||||
Reference in New Issue
Block a user