block->d-flex
This commit is contained in:
parent
7153f01be5
commit
cd8f87a56d
|
@ -56,10 +56,10 @@ $(document).ready(function() {
|
|||
createAllDivCanti()
|
||||
const start = performance.now();
|
||||
showCanto(formeprima, '1','1')
|
||||
//$("#InfernoCanto_1").attr('style', 'display:block')
|
||||
$("#InfernoCanto_1").attr('style', 'display: d-flex;')
|
||||
//$("#InfernoCanto_1").removeClass('hidecanto')
|
||||
|
||||
$("#InfernoCanto_1").css("display", "block");
|
||||
//$("#InfernoCanto_1").css("display", "block");
|
||||
drawMinimap("InfernoCanto_1")
|
||||
const end = performance.now();
|
||||
console.log(`Load cantiche time: ${end - start} ms`);
|
||||
|
@ -106,9 +106,6 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
|
|||
sentenceId=$(this).attr('class').split(' ')[0].split('_')
|
||||
var tmplisid=sentenceId[0]+'_'+sentenceId[1]+'_'+sentenceId[3]
|
||||
lisid=tmplisid
|
||||
//console.log('show '+tmplisid)
|
||||
//$(this).trigger('drawSynt');
|
||||
//$(this).trigger('drawSynt')
|
||||
});
|
||||
|
||||
|
||||
|
@ -167,7 +164,8 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
|
|||
showCanto(formeterza, '3',parcid[1])
|
||||
loadedCanti.add(cid)
|
||||
}
|
||||
$("#" + $(this).attr('name').replace(" ", "_")).css("display", "block");
|
||||
//$("#" + $(this).attr('name').replace(" ", "_")).css("display", "block");
|
||||
$("#" + $(this).attr('name').replace(" ", "_")).attr('style', 'display: d-flex;')
|
||||
manageMiniMap(this);
|
||||
$(" .Ma, .Co, .Su, .Pa").each(function(idx, element) {
|
||||
var ele = $(element);
|
||||
|
@ -347,8 +345,8 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
|
|||
|
||||
sid = '.' + sentence.toString()
|
||||
//console.log(sid)
|
||||
$(sid).addClass('font-italic')
|
||||
|
||||
$(sid).addClass('text-info font-italic')
|
||||
/*
|
||||
$(sid).each(function(){
|
||||
//console.log($(this).attr('class'))
|
||||
if ($(this).attr('class').includes(' Ma ')){
|
||||
|
@ -367,16 +365,19 @@ $(" .Ma, .Co, .Su, .Pa").hover(function(idx, element) {
|
|||
$(this).addClass("text-secondary font-weight-normal")
|
||||
}
|
||||
})
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
function resetSentenceStructure(sentence) {
|
||||
/*
|
||||
$(" ." + sentence).removeClass('text-info font-weight-normal')
|
||||
$(" ." + sentence).removeClass('text-primary font-weight-normal')
|
||||
$(" ." + sentence).removeClass('text-secondary font-weight-normal')
|
||||
$(" ." + sentence).removeClass('text-warning font-weight-normal')
|
||||
$(" ." + sentence).removeClass('text-success font-weight-normal')
|
||||
$(" ." + sentence).removeClass('font-italic')
|
||||
*/
|
||||
$(" ." + sentence).removeClass('text-info font-italic')
|
||||
}
|
||||
|
||||
//minimap management
|
||||
|
|
Loading…
Reference in New Issue