Skip to content

Commit

Permalink
updated help view
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiti committed Dec 28, 2012
1 parent 3fa42c7 commit aa5264a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions app/js/controllers/helpCtrl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"use strict";

quizApp.controller('HelpCtrl', function HelpCtrl($scope, $location) {
$scope.back = function(){
quizApp.controller('HelpCtrl', function HelpCtrl($scope, $resource, quizModel, $location) {
$resource('fixtures/questions.json').get(function (data) {
var quiz = quizModel.initialize(data);
$scope.quizSize = quiz.questionnaire.length;
$scope.duration = quiz.duration;
});
$scope.back = function () {
$location.path('/');
}
};
});
4 changes: 2 additions & 2 deletions app/templates/helpView.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<li>The score obtained at the end of the Quiz is sum of weights of the questions answered correctly</li>
<li>All the questions do not have the same weight</li>
<li>If you do not answer the question in the time limit the question is passed</li>
<li>There are {{quiz.questionnaire.length}} questions</li>
<li>Each question has time limit of {{quiz.duration}} seconds </li>
<li>There are {{quizSize}} questions</li>
<li>Each question has time limit of {{duration}} seconds </li>
</ul>
<button data-ng-click="back()">{{locale['back']}}</button>
</section>

0 comments on commit aa5264a

Please sign in to comment.