prove con loader

This commit is contained in:
cesare 2024-01-04 17:12:59 +01:00
parent ca1d1c4a82
commit 05990b1252
1 changed files with 9 additions and 0 deletions

View File

@ -700,6 +700,8 @@ function loadDialoghi() {
var diaclass=dialoghi[india]['Cnt'].replace('_so','')
if(diaclass.split('_')[0]!=aca)
continue;
if(diaclass.split('_')[1]!=cantoDisplayed.split('_')[1])
continue;
$(cantoDisplayed).find(' .'+diaclass).each(function() {
//#1f78b4
$(this).css('color', '#1f78b4');
@ -1400,7 +1402,9 @@ function resetFrasi(){
myquery = new sparqlGenerator().stringify(jsonQuery)
console.log(myquery)
executeQuerySearch(myquery)
}
@ -1667,6 +1671,7 @@ function resetFrasi(){
seachbBindingsStream = await myEngine.queryBindings(query, { sources: [{ type: 'sparql', value: sparqlEndpoint },], });
//console.log(query)
alert(query)
$("#loader").show();
try {
var result = new Set()
var resultClauses = new Set()
@ -1854,16 +1859,20 @@ function resetFrasi(){
console.log('badge end...')
//calcolo numero dei contesti
countResultContexts()
$("#loader").hide();
});
queryExecuted = true;
$(cantoDisplayed).attr('style', 'display: d-flex;');
$("#vistaFrasi").css("display", "none");
//$("#loader").hide();
}
catch (err) {
console.log(err.message);
};
};