diff --git a/400-SOURCECODE/AIAHTML5.API/AIAHTML5.API.csproj b/400-SOURCECODE/AIAHTML5.API/AIAHTML5.API.csproj index 3b104ce..2a9cbf9 100644 --- a/400-SOURCECODE/AIAHTML5.API/AIAHTML5.API.csproj +++ b/400-SOURCECODE/AIAHTML5.API/AIAHTML5.API.csproj @@ -178,7 +178,7 @@ - True + False True 63874 / diff --git a/400-SOURCECODE/AIAHTML5.API/Web.config b/400-SOURCECODE/AIAHTML5.API/Web.config index 752b3e8..15cbdb2 100644 --- a/400-SOURCECODE/AIAHTML5.API/Web.config +++ b/400-SOURCECODE/AIAHTML5.API/Web.config @@ -63,9 +63,8 @@ - - - + + diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js index beb8ecd..4025835 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js @@ -2974,6 +2974,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ width: $rootScope.AIWindowData[i].width }, imageId: $rootScope.AIWindowData[i].imageId, + imgLeft:$rootScope.AIWindowData[i].imgLeft, minimised: $rootScope.AIWindowData[i].minimised, windowTitle: $rootScope.AIWindowData[i].currentViewTitle, maximised: $rootScope.AIWindowData[i].maximised, @@ -3206,7 +3207,6 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ height: $rootScope.AAWindowData[i].height }, id: $rootScope.AAWindowData[i].id, - imgLeft:$rootScope.AAWindowData[i].imgLeft, showSelectedPins: $rootScope.AAWindowData[i].isShowSelectedPins, hideCallOuts: false,//N showAllPins: $rootScope.AAWindowData[i].isShowAllPins, diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 205b537..b8b9f3a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -525,7 +525,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } ; - //window.parent.closeIFrame(); window.parent.AIAModuleOpenResourceInfo(DaopenData); } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 5a037b5..b4fe38b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -611,11 +611,17 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data $rootScope.homeURL =x.substring(0,pos+1); var hTopicUrl = $rootScope.homeURL + "content/help/index.html"; - var aboutADAM = $rootScope.homeURL + "content/help/about/Adam_Credits_AIA5.html"; + var productCredit = $rootScope.homeURL + "content/help/about/Adam_Credits_AIA5.html"; + var customerSupport = "http://adameducation.com/Contact"; + var userAgreement = "https://store.adameducation.com/EmailTemplate/EULA.html"; + var aboutADAM = "https://www.adam.com/about"; + $("#helplinkId").append("
  • Help Topics
  • "); - $("#helplinkId").append("
  • Customer Support
  • "); + $("#helplinkId").append("
  • Customer Support
  • "); $("#helplinkId").append(""); + $("#helplinkId").append("
  • End User License Agreement
  • "); + $("#helplinkId").append("
  • Product Credits
  • "); $("#helplinkId").append("
  • About A.D.A.M.
  • "); } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index ea1b814..c9c0c96 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -233,8 +233,6 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, window.parent.AIAModuleOpenResourceInfo(LEopenData); - window.parent.closeIFrame(); - } else { // $rootScope.menuLabExer = 1;//used in home controller @@ -488,7 +486,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, var userloginid = JSON.parse(localStorage.getItem('loggedInUserDetails')).Id; $scope.SetLEwindowStoreData(windowviewid, 'userloginid', userloginid); - + $timeout(function () { var isMaximize = $scope.GetLEwindowStoreData(windowviewid, 'maximised'); @@ -512,15 +510,62 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $scope.SetLEwindowStoreData(windowviewid, 'width', $scope.jsPanelWidth); $scope.SetLEwindowStoreData(windowviewid, 'height', $scope.jsPanelHeight); - $scope.setControlsIDs(windowviewid); - $scope.createScopeVariable(windowviewid); - - $scope.labViewID = "LabView_" + windowviewid; - var labViewElement = angular.element(document.getElementById($scope.labViewID)); - - $compile(labViewElement.contents())($scope); - - + + $scope.setControlsIDs(windowviewid); + + var timeintval = null; + timeintval = $interval(function () { + $scope.labViewID = "LabView_" + windowviewid; + var labViewElement = angular.element(document.getElementById($scope.labViewID)); + if (document.getElementById($scope.labViewID) != null) + { + var panelBody = document.getElementById("panelbodyDiv_" + windowviewid); + var len = panelBody!=null?(panelBody.id).split("_").length:0; + if (len>1) { + $scope.stopLabIntervalLoader(); + $compile(labViewElement.contents())($scope); + $scope.createScopeVariable(windowviewid); + + //wait until DOM element load of Lab + + $scope.PanelActivity(); + $scope.JsPanelclick(windowviewid); + + var canvasDIvHeight = $('#labImagePanel_' + windowviewid+ " .jsPanel-content").height(); + $('#panelbodyDiv_' + windowviewid).css("height",canvasDIvHeight-100); + $('#resultbodyDiv_' + windowviewid).css("height",canvasDIvHeight-90); + + $scope.LoadLabExercise(windowviewid,userloginid,Identifier); + + } + else + { + $scope.setControlsIDs(windowviewid); + console.log("waiting for loading content"); + } + + } + else + { + $scope.setControlsIDs(windowviewid); + console.log("waiting for loading view scope"); + } + + + },100); + $scope.stopLabIntervalLoader = function () { + if (angular.isDefined(timeintval)) { + $interval.cancel(timeintval); + timeintval = undefined; + } + }; + + + }, 100); + } + + $scope.LoadLabExercise = function (windowviewid,userloginid,Identifier) { + var labExerciseInfo = { userId: userloginid, identifier: Identifier, @@ -528,13 +573,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, LabExerciseService.GetLabExercise(labExerciseInfo) .then( function (labResult) { - - $timeout(function () { - var canvasDIvHeight = $('#labImagePanel_' + windowviewid+ " .jsPanel-content").height(); - $('#panelbodyDiv_' + windowviewid).css("height",canvasDIvHeight-100); - $('#resultbodyDiv_' + windowviewid).css("height",canvasDIvHeight-90); - $scope.JsPanelclick(windowviewid); - + if (labResult != undefined && labResult.lastQuestion > 0 && labResult != AIAConstants.SAVED_LAB_EXERCISE_NOT_FOUND) { $scope.SetLEwindowStoreData(windowviewid, 'SavedLabExercise', labResult); @@ -550,18 +589,13 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, } $scope.DisableLabUI(windowviewid); - },300) - }, function (error) { console.log('error in getting save ddata'); $scope.DisableLabUI(windowviewid); - } - ) - - $scope.PanelActivity(); - }, 500); - } + }) + } + $scope.JsPanelclick = function (windowviewid) { //reset option list manager and annotation diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 037f268..32b74a5 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -366,8 +366,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou window.parent.AIAModuleOpenResourceInfo(AAopenData); - window.parent.closeIFrame(); - } else { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html index e402021..2e8f9fc 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html @@ -20,6 +20,7 @@
  • Print Active Viewer
  • Print All Open Viewers
  • Print Preview
  • +