aggiunta funzione manageMM per aggiornamento minimap (test)

This commit is contained in:
cesare 2023-02-21 16:30:02 +01:00
parent 9b40d4c770
commit a256eaaacf
1 changed files with 16 additions and 2 deletions

View File

@ -435,8 +435,9 @@ $(" ."+formaClass).hover(function(idx, element) {
//visualizzo
$("#vistaFrasi").attr('style', 'display: d-flex;');
manageMM("#vistaFrasi")
drawMinimap("#vistaFrasi")
//drawMinimap("#vistaFrasi")
});
@ -486,7 +487,8 @@ $(" ."+formaClass).hover(function(idx, element) {
//$("#" + $(this).attr('name').replace(" ", "_")).css("display", "block");
$("#" + $(this).attr('name').replace(" ", "_")).attr('style', 'display: d-flex;')
drawMinimap("#" + $(this).attr('name').replace(" ", "_"))
//drawMinimap("#" + $(this).attr('name').replace(" ", "_"))
manageMM("#" + $(this).attr('name').replace(" ", "_"))
if (selectedVista=='frasi'){
loadFrasi();
}
@ -494,6 +496,7 @@ $(" ."+formaClass).hover(function(idx, element) {
});
//Query
jQuery(document).delegate('#searchcomm, #searchcomm2', 'click', function(e) {
@ -652,6 +655,17 @@ $(" ."+formaClass).hover(function(idx, element) {
//drawMinimap(cantoDisplayed)
}
function manageMM(name){
currentMinimap = name;
let testhtml = $(currentMinimap)[0].outerHTML;
let minim=$(" .minimap__content")
let bm=minim.contents().find(' .blog-main')
bm.empty()
bm.append(testhtml)
getDimensionsDiv();
}
var unitaRicerca='forma'
function manageQuery(){