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