Fissato bug   , modificata grafica badge risultati

This commit is contained in:
Luca Trupiano 2023-12-21 12:48:32 +01:00
parent 16e8cb98aa
commit 03b79ed91f
2 changed files with 9 additions and 3 deletions

View File

@ -75,7 +75,7 @@ html, body {
border-bottom-style: double !important;
}
.badge-outline-info {
.badge-outline-info, .badge-outline-warning {
padding: .1rem .15rem;
margin-left: .15rem;
margin-right: .2rem;
@ -343,6 +343,10 @@ li::marker {
color: #734450;
border-color: #734450;
}
.badge-outline-warning {
color: #325a7d;
border-color: #325a7d;
}
.navig-canto:hover, .citazioneFrase:hover {
color: #734450 !important;
}

View File

@ -16,7 +16,7 @@ $(document).ready(function() {
lsid='';
removeGraph=false;
const cantobadgeclass = 'badge badge-outline-info badge-pill'
const cantobadgeclass = 'badge badge-outline-warning badge-pill'
const sparqlGenerator = sparqljs.Generator;
const myEngine = new Comunica.QueryEngine();
@ -775,12 +775,14 @@ function resetFrasi(){
}
}
function removeHtmlTags(value){
var text = value;
if (text != null){
text = text.replace(/<(.|\n)*?>/g, '');
text = text.replace("&laquo;","");
text = text.replace("&raquo;","");
text = text.replace(/\&nbsp;/g, ' ');
text = text.replace(/[\r\n]+/gm, ' ');
return text;
}
@ -974,7 +976,7 @@ function resetFrasi(){
else {
nomeAutore = comments.NomeAutoreCitazione;
}
if (comments.AutoreCitazione != null) {
if (comments.AutoreCitazione != null) {
rigaNota.append('<b>Autore della fonte:</b><a href="' + comments.AutoreCitazione + '" target="_blank"> <i>' + nomeAutore + '</i> </a>');
} else {
rigaNota.append('<b>Autore della fonte:</b> <i>' + nomeAutore + '</i>');