From 82660e65c3ff358a68376951b73a3ab3c7892170 Mon Sep 17 00:00:00 2001 From: mpelissi Date: Wed, 22 Mar 2023 16:54:11 +0100 Subject: [PATCH] area texte anlyse ok --- static/MAIN.js | 6 +++++- static/fonctions_analyse.js | 9 +++++---- static/fonctions_choix_vues.js | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/static/MAIN.js b/static/MAIN.js index 73d59dc..287596a 100644 --- a/static/MAIN.js +++ b/static/MAIN.js @@ -510,7 +510,11 @@ function animate() { ctx.clearRect(0, 0, canvas.width, canvas.height) traitement_analyse() - + try { + if (!input2.matches(":focus")) { + input2.focus() + } + } catch (e) {} } //////////////////////////////////////////////////////////////////////////////// diff --git a/static/fonctions_analyse.js b/static/fonctions_analyse.js index 9faf2ab..1865668 100644 --- a/static/fonctions_analyse.js +++ b/static/fonctions_analyse.js @@ -14,7 +14,8 @@ function init_variable_analyse(){ // } checkbox_clicked_courant = {idx_checkbox:[], mots:[]} // Analayse des choix avec les checkboxs - keywords = shuffle(["Side view", "Front view", "Global view", "Eyes contact", "Pleasant", "Recognizable"]).concat(["Other:"]) + keywords_init = ["Side view", "Front view", "Global view", "Eyes contact", "Pleasant", "Recognizable"] + keywords = shuffle(keywords_init).concat(["Other:"]) y_recap = 0.2*window.innerHeight taille_texte_explication = 0.01*window.innerWidth @@ -47,8 +48,8 @@ function affichage_analyse(idx_tache){ for (let i=0; i