diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
index 54df43d..b6856f0 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -1291,38 +1291,33 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
$scope.SendLabEXMailToUser = function (User) {
console.log(User);
- html2canvas($("#submitResultHtml"), {
- onrendered: function (canvas) {
+ // html2canvas($("#submitResultHtml"), {
+ // onrendered: function (canvas) {
// var dataURL = canvas.toDataURL("image/jpeg");
// dataURL = dataURL.replace(/^data:image\/(png|jpg);base64,/, "");
// var imageToPrint = new Image();
// imageToPrint.src = dataURL;
// console.log(imageToPrint.src);
// $scope.reportImage = imageToPrint.src;
- console.log($("#submitResultHtml").html());
- // $scope.reportImage = "
" + $("#submitResultHtml").html() + "";
- alert($("#submitResultHtml .panel-heading .row div:nth-child(1)").text());
var htm = '';
htm += 'Question | Activity Title | Status | ';
$("#resultLabData tr").each(function () {
htm += '';
$(this).children("td").each(function () {
-
- if ($(this).text() == " Review") { }
+ if ($(this).text() == " Review") {
+ }
else{
htm += ''+$(this).text()+' | ';
- alert($(this).text());
}
});
htm += '
';
});
-
htm += '
';
$scope.reportImage = ""+$("#submitResultHtml .panel-heading .row div:nth-child(1)").text()+" | Performance Report | " + $("#submitResultHtml .panel-heading .row div:nth-child(3)").text() + " |
Total Question | Correct Answers | Incorrect Answers | " + $("#questionStatus tbody tr td:nth-child(1)").text() + " | " + $("#questionStatus tbody tr td:nth-child(2)").text() + " | " + $("#questionStatus tbody tr td:nth-child(3)").text() + " |
" + htm + "";
$scope.reportTitle = "Lab Exercise Report for " + $("#submitResultHtml .panel-heading .row div:nth-child(1)").text();
- }
- });
+ // }
+ // });
LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle).then(