diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index a229bc2..c3736a0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -119,7 +119,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, } ) } - + $scope.labExerciseModuleData = []; $scope.GetQuizByTopic = function () { $rootScope.isLoading = true; @@ -140,7 +140,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, var keywords = $location.search(); $scope.labExercideIdentifier = (keywords.labexercise.replace('.json', '')).split('dat_')[1]; - + $scope.labExerciseModuleData = result.LabExercise; $.each(result.LabExercise, function (index, value) { $scope.LabExerciseName = result.LabExercise[index].Topic; @@ -425,7 +425,13 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $scope.scoreResult = (parseInt($scope.CorrectAnswer) / parseInt($scope.inCorrectAnswer)) * 100; $scope.scoreResult = Math.round($scope.scoreResult); - + $("#resultLabData tr td:nth-child(2)").each(function (key, value) { + if ($(this).text().length == 1) { + var a = parseInt($(this).prev().text()) - 1; + $(this).text($scope.labExerciseModuleData[0].Questions[a].activityTitle); + $(this).next().text("Not Attempted"); + } + }); } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/LabExerc/lab-exercises-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/LabExerc/lab-exercises-detail.html index a81ae76..06cfb89 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/LabExerc/lab-exercises-detail.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/LabExerc/lab-exercises-detail.html @@ -93,7 +93,7 @@
{{LabExerciseName}}
-
performance Report
+
Performance Report
Score:{{scoreResult}}%