generazione badge catica

This commit is contained in:
cesare 2025-03-25 16:41:48 +01:00
parent 293b4fd89c
commit 97ab161940
2 changed files with 6 additions and 5 deletions

View File

@ -150,7 +150,7 @@ $(document).ready(function() {
$("#visAiuto").click(function(){ $("#visAiuto").click(function(){
window.open("./Manuale/manualeGUI.html","_blank"); window.open("./manuale/manualeGUI.html","_blank");
}) })
@ -2682,6 +2682,7 @@ $(document).ready(function() {
} }
//ordino la lista dei risultati //ordino la lista dei risultati
listarisultati.sort(function(a, b) { return a - b }); listarisultati.sort(function(a, b) { return a - b });
// ordino la lista delle clausole del risultato // ordino la lista delle clausole del risultato
listaClausoleRisultato.sort(function(a, b) { listaClausoleRisultato.sort(function(a, b) {
@ -2759,8 +2760,8 @@ $(document).ready(function() {
let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0);
if (count > 0) { if (count > 0) {
totResultN += count totResultN += count
var spanbadgecantica = $('<span />'); var spanbadgecantica = $('<span class="badge badge-warning badge-pill mx-2"/>');
spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); //spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2');
spanbadgecantica.append(count) spanbadgecantica.append(count)
spanbadgecantica.appendTo($('#cantica' + i + '-badge')) spanbadgecantica.appendTo($('#cantica' + i + '-badge'))
//$('#cantica' + i).after(spanbadgecantica) //$('#cantica' + i).after(spanbadgecantica)

View File

@ -2757,8 +2757,8 @@ $(document).ready(function() {
let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0); let count = resultsInCantica.reduce((n, x) => n + (x === cantica), 0);
if (count > 0) { if (count > 0) {
totResultN += count totResultN += count
var spanbadgecantica = $('<span />'); var spanbadgecantica = $('<span class="badge badge-warning badge-pill mx-2"/>');
spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2'); //spanbadgecantica.attr('class', 'badge badge-warning badge-pill mx-2');
spanbadgecantica.append(count) spanbadgecantica.append(count)
spanbadgecantica.appendTo($('#cantica' + i + '-badge')) spanbadgecantica.appendTo($('#cantica' + i + '-badge'))
//$('#cantica' + i).after(spanbadgecantica) //$('#cantica' + i).after(spanbadgecantica)