mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 17:10:41 +00:00
Some more documentation!
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
// This callback is called on a socket.on "corpus_analysis_send_meta_data".
|
||||
// Handels incoming corpus metadata
|
||||
function recvMetaData(payload) {
|
||||
results.metaData.init(payload)
|
||||
console.log(results.metaData);
|
||||
}
|
||||
|
||||
// This callback is called in socket.on "corpus_analysis_inspect_match" but
|
||||
// only if the response.type is "sub-results".
|
||||
// Saves the incoming inspect match results into results.subResultsData.
|
||||
function saveSubResultsChoices(response) {
|
||||
console.log("Recieve match with context");
|
||||
results.subResultsData.init();
|
||||
@ -28,8 +33,9 @@ function saveSubResultsChoices(response) {
|
||||
|
||||
}
|
||||
|
||||
// This callback is called on socket.on "query".
|
||||
// Does some hiding, showing disabling etc.
|
||||
function querySetup(payload) {
|
||||
// This is called when a query was successfull
|
||||
// some hiding and resetting
|
||||
let textarea = subResultsIdListElement.getElementsByTagName("textarea")[0];
|
||||
textarea.innerText = "";
|
||||
@ -54,6 +60,8 @@ function querySetup(payload) {
|
||||
results.data.match_count = payload.match_count;
|
||||
}
|
||||
|
||||
// This callback is called on socket.on "query_results"
|
||||
// this handels the incoming result chunks
|
||||
function queryRenderResults(payload) {
|
||||
let resultItems; // array of built html result items row element
|
||||
// This is called when results are transmitted and being recieved
|
||||
|
Reference in New Issue
Block a user