numverso, nuovo stile

This commit is contained in:
cesare 2023-02-01 10:31:28 +01:00
parent 71f84da39c
commit 7153f01be5
2 changed files with 23 additions and 5 deletions

View File

@ -31,6 +31,14 @@
} }
.numverso {
font-size: 12px;
color: gray;
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue,
Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans,
sans-serif;
}
/* /*
Minimap Minimap

View File

@ -85,7 +85,7 @@ $(" .Ma, .Co, .Su, .Pa").each(function(idx, element) {
$( " .Ma, .Co, .Su, .Pa " ).dblclick(function() { $( " .Ma, .Co, .Su, .Pa " ).dblclick(function() {
sentenceId=$(this).attr('class').split(' ')[0].replace('$','') sentenceId=$(this).attr('class').split(' ')[0].replace('$','')
console.log(sentenceId) console.log(lisid)
if (shownSentenceList.has(sentenceId)){ if (shownSentenceList.has(sentenceId)){
resetSentenceStructure(sentenceId) resetSentenceStructure(sentenceId)
shownSentenceList.delete(sentenceId) shownSentenceList.delete(sentenceId)
@ -106,8 +106,8 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
sentenceId=$(this).attr('class').split(' ')[0].split('_') sentenceId=$(this).attr('class').split(' ')[0].split('_')
var tmplisid=sentenceId[0]+'_'+sentenceId[1]+'_'+sentenceId[3] var tmplisid=sentenceId[0]+'_'+sentenceId[1]+'_'+sentenceId[3]
lisid=tmplisid lisid=tmplisid
console.log('show '+tmplisid) //console.log('show '+tmplisid)
$(this).trigger('drawSynt'); //$(this).trigger('drawSynt');
//$(this).trigger('drawSynt') //$(this).trigger('drawSynt')
}); });
@ -180,6 +180,13 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
show: false show: false
}); });
ele.hover(function(idx, element) {
sentenceId=$(this).attr('class').split(' ')[0].split('_')
var tmplisid=sentenceId[0]+'_'+sentenceId[1]+'_'+sentenceId[3]
lisid=tmplisid
});
}); });
@ -569,8 +576,11 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
function createDivVersoNew(cantica, num, canto) { function createDivVersoNew(cantica, num, canto) {
var elementoverso = $('<p />') var elementoverso = $('<p />')
var spannum=$('<span />')
elementoverso.append(num + ". ") spannum.append(num + ". ")
spannum.attr('class', 'numverso text-muted')
elementoverso.append(spannum)
//elementoverso.append(num + ". ")
elementoverso.attr("style", "line-height: 0.5em") elementoverso.attr("style", "line-height: 0.5em")
elementoverso.attr('class', 'f6 text-dark text-nowrap font-weight-lighter '+cantica+' '+canto) elementoverso.attr('class', 'f6 text-dark text-nowrap font-weight-lighter '+cantica+' '+canto)