diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html index b0a265c..217a61b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html @@ -68,41 +68,42 @@ $('[data-toggle="tooltip"]').tooltip(); }) - - if (window.location.pathname == "/AIA/da-view-list") { + var appPath = window.location.pathname.split("/")[1]; + if (window.location.pathname == "/" + appPath + "/da-view-list") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:first-child a").addClass('active'); } - else if (window.location.pathname == "/AIA/3dAnatomy") { + + else if (window.location.pathname == "/" + appPath + "/3dAnatomy") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(2) a").addClass('active'); } - else if (window.location.pathname == "/AIA/clinical-illustrations") { + else if (window.location.pathname == "/" + appPath + "/clinical-illustrations") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(3) a").addClass('active'); } - else if (window.location.pathname == "/AIA/clinical-animations") { + else if (window.location.pathname == "/" + appPath + "/clinical-animations") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(4) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/encyclopedia") { + else if (window.location.pathname == "/" + appPath + "/Link/encyclopedia") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(5) a").addClass('active'); } - else if (window.location.pathname == "/AIA/curriculum-builder") { + else if (window.location.pathname == "/" + appPath + "/curriculum-builder") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(6) a").addClass('active'); @@ -110,7 +111,7 @@ } - else if (window.location.pathname == "/AIA/anatomy-test") { + else if (window.location.pathname == "/" + appPath + "/anatomy-test") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(7) a").addClass('active'); @@ -118,56 +119,56 @@ } - else if (window.location.pathname == "/AIA/Link/IP-10") { + else if (window.location.pathname == "/" + appPath + "/Link/IP-10") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(8) a").addClass('active'); } - else if (window.location.pathname == "/AIA/lab-exercises") { + else if (window.location.pathname == "/" + appPath + "/lab-exercises") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(9) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/indepth-reports") { + else if (window.location.pathname == "/" + appPath + "/Link/indepth-reports") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(10) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/complementary-and-alternate-medicine") { + else if (window.location.pathname == "/" + appPath + "/Link/complementary-and-alternate-medicine") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(11) a").addClass('active'); } - else if (window.location.pathname == "/AIA/ADAM-Images") { + else if (window.location.pathname == "/" + appPath + "/ADAM-Images") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(12) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/bodyguide") { + else if (window.location.pathname == "/" + appPath + "/Link/bodyguide") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(13) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/symptom-navigator") { + else if (window.location.pathname == "/" + appPath + "/Link/symptom-navigator") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(14) a").addClass('active'); } - else if (window.location.pathname == "/AIA/Link/wellness-tools") { + else if (window.location.pathname == "/" + appPath + "/Link/wellness-tools") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(15) a").addClass('active'); } - else if (window.location.pathname == "/AIA/ADAM-on-demand") { + else if (window.location.pathname == "/"+ appPath + "/ADAM-on-demand") { $(".nav-sidebar li a").removeClass('active'); $(".nav-sidebar li:nth-child(16) a").addClass('active');