aggiunta funzione globale per il reset del risultato

This commit is contained in:
cesare 2022-12-14 08:25:19 +01:00
parent fddcbeee3d
commit 874a8b768f
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,8 @@
/** /**
* *
*/ */
var resetResult;
$(document).ready(function() { $(document).ready(function() {
const categoriegrammaticali={"v":"Verbo", "s":"Sostantivo", "a":"Aggettivo", "p":"Pronome", "r":"Articolo", "b":"Avverbio","e":"Preposizione", const categoriegrammaticali={"v":"Verbo", "s":"Sostantivo", "a":"Aggettivo", "p":"Pronome", "r":"Articolo", "b":"Avverbio","e":"Preposizione",
"c":"Congiunzione", "i":"Interiezione", "n":"Onomastica", "f":"Citazione", "l":"Locuzione", "c":"Congiunzione", "i":"Interiezione", "n":"Onomastica", "f":"Citazione", "l":"Locuzione",
@ -31,6 +33,11 @@ $(document).ready(function() {
let realScale; let realScale;
let mappedElement = ''; let mappedElement = '';
resetResult=function(){
console.log('clean result')
cleanSearchResult()
esprlogica = []
}
hideMinimap(); hideMinimap();
const start = performance.now(); const start = performance.now();
@ -117,7 +124,6 @@ $(document).ready(function() {
//Query //Query
jQuery(document).delegate('#searchcomm, #searchcomm2', 'click', function(e) { jQuery(document).delegate('#searchcomm, #searchcomm2', 'click', function(e) {
e.preventDefault(); e.preventDefault();
manageQuery() manageQuery()
@ -134,8 +140,6 @@ $(document).ready(function() {
}); });
//Utility functions //Utility functions
function drawMinimap(name){ function drawMinimap(name){
@ -454,7 +458,6 @@ $(document).ready(function() {
} }
catch (err) { catch (err) {
console.log(err.message); console.log(err.message);
//$("#loader").hide();
}; };
}; };