Created
December 12, 2012 10:47
-
-
Save anonymous/4266841 to your computer and use it in GitHub Desktop.
María Alonso y Pedro Arias : No nos ha dado tiempo a terminar el segundo apartado (siguiente/anterior) pero funcionaría de la misma forma cambiando el +1 por un menos uno y la condición del extremo que seria ==0. Apruebanos andaaa (xD)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var posicion= 0; | |
var mi_array= new Array(); | |
function presentacion(n){ //numero de diapositivas// | |
for(var i=0; i<=n; i++){ | |
mi_array[i] = i; | |
console.log('numeroDiapositivas'); | |
} | |
} | |
function siguiente(){ | |
if(posicion == x+1){ | |
console.log('siguienteDiapositiva'); | |
}else if(posicion == n){ | |
console.log('fin'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment