diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index c90a4f1..aae173a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -361,7 +361,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $scope.SubmitAttempt = function () { - + $scope.CreateLabExerciseDataToSave(); $("#submitResultHtml").css("display", "block"); @@ -459,7 +459,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, } }); - $scope.scoreResult = (parseInt($scope.CorrectAnswer) / parseInt($scope.inCorrectAnswer)) * 100; + $scope.scoreResult = (parseInt($scope.CorrectAnswer) / parseInt($scope.TotalNumberofQuiz)) * 100; $scope.scoreResult = Math.round($scope.scoreResult); $("#resultLabData tr td:nth-child(2)").each(function (key, value) { if ($(this).text().length == 1) { @@ -921,7 +921,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $scope.usersCorrectQuestData = []; $scope.CreateLabExerciseDataToSave = function () { - + if ($scope.UserAttempt.length == 0) { $("#imgdiv").find("div").each(function () { if ($(this).attr("id").split("-")[0] == "blockans") {