-Debug exam mode (and open too...): Vue.js warning + shift questions (not showing solution)
-
 Replace underscore by lodash (or better: ES6)
 Replace socket.io by Websockets ( https://www.npmjs.com/package/websocket )
 
 
                                        this.answers.indices = indices.concat( _.shuffle(remainingIndices) );
                                }
                                this.answers.index = !!paper ? paper.inputs.length : 0;
-                               Vue.nextTick(statementsLibsRefresh);
+                               this.answers.displayAll = assessment.display == "all";
+                               this.answers.showSolution = false;
                                this.stage = 2;
                        };
                        if (assessment.mode == "open")
                        if (assessment.mode == "open")
                        {
                                this.stage = 4;
+                               this.answers.showSolution = true;
                                return;
                        }
                        $.ajax("/end/assessment", {
                setAnswers: function(m) {
                        for (let i=0; i<m.answers.length; i++)
                                assessment.questions[i].answer = m.answers[i];
+                       this.answers.showSolution = true;
                        this.stage = 4;
                },
        },
 
                        domTree
                );
        },
+       mounted: function() {
+               statementsLibsRefresh();
+       },
        updated: function() {
                // TODO: next line shouldn't be required: questions wordings + answer + options
                // are processed earlier; their content should be updated at this time.
 
        right: 0;
 }
 
-button#sendAnswer {
+button.sendAnswer {
        display: block;
        margin: 0 auto;
 }
 
                                                .introduction(v-html="assessment.introduction")
                                #stage2_4(v-if="[2,4].includes(stage)")
                                        if assessment.time > 0
-                                               .card(v-if="stage==2")
+                                               .card(v-show="stage==2")
                                                        .timer.center {{ countdown }}
                                        .card
-                                               button#sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
+                                               button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
                                                statements(:questions="assessment.questions" :answers="answers")
+                                               if assessment.display == "all"
+                                                       button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
                                #stage3(v-show="stage==3")
                                        .card
                                                .finish Exam completed ☺ ...don't close the window!