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