mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-24 09:25:53 +02:00
Show number of results in aktionen.html, styling.
This commit is contained in:
parent
684794e961
commit
2e1b863f8b
|
@ -19,6 +19,7 @@
|
|||
<label><input id="decreases" type="checkbox" checked="true"> Billiger</label>
|
||||
</div>
|
||||
<input id="filter" type="text" style="max-width: 800px; width: 100%;" placeholder="Filtern...">
|
||||
<div id="numresults" style="margin-top: 1em"></div>
|
||||
<table id="result"></table>
|
||||
</div>
|
||||
<script src="utils.js"></script>
|
||||
|
|
|
@ -53,7 +53,9 @@ function showResults(items, today) {
|
|||
}
|
||||
}
|
||||
const query = document.querySelector("#filter").value.trim();
|
||||
const total = changedItems.length;
|
||||
if (query.length >= 3) changedItems = searchItems(changedItems, document.querySelector("#filter").value, checkedStores, false, 0, 10000, false, false);
|
||||
document.querySelector("#numresults").innerText = "Resultate: " + changedItems.length + (total > changedItems.length ? " / " + total : "");
|
||||
|
||||
const table = document.querySelector("#result");
|
||||
table.innerHTML = "";
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="filters" id="filters-store">
|
||||
</div>
|
||||
<input id="filter" type="text" style="max-width: 800px; width: 100%;" placeholder="Filtern...">
|
||||
<div id="numresults"></div>
|
||||
<div id="numresults" style="margin-top: 1em"></div>
|
||||
<table id="result"></table>
|
||||
</div>
|
||||
<script src="utils.js"></script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user