Fissato bug , modificata grafica badge risultati
This commit is contained in:
parent
16e8cb98aa
commit
03b79ed91f
|
@ -75,7 +75,7 @@ html, body {
|
||||||
border-bottom-style: double !important;
|
border-bottom-style: double !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-outline-info {
|
.badge-outline-info, .badge-outline-warning {
|
||||||
padding: .1rem .15rem;
|
padding: .1rem .15rem;
|
||||||
margin-left: .15rem;
|
margin-left: .15rem;
|
||||||
margin-right: .2rem;
|
margin-right: .2rem;
|
||||||
|
@ -343,6 +343,10 @@ li::marker {
|
||||||
color: #734450;
|
color: #734450;
|
||||||
border-color: #734450;
|
border-color: #734450;
|
||||||
}
|
}
|
||||||
|
.badge-outline-warning {
|
||||||
|
color: #325a7d;
|
||||||
|
border-color: #325a7d;
|
||||||
|
}
|
||||||
.navig-canto:hover, .citazioneFrase:hover {
|
.navig-canto:hover, .citazioneFrase:hover {
|
||||||
color: #734450 !important;
|
color: #734450 !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ $(document).ready(function() {
|
||||||
lsid='';
|
lsid='';
|
||||||
removeGraph=false;
|
removeGraph=false;
|
||||||
|
|
||||||
const cantobadgeclass = 'badge badge-outline-info badge-pill'
|
const cantobadgeclass = 'badge badge-outline-warning badge-pill'
|
||||||
|
|
||||||
const sparqlGenerator = sparqljs.Generator;
|
const sparqlGenerator = sparqljs.Generator;
|
||||||
const myEngine = new Comunica.QueryEngine();
|
const myEngine = new Comunica.QueryEngine();
|
||||||
|
@ -775,12 +775,14 @@ function resetFrasi(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function removeHtmlTags(value){
|
function removeHtmlTags(value){
|
||||||
var text = value;
|
var text = value;
|
||||||
if (text != null){
|
if (text != null){
|
||||||
text = text.replace(/<(.|\n)*?>/g, '');
|
text = text.replace(/<(.|\n)*?>/g, '');
|
||||||
text = text.replace("«","");
|
text = text.replace("«","");
|
||||||
text = text.replace("»","");
|
text = text.replace("»","");
|
||||||
|
text = text.replace(/\ /g, ' ');
|
||||||
text = text.replace(/[\r\n]+/gm, ' ');
|
text = text.replace(/[\r\n]+/gm, ' ');
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
@ -974,7 +976,7 @@ function resetFrasi(){
|
||||||
else {
|
else {
|
||||||
nomeAutore = comments.NomeAutoreCitazione;
|
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>');
|
rigaNota.append('<b>Autore della fonte:</b><a href="' + comments.AutoreCitazione + '" target="_blank"> <i>' + nomeAutore + '</i> </a>');
|
||||||
} else {
|
} else {
|
||||||
rigaNota.append('<b>Autore della fonte:</b> <i>' + nomeAutore + '</i>');
|
rigaNota.append('<b>Autore della fonte:</b> <i>' + nomeAutore + '</i>');
|
||||||
|
|
Loading…
Reference in New Issue