-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubjective.html
40 lines (40 loc) · 1.96 KB
/
subjective.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
<html ng-app="WordNote">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<title>WordNote - Subjective</title>
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<link href="css/jquery-ui.min.css" rel="stylesheet" />
<link href="css/jquery-ui.structure.min.css" rel="stylesheet" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
</head>
<body>
<div id="problemArea" class="container" ng-controller="SubjectiveController">
<h1 id="word">{{problem.word}}</h1>
<div id="test-info">
{{progress.correct}}/{{progress.correct + progress.incorrect}}<br />
{{(progress.correct + progress.incorrect) / progress.total * 100 | number:1}}%<br />
<div ng-show="correct">
<span class="correct">Correct<br />
[{{prevProblem.word}}] Answer: {{prevProblem.meaning.join(', ')}}</span>
</div>
<div ng-hide="correct || !prevProblem">
<span class="incorrect">Incorrect (My answer: {{prevAnswer}})<br />
[{{prevProblem.word}}] Answer: {{prevProblem.meaning.join(', ')}}</span>
</div>
<progressbar progress=progress></progressbar>
</div>
<div class="list-group" id="choices">
<div ng-repeat="choice in choices" class="list-group-item" id={{ "choice-" + ($index + 1) }} ng-click="selectAnswer($index + 1)">
[{{$index + 1}}]<span class="meaning">{{choice}}</span></div>
</div>
</div>
<script src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/howler.min.js"></script>
<script src="js/wordnote.js"></script>
<script src="js/subjective.js"></script>
</body>
</html>