File tree Expand file tree Collapse file tree 4 files changed +37
-6
lines changed
coreplugins/org.ekstep.overlay-1.0/renderer/controller Expand file tree Collapse file tree 4 files changed +37
-6
lines changed Original file line number Diff line number Diff line change 105105
106106 < script type ="text/javascript " src ="renderer/manager/AudioManager.js "> </ script >
107107 <!-- endinjector -->
108+ < script >
109+ setTimeout ( ( ) => {
110+ let globalObj = this . window ;
111+ let globalConfig = globalObj ?. GlobalContext || { } ;
112+ if ( globalConfig ?. config ?. dir === 'rtl' ) {
113+ document . body . setAttribute ( 'dir' , 'rtl' ) ;
114+ }
115+ else if ( window . parent . ecEditor && typeof window . parent . ecEditor . getConfig === 'function' && window . parent . ecEditor . getConfig ( 'dir' ) ) {
116+ document . body . setAttribute ( 'dir' , window . parent . ecEditor . getConfig ( 'dir' ) ) ;
117+ }
118+ else {
119+ document . body . setAttribute ( 'dir' , 'ltr' ) ;
120+ }
121+ } , 3000 ) ;
122+ </ script >
108123</ body >
109124
110125</ html >
Original file line number Diff line number Diff line change @@ -42,7 +42,19 @@ var splashScreen = {
4242 EkstepRendererAPI . addEventListener ( "plugin:load:success" , splashScreen . pluginLoadSuccess )
4343 } ,
4444 createHtml : function ( ) {
45- var html = "<img src=\"" + splashScreen . config . bgImage + "\" class=\"gc-loader-img\" onerror=\"this.style.display='none'\" /><P class=\"splashText\" id=\"splashTextId\"> Loading your content</p><div id=\"progressArea\"><div id=\"progressBar\"></div><p id=\"progressCount\" class=\"font-lato gc-loader-prog\"></p></div><a href=\"" + splashScreen . config . webLink + "\" target=\"_blank\"><div id=\"splashScreen\" class=\"splashScreen\"> <img src=\"" + splashScreen . config . icon + "\" class=\"splash-icon \" onerror=\"this.style.display='none'\" /> <span>" + splashScreen . config . text + "</span> </div></a>"
45+ const loadingText = (
46+ EkstepRendererAPI . getGlobalConfig ( ) . context . resourceBundles ||
47+ (
48+ window . parent &&
49+ window . parent . ecEditor &&
50+ window . parent . ecEditor . getConfig &&
51+ window . parent . ecEditor . getConfig ( 'resourceBundles' ) &&
52+ window . parent . ecEditor . getConfig ( 'resourceBundles' ) . frmelmnts &&
53+ window . parent . ecEditor . getConfig ( 'resourceBundles' ) . frmelmnts . lbl
54+ ) ||
55+ { }
56+ ) . loadingYourContent || "Loading your content" ;
57+ var html = "<img src=\"" + splashScreen . config . bgImage + "\" class=\"gc-loader-img\" onerror=\"this.style.display='none'\" /><P class=\"splashText\" id=\"splashTextId\">" + loadingText + "</p><div id=\"progressArea\"><div id=\"progressBar\"></div><p id=\"progressCount\" class=\"font-lato gc-loader-prog\"></p></div><a href=\"" + splashScreen . config . webLink + "\" target=\"_blank\"><div id=\"splashScreen\" class=\"splashScreen\"> <img src=\"" + splashScreen . config . icon + "\" class=\"splash-icon \" onerror=\"this.style.display='none'\" /> <span>" + splashScreen . config . text + "</span> </div></a>"
4658 return html
4759 } ,
4860
Original file line number Diff line number Diff line change @@ -216,11 +216,12 @@ ion-popover-view.fit ion-content {
216216
217217.gc-menu {
218218 font-size : 1.8vw ;
219- position : absolute ;
219+ position : fixed ;
220220 /*text-transform: uppercase;*/
221221 width : 35% ;
222222 height : 100% ;
223223 top : 0 ;
224+ left : 0 ;
224225 margin-left : -35% ;
225226}
226227
@@ -1800,9 +1801,10 @@ body {
18001801}
18011802
18021803# progressArea {
1803- position : relative;
1804- left : 25vw ;
1805- top : 50vh ;
1804+ position : absolute; /* or fixed if you want to pin it to viewport */
1805+ top : 50% ;
1806+ left : 50% ;
1807+ transform : translate (-50% , -50% );
18061808 width : 50vw ;
18071809 height : 2em ;
18081810 text-align : center;
@@ -1813,7 +1815,7 @@ body {
18131815.gc-loader-prog {
18141816 position : absolute;
18151817 height : 2em ;
1816- color : # 000 ;
1818+ color : white ;
18171819 width : 100% ;
18181820 font-weight : bold;
18191821 overflow : hidden;
You can’t perform that action at this time.
0 commit comments