From 42de3ec32ecd5e6c73fcde3f9b854fb9377343dd Mon Sep 17 00:00:00 2001 From: nicola Date: Sat, 10 Dec 2022 12:48:37 +0100 Subject: [PATCH] Inserite in tabella le card delle cantiche e attivato loader per esecuzione query --- index_3.0.html | 441 ++++++++++++++++++++++++--------------------- js/cesareBrowse.js | 12 +- 2 files changed, 245 insertions(+), 208 deletions(-) diff --git a/index_3.0.html b/index_3.0.html index 14918fc..b202bdc 100644 --- a/index_3.0.html +++ b/index_3.0.html @@ -113,74 +113,84 @@
- 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
12345
678910
1112131415
1617181920
2122232425
2627282930
31323334
@@ -195,72 +205,82 @@
- 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
12345
678910
1112131415
1617181920
2122232425
2627282930
313233
@@ -275,72 +295,82 @@
- 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
12345
678910
1112131415
1617181920
2122232425
2627282930
313233
@@ -1842,9 +1872,12 @@ - - - - + + + \ No newline at end of file diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 9c70cd7..83be8e7 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -27,6 +27,7 @@ $(document).ready(function() { let mappedElement = ''; hideMinimap(); + showCantica('Inferno') $('#cantica2').css({ 'opacity': 0.40 }); @@ -259,7 +260,7 @@ $(document).ready(function() { viewer.style.paddingTop = `${winRatio * 100}%`; minimapContent.style.transform = `scale(${realScale})`; minimapContent.style.width = `${(100 / realScale)}%`; - minimapContent.style.height = `${(100 / realScale)}%`; + minimapContent.style.height = `${(100 / realScale)}%`; //minimapContent.style.height=`100%`; minimapContent.style.float = 'right'; } @@ -293,7 +294,7 @@ $(document).ready(function() { function showCantica(cantica) { var listaCanti = new Set() var setVersi = new Set() - + $("#loader").show(); containerForme = formeprima if (cantica == 'Paradiso') containerForme = formeterza @@ -312,6 +313,7 @@ $(document).ready(function() { forma.cantica = cantica; createSpanForme(forma) } + $("#loader").hide(); return } @@ -484,6 +486,7 @@ $(document).ready(function() { //execute query async function executeQuerySearch(query) { + $("#loader").show(); seachbBindingsStream = await myEngine.queryBindings(query, { sources: [{ type: 'sparql', value: sparqlEndpoint },], }); //console.log(query) alert(query) @@ -549,14 +552,15 @@ $(document).ready(function() { showMinimap(currentMinimap) } - + $("#loader").hide(); }); } catch (err) { console.log(err.message); - $("#loader").hide(); + //$("#loader").hide(); }; + };