diff --git a/front/public/themes/wikilerni/css/style.css b/front/public/themes/wikilerni/css/style.css
index 77a86ab..7a12b4f 100644
--- a/front/public/themes/wikilerni/css/style.css
+++ b/front/public/themes/wikilerni/css/style.css
@@ -1214,12 +1214,20 @@ font-size:1.1em;
padding: 0.5em;
display: block;
list-style-type: none;
- font-size: 0.75em;
+ font-size: 0.85em;
}
#content ul:last-child li
{
margin: 0.25em;
}
+ #content ul:last-child h5
+ {
+ font-size: 1em;
+ }
+ #content ul:last-child p
+ {
+ font-size: 0.85em;
+ }
#content ul:last-child li::before
{
content: '- ';
diff --git a/front/src/questionnaire.js b/front/src/questionnaire.js
index ed2c4b9..1db93e3 100644
--- a/front/src/questionnaire.js
+++ b/front/src/questionnaire.js
@@ -161,7 +161,10 @@ myForm.addEventListener("submit", function(e)
}
else
getOuput+="
"+txtAnswers.responseSavedError.replace("#URL", configTemplate.userHomePage);
- addElement(divResponse, "p", getOuput, "", ["info"]);
+ // on redirige vers le résultat
+ window.location.hash="";
+ const here=window.location;// window.location à ajouter pour ne pas quitter la page en mode "preview"...
+ window.location.assign(here+"explanations");
}
}
xhrSaveAnswer.setRequestHeader("Authorization", "Bearer "+user.token);
@@ -182,7 +185,7 @@ myForm.addEventListener("submit", function(e)
// on redirige vers le résultat
window.location.hash="";
const here=window.location;// window.location à ajouter pour ne pas quitter la page en mode "preview"...
- window.location.assign(here+"response");
+ window.location.assign(here+"response");
}
// + affichage des textes d'explications pour chaque question
const explanations=document.querySelectorAll(".help");
@@ -227,6 +230,7 @@ const checkPreviousResponses = (user) =>
{
DATEANSWER : dateFormat(response[i].createdAt, lang),
NBCORRECTANSWERS : response[i].nbCorrectAnswers,
+ NBQUESTIONS : response[i].nbQuestions,
AVGDURATION : response[i].duration
};
previousAnswersContent+="