queryResultsMetadataElement.innerHTML=`<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.<i class="material-icons" id="tool-tip-info">help</i></p>`;
queryResultsMetadataElement.innerHTML=`<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.</p><p><i class="material-icons" id="tooltip-info">help</i>The Server is still sending your results. Functions like "Export Results" and "Match Inspect" will be available after all matches have been loaded.</p>`;
M.Tooltip.init(toolTipInfoElement,{"html":`<p>The Server is still sending you your results. Functions like "Export Results" and "Match Inspect" will be available after all matches have been loaded.</p>`,
"inDuration":1500,
"margin":15,
"position":"top",
"transitionMovement":0});
// enable download and inspect when query is finished
// enable download and inspect when query is finished
// also sets queryFinished to true
// also sets queryFinished to true
if (queryStatus===100){
if (queryStatus===100){
queryFinished=true;// global declaration to set downlaod button and inspects buttons back to disabled for new queries
queryFinished=true;// global declaration to set downlaod button and inspects buttons back to disabled for new queries
queryResultsMetadataElement.innerHTML=`<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.<i class="material-icons">check_circle</i></p>`;
queryResultsMetadataElement.innerHTML=`<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.<i class="material-icons">check_circle</i></p>`;