mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
Make it work again
This commit is contained in:
@ -79,27 +79,13 @@
|
||||
<div class="error-container hide show-on-error"></div>
|
||||
<div class="hide show-on-success">
|
||||
<p>
|
||||
<span id="received-match-num"></span> of <span id="total-match-num"></span> matches loaded.<br>
|
||||
<span id="received-match-num"></span> of <span id="match-num"></span> matches loaded.<br>
|
||||
Matches occured in <span id="text-lookup-num"></span> corpus files.
|
||||
</p>
|
||||
<div class="progress" id="query-results-progress">
|
||||
<div class="determinate" id="query-results-determinate"></div>
|
||||
</div>
|
||||
<ul class="pagination paginationTop"></ul>
|
||||
<!-- Query results table -->
|
||||
<table class="highlight responsive-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 2%">Nr.</th>
|
||||
<th style="width: 3%">Title</th>
|
||||
<th style="width: 25%">Left context</th>
|
||||
<th style="width: 45%">Match</th>
|
||||
<th style="width: 25%">Right Context</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="list"></tbody>
|
||||
</table>
|
||||
<ul class="pagination paginationBottom"></ul>
|
||||
<div id="query-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -130,8 +116,8 @@
|
||||
var queryResultsDeterminateElement = document.getElementById("query-results-determinate");
|
||||
var queryResultsProgressElement = document.getElementById("query-results-progress");
|
||||
var receivedMatchNumElement = document.getElementById("received-match-num");
|
||||
var matchNumElement = document.getElementById("match-num");
|
||||
var textLookupNumElement = document.getElementById("text-lookup-num");
|
||||
var totalMatchNumElement = document.getElementById("total-match-num");
|
||||
|
||||
var results = undefined;
|
||||
|
||||
@ -151,7 +137,7 @@
|
||||
queryResultsDeterminateElement.style.width = "0%";
|
||||
receivedMatchNumElement.innerText = "0";
|
||||
textLookupNumElement.innerText = "0";
|
||||
totalMatchNumElement.innerText = response.num_matches;
|
||||
matchNumElement.innerText = response.num_matches;
|
||||
});
|
||||
client.setCallback("query_results", (response) => {
|
||||
// This is called when results are transmitted.
|
||||
|
Reference in New Issue
Block a user