rif in progress
This commit is contained in:
parent
abb74e65a0
commit
49fe4d93eb
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import { getVersiConCitazioni, queryRiferimenti} from './dataMgr.js';
|
import { getVersiConCitazioni, queryRiferimenti, getListaRis} from './dataMgr.js';
|
||||||
import { getJsonQuery, emptyStructCard } from './script_5.0.js';
|
import { getJsonQuery, emptyStructCard } from './script_5.0.js';
|
||||||
import {resetGraphStr} from './syntgraph_5.0.js'
|
import {resetGraphStr} from './syntgraph_5.0.js'
|
||||||
|
|
||||||
|
@ -1489,6 +1489,12 @@ $(document).ready(function() {
|
||||||
//manageMM (cantoDisplayed)
|
//manageMM (cantoDisplayed)
|
||||||
//var currPage = 0;
|
//var currPage = 0;
|
||||||
//var latestPhraseId = "";
|
//var latestPhraseId = "";
|
||||||
|
var telive=getListaRis()
|
||||||
|
for (var ve of telive) {
|
||||||
|
let idve = ve
|
||||||
|
$(ve).removeClass("font-weight-bold mark ")
|
||||||
|
minim.contents().find(ve).removeClass("font-weight-bold mark ")
|
||||||
|
}
|
||||||
drawMinimap(cantoDisplayed, true)
|
drawMinimap(cantoDisplayed, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ var rif_commentatori=[];
|
||||||
var rif_autori = [];
|
var rif_autori = [];
|
||||||
var rif_areetematiche = [];
|
var rif_areetematiche = [];
|
||||||
var rif_fonti = [];
|
var rif_fonti = [];
|
||||||
|
var listaidversi = []
|
||||||
const cantobadgeclassBis = 'badge badge-outline-warning badge-pill'
|
const cantobadgeclassBis = 'badge badge-outline-warning badge-pill'
|
||||||
|
|
||||||
const JSDELIVR_BUNDLES = duckdb.getJsDelivrBundles();
|
const JSDELIVR_BUNDLES = duckdb.getJsDelivrBundles();
|
||||||
|
@ -84,6 +85,9 @@ rif_fonti=result4.map((x) => x['TiFo']);
|
||||||
await conn.close();
|
await conn.close();
|
||||||
|
|
||||||
console.log('done')
|
console.log('done')
|
||||||
|
export function getListaRis(){
|
||||||
|
return listaidversi;
|
||||||
|
}
|
||||||
export function getFontiS() {
|
export function getFontiS() {
|
||||||
|
|
||||||
return rif_fonti
|
return rif_fonti
|
||||||
|
@ -177,21 +181,19 @@ export async function queryRiferimenti(filtro, cid){
|
||||||
canto = canto.replace('0', '')
|
canto = canto.replace('0', '')
|
||||||
}
|
}
|
||||||
spanbadge.appendTo($nctags.filter('[name="' + cantica + 'Canto ' + canto + '"]'))
|
spanbadge.appendTo($nctags.filter('[name="' + cantica + 'Canto ' + canto + '"]'))
|
||||||
if (cid.includes(cantica) && numcid==canto){
|
|
||||||
|
|
||||||
|
|
||||||
for (const tmpvi of tmpv) {
|
for (const tmpvi of tmpv) {
|
||||||
let myveid = '#' + cantica + '_Canto_' + canto + '_' + tmpvi.Verso.split('-')[0]
|
let myveid = '#' + cantica + '_Canto_' + canto + '_' + tmpvi.Verso.split('-')[0]
|
||||||
console.log(myveid)
|
console.log(myveid)
|
||||||
|
listaidversi.push(myveid)
|
||||||
|
if (cid.includes(cantica) && numcid == canto)
|
||||||
$(myveid).addClass("font-weight-bold mark ")
|
$(myveid).addClass("font-weight-bold mark ")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
drawMinimap(cid, true)
|
drawMinimap(cid, true)
|
||||||
|
|
||||||
}
|
}
|
||||||
/*console.log(resxcantica)*/
|
/*console.log(resxcantica)*/
|
||||||
return resxcantica
|
return listaidversi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue