Added full screen image support on login screen, #2609.

Ylian Saint-Hilaire committed May 10, 2021 at 12:47 UTC c3525137462a6ea39506d4f0320b18ef458f03a1
1 file changed +5 -2
views/login2.handlebars
+5 -2
@@ -31,7 +31,7 @@
31 </style>
32 </head>
33 <body id="body" onload="if (typeof(startup) !== 'undefined') startup();" class="arg_hide login">
34 - <div style="position:absolute;left:0;bottom:0;z-index:-1;height:60%;width:100%;opacity:0.1;background-image:url('welcome.png');background-repeat:no-repeat;background-position:left bottom;background-size:contain"></div>
34 + <div id="backgroundImage" style="position:absolute;left:0;bottom:0;z-index:-1;height:60%;width:100%;opacity:0.1;background-image:url('welcome.png');background-repeat:no-repeat;background-position:left bottom;background-size:contain"></div>
35 <table id="centralTable" class="container" style="height:100%;z-index:1">
36 <tr>
37 <td id="logincell">
@@ -368,7 +368,10 @@
368
369 // Change the background image to full screen
370 if (welcomePictureFullScreen) {
371 -
371 + QS('backgroundImage').height = '100%';
372 + QS('backgroundImage').opacity = '1';
373 + QS('backgroundImage')['background-position'] = 'center center';
374 + QS('backgroundImage')['background-size'] = 'cover';
375 }
376
377 // Display the right server message