From 4e94e2f625b5a4969f3665895e3b089c71dc2bc4 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 9 Aug 2018 18:08:50 +0530 Subject: [PATCH] commit Changes --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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 += ''; $("#resultLabData tr").each(function () { htm += ''; $(this).children("td").each(function () { - - if ($(this).text() == " Review") { } + if ($(this).text() == " Review") { + } else{ htm += ''; - alert($(this).text()); } }); htm += ''; }); - htm += '
QuestionActivity TitleStatus
'+$(this).text()+'
'; $scope.reportImage = "
"+$("#submitResultHtml .panel-heading .row div:nth-child(1)").text()+"Performance Report" + $("#submitResultHtml .panel-heading .row div:nth-child(3)").text() + "
Total QuestionCorrect AnswersIncorrect 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( -- libgit2 0.21.4