From b0665952ec99296a70b4dc4e4adf677f4303189c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Feb 2018 10:35:45 +0530 Subject: [PATCH] Commit Changes --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index a0fffa5..a58dea0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -239,15 +239,18 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location $scope.resetQuiz(); $scope.ShowHideDiv(); - for (var i = 0; i <= $rootScope.selectedDivArray.length - 1; i++) { - if ($scope.quiznumber == $rootScope.selectedDivArray[i].questionNo) { - document.getElementById($rootScope.selectedDivArray[i].droppedID).innerHTML = $rootScope.selectedDivArray[i].draggedText; - // $('#'+$rootScope.selectedDivArray[i].droppedID).html($rootScope.selectedDivArray[i].draggedText); - document.getElementById($rootScope.selectedDivArray[i].droppedID).style.display = "none"; - // $('#'+$rootScope.selectedDivArray[i].draggedID).css("display","none!important"); - } - } + + //for (var i = 0; i <= $rootScope.selectedDivArray.length - 1; i++) { + // if ($scope.quiznumber == $rootScope.selectedDivArray[i].questionNo) { + // alert($rootScope.selectedDivArray[i].draggedText); + // document.getElementById($rootScope.selectedDivArray[i].droppedID).innerHTML = $rootScope.selectedDivArray[i].draggedText; + // // $('#'+$rootScope.selectedDivArray[i].droppedID).html($rootScope.selectedDivArray[i].draggedText); + // document.getElementById($rootScope.selectedDivArray[i].droppedID).style.display = "none"; + // // $('#'+$rootScope.selectedDivArray[i].draggedID).css("display","none!important"); + // } + + //} } @@ -312,15 +315,15 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location // alert($scope.dragableId); // $scope.dragableText = $("#" + $scope.dragableId).text(); - $rootScope.selectedDivArray.push({ - "questionNo": $scope.quiznumber, - "draggedID": $scope.dragableId, - "draggedText": $scope.dragableText, - "droppedID": id - }); + //$rootScope.selectedDivArray.push({ + // "questionNo": $scope.quiznumber, + // "draggedID": $scope.dragableId, + // "draggedText": $scope.dragableText, + // "droppedID": id + //}); - console.log($rootScope.selectedDivArray); + //console.log($rootScope.selectedDivArray); var keywords = $location.search(); $scope.labExercideIdentifier = (keywords.labexercise.replace('.json', '')).split('dat_')[1]; @@ -543,7 +546,7 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location title: $scope.activityTitle, } - alert($scope.LabExerciseAttemptedData.MaxScore + " " + $scope.LabExerciseAttemptedData.Score); + console.log($scope.LabExerciseAttemptedData.MaxScore + " " + $scope.LabExerciseAttemptedData.Score); if ($scope.MaxScore == $scope.Score) { $scope.usersCorrectQuestData.push({ -- libgit2 0.21.4