-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathanswers.html
86 lines (83 loc) · 3.66 KB
/
answers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<h2>Anwsers</h2>
<div ng-if="currentQuestion.type == 'single'">
<div class="form-check" ng-repeat="option in currentQuestion.options">
<input class="form-check-input" type="radio" name="{{currentQuestion.id}}" id="{{option.id}}" value="{{option.id}}" ng-model="currentQuestion.answer">
<label class="form-check-label" for="{{option.id}}"
ng-class="{
'text-success':currentQuestion.isEvaluated && currentQuestion.correct.includes(option.id),
'text-danger':currentQuestion.isEvaluated && currentQuestion.wrong.includes(option.id)
}"
ng-bind-html="option.description"
>
</label>
<p
ng-if="option.explanation && currentQuestion.isEvaluated"
ng-class="{
'text-success':currentQuestion.isEvaluated && currentQuestion.correct.includes(option.id),
'text-danger':currentQuestion.isEvaluated && currentQuestion.wrong.includes(option.id)
}"
ng-bind-html="option.explanation"
>
</p>
</div>
</div>
<div ng-if="currentQuestion.type == 'multiple'">
<div class="form-check" ng-repeat="option in currentQuestion.options">
<input class="form-check-input"
type="checkbox"
name="{{currentQuestion.id}}"
id="{{option.id}}"
checklist-model="currentQuestion.answer"
checklist-value="option.id">
<label class="form-check-label" for="{{option.id}}"
ng-class="{
'text-success':currentQuestion.isEvaluated && currentQuestion.correct.includes(option.id),
'text-danger':currentQuestion.isEvaluated && currentQuestion.wrong.includes(option.id)
}"
ng-bind-html="option.description"
>
</label>
<p
ng-if="option.explanation && currentQuestion.isEvaluated"
ng-class="{
'text-success':currentQuestion.isEvaluated && currentQuestion.correct.includes(option.id),
'text-danger':currentQuestion.isEvaluated && currentQuestion.wrong.includes(option.id)
}"
ng-bind-html="option.explanation"
>
</p>
</div>
</div>
<!--<div class="form-check">-->
<!--<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>-->
<!--<label class="form-check-label" for="exampleRadios1">-->
<!--expr1-->
<!--</label>-->
<!--</div>-->
<!--<div class="form-check">-->
<!--<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>-->
<!--<label class="form-check-label" for="exampleRadios1">-->
<!--expr2-->
<!--</label>-->
<!--</div>-->
<!--<div class="form-check">-->
<!--<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>-->
<!--<label class="form-check-label" for="exampleRadios1">-->
<!--expr3-->
<!--</label>-->
<!--</div>-->
<!--<div class="form-check">-->
<!--<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>-->
<!--<label class="form-check-label text-danger" for="exampleRadios1">-->
<!--expr4-->
<!--</label>-->
<!--</div>-->
<!--<div class="form-check">-->
<!--<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>-->
<!--<label class="form-check-label text-success" for="exampleRadios1">-->
<!--None of them-->
<!--</label>-->
<!--</div>-->
<!--<p class="text-success">-->
<!--Correct-->
<!--</p>-->