Commit 26d489ccc0d0a439c7d2a7350f77a2c47d139af7
1 parent
adb7d98d
fix top menu issue on ipad
Showing
8 changed files
with
71 additions
and
24 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
@@ -33,12 +33,12 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -33,12 +33,12 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
33 | var $ua = navigator.userAgent; | 33 | var $ua = navigator.userAgent; |
34 | if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { | 34 | if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { |
35 | $("#treecontent").css('height',screen.height-140); | 35 | $("#treecontent").css('height',screen.height-140); |
36 | - $("#cbdivarea").css('height',screen.height-60); | 36 | + $("#cbdivarea").css('height',screen.height-70); |
37 | } | 37 | } |
38 | else | 38 | else |
39 | { | 39 | { |
40 | $("#treecontent").css('height',screen.height-250); | 40 | $("#treecontent").css('height',screen.height-250); |
41 | - $("#cbdivarea").css('height',screen.height-170); | 41 | + $("#cbdivarea").css('height',screen.height-180); |
42 | } | 42 | } |
43 | 43 | ||
44 | $('#sidebar-wrapper').unbind('click'); | 44 | $('#sidebar-wrapper').unbind('click'); |
@@ -259,6 +259,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -259,6 +259,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
259 | $rootScope.FileTitle=fileTitle; | 259 | $rootScope.FileTitle=fileTitle; |
260 | 260 | ||
261 | $scope.fileName = fileName; | 261 | $scope.fileName = fileName; |
262 | + var $ua = navigator.userAgent; | ||
263 | + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { | ||
264 | + if(screen.width<=768) | ||
265 | + $('#modal-CurBuilder').css("left", "10%"); | ||
266 | + } | ||
262 | $('#modal-CurBuilder').css("display", "block"); | 267 | $('#modal-CurBuilder').css("display", "block"); |
263 | $("#CurBuilderbackground").css("display", "block"); | 268 | $("#CurBuilderbackground").css("display", "block"); |
264 | 269 | ||
@@ -389,6 +394,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -389,6 +394,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
389 | $rootScope.FileTitle = $rootScope.cbTreeFirstLabel; | 394 | $rootScope.FileTitle = $rootScope.cbTreeFirstLabel; |
390 | 395 | ||
391 | $timeout(function () { | 396 | $timeout(function () { |
397 | + var $ua = navigator.userAgent; | ||
398 | + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { | ||
399 | + if(screen.width<=768) | ||
400 | + $('#modal-CurBuilder').css("left", "10%"); | ||
401 | + } | ||
392 | $('#modal-CurBuilder').css("display", "block"); | 402 | $('#modal-CurBuilder').css("display", "block"); |
393 | $("#CurBuilderbackground").css("display", "block"); | 403 | $("#CurBuilderbackground").css("display", "block"); |
394 | }, 200); | 404 | }, 200); |
@@ -515,9 +525,9 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -515,9 +525,9 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
515 | window.navigator.msSaveOrOpenBlob(blob, myfileName); | 525 | window.navigator.msSaveOrOpenBlob(blob, myfileName); |
516 | } | 526 | } |
517 | else | 527 | else |
518 | - { | 528 | + { |
519 | document.execCommand("SaveAs", true, myfileName); | 529 | document.execCommand("SaveAs", true, myfileName); |
520 | - | 530 | + |
521 | var event = document.createEvent('MouseEvents'), | 531 | var event = document.createEvent('MouseEvents'), |
522 | saveElement = document.createElement('a'); | 532 | saveElement = document.createElement('a'); |
523 | saveElement.download = myfileName; | 533 | saveElement.download = myfileName; |
@@ -1773,9 +1783,10 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -1773,9 +1783,10 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
1773 | if (window.navigator && window.navigator.msSaveOrOpenBlob) { | 1783 | if (window.navigator && window.navigator.msSaveOrOpenBlob) { |
1774 | window.navigator.msSaveOrOpenBlob(blob, filename); | 1784 | window.navigator.msSaveOrOpenBlob(blob, filename); |
1775 | } | 1785 | } |
1776 | - else { | 1786 | + else |
1787 | + { | ||
1777 | document.execCommand("SaveAs", true, filename); | 1788 | document.execCommand("SaveAs", true, filename); |
1778 | - | 1789 | + |
1779 | var event = document.createEvent('MouseEvents'), | 1790 | var event = document.createEvent('MouseEvents'), |
1780 | saveElement = document.createElement('a'); | 1791 | saveElement = document.createElement('a'); |
1781 | saveElement.download = filename; | 1792 | saveElement.download = filename; |
@@ -1783,7 +1794,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | @@ -1783,7 +1794,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ | ||
1783 | saveElement.dataset.downloadurl = ['text/json', saveElement.download, saveElement.href].join(':'); | 1794 | saveElement.dataset.downloadurl = ['text/json', saveElement.download, saveElement.href].join(':'); |
1784 | event.initEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); | 1795 | event.initEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); |
1785 | saveElement.dispatchEvent(event); | 1796 | saveElement.dispatchEvent(event); |
1786 | - | 1797 | + |
1787 | } | 1798 | } |
1788 | $scope.SectionContentForExportCB=[]; | 1799 | $scope.SectionContentForExportCB=[]; |
1789 | $rootScope.dynamicUpdatedJsonForExportCB = ""; | 1800 | $rootScope.dynamicUpdatedJsonForExportCB = ""; |
400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | <!-- this is summary--> | 16 | <!-- this is summary--> |
17 | 17 | ||
18 | <div id="CurBuilderbackground" style="background-color: black; bottom: 0; display: none; height: 100%; left: 0; opacity: 0.5; position: fixed; right: 0; top: 0; width: 100%; z-index: 12000000;"></div> | 18 | <div id="CurBuilderbackground" style="background-color: black; bottom: 0; display: none; height: 100%; left: 0; opacity: 0.5; position: fixed; right: 0; top: 0; width: 100%; z-index: 12000000;"></div> |
19 | - <div id="modal-CurBuilder" style="display:none;z-index: 1000000000;height:auto;width: 300px;position:absolute;left:30%;right:0;top:70px;"> | 19 | + <div id="modal-CurBuilder" style="display:none;z-index: 1000000000;height:auto;width: 600px;position:absolute;left:30%;right:0;top:70px;"> |
20 | <div class="modal-dialog"> | 20 | <div class="modal-dialog"> |
21 | <div class="modal-content"> | 21 | <div class="modal-content"> |
22 | <div class="modal-header"> | 22 | <div class="modal-header"> |
400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html
@@ -114,7 +114,7 @@ | @@ -114,7 +114,7 @@ | ||
114 | </div> | 114 | </div> |
115 | 115 | ||
116 | <div class="CB-JS-Panel"> | 116 | <div class="CB-JS-Panel"> |
117 | - <div id="cbdivarea" class="col-sm-12 stickey-area" style="overflow:scroll;margin-top:10px;background-color: #afacac;"> | 117 | + <div id="cbdivarea" class="col-sm-12 stickey-area" style="overflow:scroll;margin-top:20px;background-color: #afacac;"> |
118 | <div ng-init="openCBJsPanel()" id="CBPanelDiv" class="CBBodyView"></div> | 118 | <div ng-init="openCBJsPanel()" id="CBPanelDiv" class="CBBodyView"></div> |
119 | <div id="cbparentcustomDiv"></div> | 119 | <div id="cbparentcustomDiv"></div> |
120 | <div id="cbModelDeleteBackground"></div> | 120 | <div id="cbModelDeleteBackground"></div> |
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="bodyWrap row container-fluid" > | 2 | <div class="bodyWrap row container-fluid" > |
3 | <div class="col-sm-12 col-md-12 pageHeading"> | 3 | <div class="col-sm-12 col-md-12 pageHeading"> |
4 | <!--<button type="button" class="btn btn-success pull-left toggleBar btn-sm" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"> <i class="fa fa-bars"></i> </button>--> | 4 | <!--<button type="button" class="btn btn-success pull-left toggleBar btn-sm" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"> <i class="fa fa-bars"></i> </button>--> |
5 | - <div class=" pull-left toggleBar toggleHeadingButton tooltip-sidebar" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar" style="padding-left: 15px; "> <i class="fa fa-bars"></i> </div> | 5 | + <div class=" pull-left toggleBar toggleHeadingButton tooltip-sidebar" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"> <i class="fa fa-bars"></i> </div> |
6 | <h4 class="pull-left" data-ng-bind="currentActiveModuleTitle"><!--{{currentActiveModuleTitle}}--></h4> | 6 | <h4 class="pull-left" data-ng-bind="currentActiveModuleTitle"><!--{{currentActiveModuleTitle}}--></h4> |
7 | <div class="pull-right paddTop4 "> | 7 | <div class="pull-right paddTop4 "> |
8 | <!--<div class="pull-right paddTop4 ">--> | 8 | <!--<div class="pull-right paddTop4 ">--> |
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
1 | -๏ปฟ<div class="collapse navbar-collapse" id="topMenuBar"> | ||
2 | - <ul class="nav navbar-nav toperMenu-spaceleft" style="float:left"> | 1 | +๏ปฟ<div class="collapse navbar-collapse" id="topMenuBar" style="height:50px !important;margin-left:-15px;width:103%"> |
2 | + <ul class="nav navbar-nav" style="float:left" id="topul1"> | ||
3 | <li class="dropdown navbarDropdownItem disableFileMenu" id="fileMenuAnchor" style="float:left"> | 3 | <li class="dropdown navbarDropdownItem disableFileMenu" id="fileMenuAnchor" style="float:left"> |
4 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">File<span class="caret"></span></a> | 4 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">File<span class="caret"></span></a> |
5 | <ul class="dropdown-menu"> | 5 | <ul class="dropdown-menu"> |
@@ -47,11 +47,11 @@ | @@ -47,11 +47,11 @@ | ||
47 | </li> | 47 | </li> |
48 | <!--redirecting to Admin--> | 48 | <!--redirecting to Admin--> |
49 | <li class="navbarItem" style="float:left"><a ng-click="reDirectURLToAdmin()" ng-show="haveRoleAdmin" style="cursor: pointer;">Admin</a></li> | 49 | <li class="navbarItem" style="float:left"><a ng-click="reDirectURLToAdmin()" ng-show="haveRoleAdmin" style="cursor: pointer;">Admin</a></li> |
50 | - <li class="navbarItem" style="float:left" title="Click here to access Legacy Curriculum Builder"> | ||
51 | - <a href="anatomy-test" ng-click="LegacyLoginClick()" title="Click here to access Legacy Curriculum Builder" style="cursor: pointer;">Legacy Curriculum Builder <em style="color:red">(This version will be discontinued 12/31/20)</em></a> | 50 | + <li id="legacymenu" class="navbarItem" style="float:left" title="This version will be discontinued 12/31/20"> |
51 | + <a href="anatomy-test" ng-click="LegacyLoginClick()" title="This version will be discontinued 12/31/20" style="cursor: pointer;">Legacy Curriculum Builder </a> | ||
52 | </li> | 52 | </li> |
53 | </ul> | 53 | </ul> |
54 | - <ul class="nav navbar-nav navbar-right" style="float: right;"> | 54 | + <ul class="nav navbar-nav navbar-right" style="float: right;" id="topul2"> |
55 | <li id="userNameoption" class="navbarItem" style="pointer-events:none ;"><a href="#">{{userName}}</a></li> | 55 | <li id="userNameoption" class="navbarItem" style="pointer-events:none ;"><a href="#">{{userName}}</a></li> |
56 | <li data-toggle="tooltip" data-placement="top" title="Logout"><a href="" ng-click="LogoutUser()"><i class="fa fa-power-off"></i></a></li> | 56 | <li data-toggle="tooltip" data-placement="top" title="Logout"><a href="" ng-click="LogoutUser()"><i class="fa fa-power-off"></i></a></li> |
57 | </ul> | 57 | </ul> |
400-SOURCECODE/AIAHTML5.Web/index.aspx
@@ -11,8 +11,8 @@ | @@ -11,8 +11,8 @@ | ||
11 | <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | 11 | <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> |
12 | <meta http-equiv="Pragma" content="no-cache" /> | 12 | <meta http-equiv="Pragma" content="no-cache" /> |
13 | <meta http-equiv="Expires" content="0" /> | 13 | <meta http-equiv="Expires" content="0" /> |
14 | - <!--<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">--> | ||
15 | - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0 maximum-scale=1.0" /> | 14 | + <meta name="viewport" content="width=device-width,initial-scale=1"> |
15 | + <!-- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0 maximum-scale=1.0" /> --> | ||
16 | <title>A.D.A.M. Interactive Anatomy</title> | 16 | <title>A.D.A.M. Interactive Anatomy</title> |
17 | <link rel="icon" type="image/x-icon" href="/content/images/favicon.ico"> | 17 | <link rel="icon" type="image/x-icon" href="/content/images/favicon.ico"> |
18 | 18 | ||
@@ -310,8 +310,8 @@ | @@ -310,8 +310,8 @@ | ||
310 | <div class="container-fluid " id="HomeContainerDiv"> | 310 | <div class="container-fluid " id="HomeContainerDiv"> |
311 | <!--Header--> | 311 | <!--Header--> |
312 | 312 | ||
313 | - <nav class="navbar navbar-inverse navbar-fixed-top"> | ||
314 | - <div class="container-fluid"> | 313 | + <nav class="navbar navbar-inverse navbar-fixed-top" style="height:55px"> |
314 | + <div class="container-fluid" style="height:50px"> | ||
315 | <!-- Brand and toggle get grouped for better mobile display --> | 315 | <!-- Brand and toggle get grouped for better mobile display --> |
316 | <div class="navbar-header"> | 316 | <div class="navbar-header"> |
317 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topMenuBar" aria-expanded="false"> | 317 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topMenuBar" aria-expanded="false"> |
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/bootstrap.css
@@ -3775,18 +3775,31 @@ select[multiple].input-group-sm > .input-group-btn > .btn { | @@ -3775,18 +3775,31 @@ select[multiple].input-group-sm > .input-group-btn > .btn { | ||
3775 | margin-right: 15px; | 3775 | margin-right: 15px; |
3776 | } | 3776 | } |
3777 | } | 3777 | } |
3778 | -@media (min-width: 768px) { | 3778 | +@media (min-width: 768px) and (max-width: 1024px) { |
3779 | .navbar-left { | 3779 | .navbar-left { |
3780 | float: left !important; | 3780 | float: left !important; |
3781 | } | 3781 | } |
3782 | .navbar-right { | 3782 | .navbar-right { |
3783 | float: right !important; | 3783 | float: right !important; |
3784 | - margin-right: -15px; | 3784 | + margin-right: -10px; |
3785 | } | 3785 | } |
3786 | .navbar-right ~ .navbar-right { | 3786 | .navbar-right ~ .navbar-right { |
3787 | margin-right: 0; | 3787 | margin-right: 0; |
3788 | } | 3788 | } |
3789 | } | 3789 | } |
3790 | +@media (min-width: 1025px) and (max-width: 2048px) { | ||
3791 | + .navbar-left { | ||
3792 | + float: left !important; | ||
3793 | + } | ||
3794 | + .navbar-right { | ||
3795 | + float: right !important; | ||
3796 | + margin-right: 25px !important; | ||
3797 | + } | ||
3798 | + .navbar-right ~ .navbar-right { | ||
3799 | + margin-right: 0; | ||
3800 | + } | ||
3801 | +} | ||
3802 | + | ||
3790 | .navbar-default { | 3803 | .navbar-default { |
3791 | background-color: #f8f8f8; | 3804 | background-color: #f8f8f8; |
3792 | border-color: #e7e7e7; | 3805 | border-color: #e7e7e7; |
@@ -6047,12 +6060,12 @@ button.close { | @@ -6047,12 +6060,12 @@ button.close { | ||
6047 | } | 6060 | } |
6048 | } | 6061 | } |
6049 | /* update css for top menu for devices */ | 6062 | /* update css for top menu for devices */ |
6050 | -@media (min-width: 300px) and (max-width: 800px) { | 6063 | +@media (min-width: 300px) and (max-width: 980px) { |
6051 | #userNameoption { | 6064 | #userNameoption { |
6052 | display: none !important; | 6065 | display: none !important; |
6053 | } | 6066 | } |
6054 | } | 6067 | } |
6055 | -@media (min-width: 901px) { | 6068 | +@media (min-width: 981px) { |
6056 | #userNameoption { | 6069 | #userNameoption { |
6057 | display: block !important; | 6070 | display: block !important; |
6058 | } | 6071 | } |
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
@@ -107,6 +107,13 @@ footer.dark { | @@ -107,6 +107,13 @@ footer.dark { | ||
107 | top: 0; | 107 | top: 0; |
108 | z-index: 1029; | 108 | z-index: 1029; |
109 | } | 109 | } |
110 | +/* update css for top menu for devices */ | ||
111 | +@media (min-width: 300px) and (max-width: 800px) { | ||
112 | + .sidebar { | ||
113 | + padding-top: 120px !important; | ||
114 | + } | ||
115 | + } | ||
116 | + | ||
110 | .navbar { | 117 | .navbar { |
111 | border-bottom: none!important; | 118 | border-bottom: none!important; |
112 | } | 119 | } |
@@ -253,10 +260,26 @@ pointer-events: auto; | @@ -253,10 +260,26 @@ pointer-events: auto; | ||
253 | .border-Btm1 { | 260 | .border-Btm1 { |
254 | border-bottom: 1px solid #D8D8D8; | 261 | border-bottom: 1px solid #D8D8D8; |
255 | } | 262 | } |
263 | + | ||
264 | +/* remove after lecay version expired */ | ||
265 | + | ||
266 | +@media (min-width: 300px) and (max-width: 900px) { | ||
267 | + #legacymenu { | ||
268 | + display:none !important; | ||
269 | + } | ||
270 | + } | ||
271 | + | ||
272 | +/* update css for top menu for devices */ | ||
273 | +/* @media (min-width: 300px) and (max-width: 800px) { | ||
274 | + .pageHeading { | ||
275 | + margin-top: 80px !important; | ||
276 | + } | ||
277 | + } */ | ||
278 | + | ||
256 | .pageHeading { | 279 | .pageHeading { |
257 | background: #818d43 none repeat scroll 0 0; | 280 | background: #818d43 none repeat scroll 0 0; |
258 | padding: 0px 15px; | 281 | padding: 0px 15px; |
259 | - margin-top: 60px; | 282 | + margin-top: 50px; |
260 | z-index: 1030; | 283 | z-index: 1030; |
261 | position: fixed; | 284 | position: fixed; |
262 | width: 100%; | 285 | width: 100%; |