for(let k in datas) {
let n = (parseInt(k) + 1)
let icon = getSpriteIcon("quiz-ok")
- let $el = $(".active-screen .question-multiple .list-item:nth-of-type("+n+")")
+ let $el = $(".active-screen .question-multiple .list-item:nth-of-type("+n+") label")
$el.addClass(datas[k])
- if(datas[k] !== "ok") {
+ if(datas[k] === "nok") {
icon = getSpriteIcon("quiz-wrong")
}
if(datas[k] !== "neutral") {
},
- getFormData: (responses) => {
+ getAll: function() {
+ return this.quiz.questions
+ },
+
+ byPosition: function(pos) {
+ return this.quiz.data.questions[parseInt(pos)]
+ },
+
+ current: function() {
+ let currentPosition = $(".active-screen").data("position");
+ return this.byPosition(currentPosition)
+ },
+
+ getFormData: function(responses) {
+ //
},
}
max-width: 177px
.access
- width: 100%
- max-width: 34px
+ width: 34px
height: 34px
border-radius: 4px
+font-size(16)
margin-left: 16px
+flex-config(center,false,false,center)
&.space
- max-width: 70px
+ width: 70px
&.infos
- max-width: 40px
+ width: 40px
&.ok
+opacity(.24, background-color, $ok-color)
+
+ &.ok,
+ &.missed
+ svg
+ color: $ok-color
&.nok
+opacity(.24, background-color, $nok-color)
+ svg
+ color: $nok-color
+
&.ok,
- &.nok
+ &.nok,
+ &.missed
svg
width: 15px
height: 15px
//
&.missed
//
+ +opacity(.80,background-color,$neutral-color)
*
z-index: 1
position: absolute
top: 0
left: 0
+ &.nok:after
+ background: transparent
+ &.missed:after
+ +opacity(.24,background-color,$ok-color)
@foreach($data->questions as $key => $question)
@include('quizv2.screens.question_'.$question['type'], ['data'=> $question, 'max' => $totalQuestion, 'position' => $key, 'alphabet' => $alphabet])
@endforeach
-
<div id="anim"></div>
</div>
</div>