pbl skip + clavier ENTER
This commit is contained in:
parent
ab033c30f7
commit
e47a0c1dee
|
@ -476,7 +476,7 @@ function animate() {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// page explication analyse
|
||||
if (page_explication_analyse){
|
||||
console.log("boucle explication analyse")
|
||||
//console.log("boucle explication analyse")
|
||||
// on enlève les touches du clavier associé à la page vues
|
||||
document.removeEventListener("keydown", action_clavier_vues)
|
||||
// inti clavier
|
||||
|
@ -493,7 +493,7 @@ function animate() {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// page analyse
|
||||
if (page_analyse){
|
||||
console.log("boucle analyse")
|
||||
//console.log("boucle analyse")
|
||||
// on enlève les touches du clavier associé à la page vues
|
||||
document.removeEventListener("keydown", action_clavier_explication_analyse)
|
||||
// inti clavier
|
||||
|
|
|
@ -320,7 +320,7 @@ function init_explication(){
|
|||
|
||||
function traitement_explications(idx_i_explication, idx_j_explication){
|
||||
temps_pop = 8000
|
||||
console.log(num_action)
|
||||
//console.log(num_action)
|
||||
|
||||
// Pour déplacer le mesh, il faut initialiser ces deux variables
|
||||
if (num_action==0){
|
||||
|
@ -553,15 +553,17 @@ function action_clavier_explication(event){
|
|||
|
||||
// valider
|
||||
case 'Enter':
|
||||
console.log('clavier')
|
||||
//console.log('clavier')
|
||||
if (num_action == nb_action && page_explication){
|
||||
action_fin_explication()
|
||||
}
|
||||
if (page_explication_bis){
|
||||
action_bouton_commencer_explication()
|
||||
}
|
||||
if (num_action < nb_action && condition_suivant.type =="bouton"){
|
||||
action_suivante()}
|
||||
if (page_explication && num_action < nb_action){
|
||||
if(condition_suivant.type =="bouton"){
|
||||
action_suivante()}
|
||||
}
|
||||
|
||||
if (page_warning && num_warning < (warnings_page_1.length-1)){
|
||||
action_bouton_suivant_warning()}
|
||||
|
@ -571,9 +573,12 @@ function action_clavier_explication(event){
|
|||
|
||||
break;
|
||||
case 'Backspace':
|
||||
if (num_action > 0){
|
||||
if (num_action > 0 && page_explication){
|
||||
action_previous_explication()
|
||||
}
|
||||
if (num_warning>0 && page_warning){
|
||||
action_bouton_avant_warning()
|
||||
}
|
||||
break;
|
||||
|
||||
case 'ArrowRight' :
|
||||
|
|
|
@ -79,10 +79,15 @@ function afficher_bouton_skip_inscription(){
|
|||
|
||||
function action_bouton_skip_inscription(){
|
||||
page_inscription = false
|
||||
page_explication_bis = true
|
||||
//page_explication_bis = true
|
||||
page_warning = true
|
||||
//page_vues = true
|
||||
skiped = true
|
||||
interactions.push({"time": new Date().getTime(), "type": "skip tutorial - bouton commencer choix vues"})
|
||||
interactions.push({"time": new Date().getTime(), "type": "skip tutorial - debut warning"})
|
||||
document.removeEventListener("keydown", action_clavier_inscription)
|
||||
num_action = 0
|
||||
nb_action = 1
|
||||
init_clavier_explication()
|
||||
//gestion des données personnelle de l'utilisateur
|
||||
//gestion_donnees_personnelles()
|
||||
|
||||
|
|
Loading…
Reference in New Issue