diff --git a/Tools/Scripts/pensum.js b/Tools/Scripts/pensum.js index 0e76321..c94c417 100644 --- a/Tools/Scripts/pensum.js +++ b/Tools/Scripts/pensum.js @@ -7,7 +7,9 @@ function materia(nombre,codigo,unid,semest,horas,prelacion = [0]) { this.prelac = prelacion } -let documento = "" +let documento = "", + bann = document.querySelector('section.bann'), + asideOpt = bann.querySelectorAll('section.bann>div'); let table = { smain:document.querySelector('section.main'), @@ -265,7 +267,7 @@ let table = { 'CJU-37314', 4, 6,[4,0,0], - []), + 72), new materia( 'Defensa VI', 'DIN-31163', @@ -417,7 +419,9 @@ let table = { }) } // Prel per Unids - } else if (this.unidCrdit >= e.prelac && this.MateriasSemestres[i-1].every(x=>this.Materias[x].Aprobed)) { + + } else if (this.unidCrdit >= e.prelac && this.MateriasSemestres.every(y=>y.every(x=>this.Materias[x].semest >= i+1 || (this.Materias[x].semest < i+1 && this.Materias[x].Aprobed)))) { + // console.log(below()) if (e.Aprobed) aproach(this.unidCrdit - e.unid >= e.prelac) else aproach(true) } @@ -498,7 +502,7 @@ let table = { let totHors = 0 this.Materias[materia].horas.forEach(e=>totHors+=e) if (totHors !=0 ) { - tempString+=`

Horas ${totHors}