bug fixed per contesto risultato
This commit is contained in:
parent
95cd519233
commit
f2bf7d2240
|
@ -280,6 +280,9 @@ function getFormaContext(formaid, numversi=3) {
|
||||||
var offset=0;
|
var offset=0;
|
||||||
|
|
||||||
|
|
||||||
|
if (parseInt(formaid) < 33373) {
|
||||||
|
offset=parseInt(formaid)
|
||||||
|
}
|
||||||
|
|
||||||
if (parseInt(formaid) > 33373 && parseInt(formaid) < 66588) {
|
if (parseInt(formaid) > 33373 && parseInt(formaid) < 66588) {
|
||||||
listaforme = formeseconda;
|
listaforme = formeseconda;
|
||||||
|
@ -301,13 +304,14 @@ function getFormaContext(formaid, numversi=3) {
|
||||||
|
|
||||||
maxpos = listaforme.length - 1
|
maxpos = listaforme.length - 1
|
||||||
var pos = 0
|
var pos = 0
|
||||||
const startindex=Math.max(0, (offset-1))
|
var startindex=Math.max(0, (offset-45))
|
||||||
|
|
||||||
|
console.log('Forma id: '+formaid+' startindex '+ startindex+' offset '+offset+' ('+cantica+')')
|
||||||
for (i=startindex; i<listaforme.length; i++){
|
for (i=startindex; i<listaforme.length; i++){
|
||||||
var tmpos=listaforme[i].split('_')[2]
|
var tmpos=listaforme[i].split('_')[2]
|
||||||
if (tmpos==formaid){
|
if (tmpos==formaid){
|
||||||
pos=i;
|
pos=i;
|
||||||
console.log(pos+', '+formaid)
|
console.log(' in pos: '+pos)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue