diff --git a/400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj b/400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj index 8c75604..3e322f2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj +++ b/400-SOURCECODE/AIAHTML5.Web/AIAHTML5.Web.csproj @@ -14,7 +14,7 @@ eLearningPlayer eLearningPlayer v4.5 - false + true @@ -40,43 +40,32 @@ - + - - - - - - + - + - - - - - - @@ -21350,11 +21339,11 @@ - False + True True 55837 / - http://localhost/AIA + http://localhost:55837/AIAHTML5 False False http://182.19.10.91/AIAHTML5 diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMPID117Controller.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMPID117Controller.js deleted file mode 100644 index 8f07ee4..0000000 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMPID117Controller.js +++ /dev/null @@ -1,26 +0,0 @@ -AIA.controller("ADAMPID117Controller", ["$scope", "$rootScope", "Modules", "$log", -function ($scope, $rootScope, Modules, log) { - - $rootScope.currentActiveModuleTitle = Modules[10].Name; - $scope.showme = false; - $scope.myObj = { - "width": "100%", - "min-height": "750px" - } - $scope.IsVisible = function () { - $scope.scroll(); - - } - - $scope.scroll = function () { - // $window.scrollTo(0, 0); - $("html,body").scrollTop(0); - //alert("scroll"); - } - -}] - - -); - - diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LinkController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LinkController.js new file mode 100644 index 0000000..8e9f13a --- /dev/null +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LinkController.js @@ -0,0 +1,47 @@ +'use strict'; + +AIA.controller("LinkController", ["$scope", "$rootScope", "Modules", "$log", "pages", "$routeParams", +function ($scope, $rootScope, Modules, log, pages, $routeParams) { + + //$rootScope.currentActiveModuleTitle = Modules[10].Name; + //$rootScope.currentActiveModuleTitle = $routeParams.modname; + $scope.links = [ + new link("Encyclopedia", "Encyclopedia", 'http://aia5.adam.com/content.aspx?productId=117', "100%", "750px"), + new link("IP-10", "IP 10", "http://182.19.10.91:92/IPWeb10/index.aspx", "100%", "750px"), + new link("InDepth-Reports", "InDepth Reports", "http://aia5.adam.com/content.aspx?productId=10", "100%", "4000px"), + new link("Complementary-and-Alternate-Medicine", "Complementary and Alternative Medicine", "http://182.19.10.91:92/CAMHome.aspx", "100%", "750px"), + new link("BodyGuide", "Body Guide", "http://aia5.adam.com/content.aspx?productId=25", "100%", "1050px"), + new link("Symptom-Navigator", "Symptom Navigator", "http://aia5.adam.com/content.aspx?productId=44", "100%", "1000px"), + new link("Wellness-Tools", "The Wellness Tools", "http://aia5.adam.com/content.aspx?productId=20", "100%", "1500px") + ]; + + $scope.$on('$viewContentLoaded', function (event) { + // code that will be executed ... + // every time this view is loaded + + for (var i = 0; i < $scope.links.length; i++) { + if ($scope.links[i].modname == $routeParams.modname) { + $rootScope.currentActiveModuleTitle = $scope.links[i].title; + $scope.objdata = $scope.links[i].objurl; + $scope.myObj = $scope.links[i].objstyle; + } + } + }); + + $scope.showme = false; + $scope.IsVisible = function () { + $scope.scroll(); + + } + + $scope.scroll = function () { + // $window.scrollTo(0, 0); + $("html,body").scrollTop(0); + //alert("scroll"); + } +}] + + +); + + diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js index ad49c48..66b44c4 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js @@ -25,107 +25,107 @@ AIA.constant('pages', [ }, { name: 'Clinical Illustrations', - pageSlug: 'ci-view', + pageSlug: 'CI-view', pageUrl: 'app/views/ci/ci-view.html', pageController: 'CIController' }, { name: 'Clinical Animationa', - pageSlug: 'ca-view', + pageSlug: 'CA-view', pageUrl: 'app/views/ca/ca-view.html', pageController: 'CAController' }, { name: '3D Anatomy', - pageSlug: '3dA-view', + pageSlug: '3dAnatomy-view', pageUrl: 'app/views/3dA/3dA-view.html', pageController: '3dAController' }, { name: 'Curriculum Builder', - pageSlug: 'CBuild-view', + pageSlug: 'Curriculum-Builder', pageUrl: 'app/views/CBuild/CBuild-view.html', pageController: 'CBuildController' }, { name: 'Anatomy Tests', - pageSlug: 'AnatTest-view', + pageSlug: 'Anatomy-Test', pageUrl: 'app/views/AnatTest/AnatTest-view.html', pageController: 'AnatTestController' }, { name: 'Lab Exercises', - pageSlug: 'LabExerc-view', + pageSlug: 'Lab-Exercises', pageUrl: 'app/views/LabExerc/LabExerc-view.html', pageController: 'LabExercController' }, { name: 'ADAM Images', - pageSlug: 'ADAMImg-view', + pageSlug: 'ADAM-Images', pageUrl: 'app/views/ADAMImg/ADAMImg-view.html', pageController: 'ADAMImgController' }, { name: 'ADAM On Demand', - pageSlug: 'AOD-view', + pageSlug: 'ADAM-On-Demand', pageUrl: 'app/views/AOD/AOD-view.html', pageController: 'AODController' }, { name: 'Encyclopedia', - pageSlug: 'ADAMPID117-view', - pageUrl: 'app/views/ADAMPID117/ADAMPID117-view.html', - pageController: 'ADAMPID117Controller' + pageSlug: 'Link/Encyclopedia', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'IP 10', - pageSlug: 'IP10-view', - pageUrl: 'app/views/IP10/IP10-view.html', - pageController: 'IP10Controller' + pageSlug: 'Link/IP-10', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'In-Depth Reports', - pageSlug: 'InDepth-view', - pageUrl: 'app/views/InDepth/InDepth-view.html', - pageController: 'InDepthController' + pageSlug: 'Link/InDepth-Reports', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'Complementary and Alternative Medicine', - pageSlug: 'CompAndAltMed-view', - pageUrl: 'app/views/CompAndAltMed/CompAndAltMed-view.html', - pageController: 'CompAndAltMedController' + pageSlug: 'Link/Complementary-and-Alternate-Medicine', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'Body Guide', - pageSlug: 'BodyGuide-view', - pageUrl: 'app/views/BodyGuide/BodyGuide-view.html', - pageController: 'BodyGuideController' + pageSlug: 'Link/BodyGuide', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'Symptom Navigator', - pageSlug: 'SymptNav-view', - pageUrl: 'app/views/SymptNav/SymptNav-view.html', - pageController: 'SymptNavController' + pageSlug: 'Link/Symptom-Navigator', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { name: 'The Wellness Tools', - pageSlug: 'WellTools-view', - pageUrl: 'app/views/WellTools/WellTools-view.html', - pageController: 'WellToolsController' + pageSlug: 'Link/Wellness-Tools', + pageUrl: 'app/views/Link/Link-view.html', + pageController: 'LinkController' }, { @@ -190,6 +190,7 @@ AIA.constant('Modules', [ { Id: 11, Name: 'Encyclopedia', + }, { Id: 12, @@ -236,7 +237,12 @@ AIA.config(function ($routeProvider, pages, $locationProvider) { { templateUrl: pages[i].pageUrl, controller: pages[i].pageController - }) + }). + when('/Link/:modname', + { + templateUrl: 'app/views/Link/Link-view.html', + controller: 'LinkController' + }) .otherwise({ templateUrl: 'app/widget/MainView.html', controller: 'HomeController' diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/Link.js b/400-SOURCECODE/AIAHTML5.Web/app/main/Link.js new file mode 100644 index 0000000..ca609cc --- /dev/null +++ b/400-SOURCECODE/AIAHTML5.Web/app/main/Link.js @@ -0,0 +1,11 @@ +//---------------------------------------------------------------- +// Link class +function link(modname,title, objurl, width, min_height) { + this.modname = modname; // Module name (modname = Module Name) + this.title = title; + this.objurl = objurl; + this.objstyle = { + "width": width, + "min-height": min_height + }; +} \ No newline at end of file diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/ADAMPID117/ADAMPID117-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html index 6d2c081..9a8d51a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/ADAMPID117/ADAMPID117-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/Link-view.html @@ -2,7 +2,8 @@
- + +
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html index 1811a1d..78a0819 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html @@ -19,28 +19,29 @@ diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index 972e309..52f7b9f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -5,6 +5,7 @@ + A.D.A.M. Interactive Anatomy @@ -145,6 +146,7 @@ + @@ -157,13 +159,13 @@ - - + +