mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Remove some useless loading animations
This commit is contained in:
parent
49dc7c4cdb
commit
6260f2436a
@ -111,14 +111,11 @@ function showMatchContext(response) {
|
||||
let partElement
|
||||
let token;
|
||||
let tokenElement;
|
||||
let tokenElements;
|
||||
console.log("###### match_context ######");
|
||||
console.log("Incoming data:", contextData);
|
||||
expertModeSwitchElement = document.getElementById("display-options-form-expert_mode");
|
||||
contextResultsElement = document.getElementById("context-results");
|
||||
contextModalLoading = document.getElementById("context-modal-loading");
|
||||
contextModalLoading.classList.add("hide");
|
||||
contextModalReady = document.getElementById("context-modal-ready");
|
||||
contextModalReady.classList.remove("hide");
|
||||
|
||||
if (contextData.cpos_ranges == true) {
|
||||
// python range like function from MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Sequence_generator_(range)
|
||||
@ -149,7 +146,7 @@ function showMatchContext(response) {
|
||||
contextResultsElement.append(partElement);
|
||||
}
|
||||
if (expertModeSwitchElement.checked) {
|
||||
let tokenElements = partElement.getElementsByClassName("token");
|
||||
tokenElements = partElement.getElementsByClassName("token");
|
||||
expertModeOn(tokenElements, contextData);
|
||||
}
|
||||
}
|
||||
|
@ -199,12 +199,7 @@
|
||||
<div id="context-modal" class="modal modal-fixed-footer">
|
||||
<div class="modal-content">
|
||||
<h4>Match context and information</h4>
|
||||
<div id="context-modal-loading">
|
||||
<div class="progress">
|
||||
<div class="indeterminate"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="context-modal-ready" class="hide">
|
||||
<div>
|
||||
<div id="context-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user