From a256eaaacf7628f4e283ebc0114c32e7ef1060fc Mon Sep 17 00:00:00 2001 From: cesare Date: Tue, 21 Feb 2023 16:30:02 +0100 Subject: [PATCH] aggiunta funzione manageMM per aggiornamento minimap (test) --- js/cesareBrowse.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 95c96c1..9d0f37e 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -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(){