Fixed web app fullscreen, improved MeshCtrl.
Ylian Saint-Hilaire committed
Dec 21, 2019 at 15:05 UTC
2642ab6d0562883870f6dcfcf304f162962cf046
16 files changed
+204
-81
docs/MeshCentral2 Install Guide v0.0.9.docx
Binary files a/docs/MeshCentral2 Install Guide v0.0.9.docx and b/docs/MeshCentral2 Install Guide v0.0.9.docx differ
meshctrl.js
+33
-6
@@ -303,7 +303,9 @@ function displayConfigHelp() {
303
}
304
305
function performConfigOperations(args) {
306
- var domainValues = ['title', 'title2', 'titlepicture', 'trustedcert', 'welcomepicture', 'welcometext', 'userquota', 'meshquota', 'newaccounts', 'usernameisemail', 'newaccountemaildomains', 'newaccountspass', 'newaccountsrights', 'geolocation', 'lockagentdownload', 'userconsentflags', 'Usersessionidletimeout', 'auth', 'ldapoptions', 'ldapusername', 'ldapuserbinarykey', 'ldapoptions', 'footer', 'certurl', 'loginKey', 'userallowedip', 'agentallowedip', 'agentnoproxy', 'agentconfig', 'orphanagentuser', 'httpheaders', 'yubikey', 'passwordrequirements', 'limits', 'amtacmactivation', 'redirects', 'sessionrecording'];
306
+ var domainValues = ['title', 'title2', 'titlepicture', 'trustedcert', 'welcomepicture', 'welcometext', 'userquota', 'meshquota', 'newaccounts', 'usernameisemail', 'newaccountemaildomains', 'newaccountspass', 'newaccountsrights', 'geolocation', 'lockagentdownload', 'userconsentflags', 'Usersessionidletimeout', 'auth', 'ldapoptions', 'ldapusername', 'ldapuserbinarykey', 'ldapoptions', 'footer', 'certurl', 'loginKey', 'userallowedip', 'agentallowedip', 'agentnoproxy', 'agentconfig', 'orphanagentuser', 'httpheaders', 'yubikey', 'passwordrequirements', 'limits', 'amtacmactivation', 'redirects', 'sessionrecording', 'hide', 'loginkey'];
307
+ var domainObjectValues = [ 'ldapoptions', 'httpheaders', 'yubikey', 'passwordrequirements', 'limits', 'amtacmactivation', 'redirects', 'sessionrecording' ];
308
+ var domainArrayValues = [ 'newaccountemaildomains', 'newaccountsrights', 'loginkey', 'agentconfig' ];
309
var configChange = false;
310
var fs = require('fs');
311
var path = require('path');
@@ -341,15 +343,40 @@ function performConfigOperations(args) {
343
if (args.settodomain != null) {
344
didSomething++;
345
if (config.domains == null) { config.domains = {}; }
346
+ if (args.settodomain == true) { args.settodomain = ''; }
347
if (config.domains[args.settodomain] == null) { console.log("Error: Domain \"" + args.settodomain + "\" does not exist"); }
348
else {
349
for (var i in args) {
350
+ if ((i == '_') || (i == 'settodomain')) continue;
351
if (domainValues.indexOf(i.toLowerCase()) >= 0) {
348
- if (args[i] == '') { delete config.domains[args.settodomain][i]; configChange = true; } else {
349
- if (args[i] == 'true') { args[i] = true; } else if (args[i] == 'false') { args[i] = false; } else if (parseInt(args[i]) == args[i]) { args[i] = parseInt(args[i]); }
350
- config.domains[args.settodomain][i] = args[i];
351
- configChange = true;
352
+ var isObj = (domainObjectValues.indexOf(i.toLowerCase()) >= 0);
353
+ var isArr = (domainArrayValues.indexOf(i.toLowerCase()) >= 0);
354
+ if ((isObj == false) && (isArr == false)) {
355
+ // Simple value set
356
+ if (args[i] == '') { delete config.domains[args.settodomain][i]; configChange = true; } else {
357
+ if (args[i] == 'true') { args[i] = true; } else if (args[i] == 'false') { args[i] = false; } else if (parseInt(args[i]) == args[i]) { args[i] = parseInt(args[i]); }
358
+ config.domains[args.settodomain][i] = args[i];
359
+ configChange = true;
360
+ }
361
+ } else if (isObj || isArr) {
362
+ // Set an object/array value
363
+ if (args[i] == '') { delete config.domains[args.settodomain][i]; configChange = true; } else {
364
+ var x = null;
365
+ try { x = JSON.parse(args[i]); } catch (ex) { }
366
+ if ((x == null) || (typeof x != 'object')) { console.log("Unable to parse JSON for " + i + "."); } else {
367
+ if (isArr && Array.isArray(x) == false) {
368
+ console.log("Value " + i + " must be an array.");
369
+ } else if (!isArr && Array.isArray(x) == true) {
370
+ console.log("Value " + i + " must be an object.");
371
+ } else {
372
+ config.domains[args.settodomain][i] = x;
373
+ configChange = true;
374
+ }
375
+ }
376
+ }
377
}
378
+ } else {
379
+ console.log('Invalid configuration value: ' + i);
380
}
381
}
382
}
@@ -376,7 +403,7 @@ function performConfigOperations(args) {
403
if (didSomething == 0) {
404
displayConfigHelp();
405
} else {
379
- console.log("Done.", didSomething);
406
+ console.log("Done.");
407
}
408
}
409
}
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.4.6-f",
3
+ "version": "0.4.6-g",
4
"keywords": [
5
"Remote Management",
6
"Intel AMT",
public/styles/style.css
+2
-2
@@ -217,8 +217,8 @@ body {
217
cursor: pointer;
218
color: white;
219
position: absolute;
220
- top: 3px;
221
- right: 6px;
220
+ padding: 3px;
221
+ right: 3px;
222
}
223
224
#logoutControlSpan2 {
views/default-min.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/default.handlebars
+14
-6
@@ -1141,7 +1141,7 @@
1141
QV('autoconnectbutton1', debugmode); // Desktop
1142
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1143
1144
- if (nightMode) { QC('body').add('night'); }
1144
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1145
toggleFullScreen();
1146
1147
// Setup page visuals
@@ -1284,8 +1284,6 @@
1284
var xh2 = (uiMode > 1)?24:0;
1285
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1286
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1287
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1288
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1287
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1288
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1289
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1296,8 +1294,17 @@
1294
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1295
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1296
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1299
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1300
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1297
+ if (fullscreen) {
1298
+ QS('deskarea3x')['height'] = null;
1299
+ QS('deskarea3x')['max-height'] = null;
1300
+ QS('p14iframe')['height'] = null;
1301
+ QS('p14iframe')['max-height'] = null;
1302
+ } else {
1303
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1304
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1305
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1306
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1307
+ }
1308
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1309
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1310
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1365,7 +1372,7 @@
1372
1373
function toggleNightMode() {
1374
nightMode = !nightMode;
1368
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1375
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1376
putstore('_nightMode', nightMode?'1':'0');
1377
}
1378
@@ -5544,6 +5551,7 @@
5551
}
5552
deskAdjust();
5553
updateDesktopButtons();
5554
+ adjustPanels();
5555
}
5556
5557
function deskToggleFocus() {
views/translations/default-min_cs.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/translations/default-min_fr.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/translations/default-min_ja.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/translations/default-min_nl.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/translations/default-min_pt.handlebars
+14
-6
@@ -88,7 +88,7 @@
88
QV('autoconnectbutton1', debugmode); // Desktop
89
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
90
91
- if (nightMode) { QC('body').add('night'); }
91
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
92
toggleFullScreen();
93
94
// Setup page visuals
@@ -231,8 +231,6 @@
231
var xh2 = (uiMode > 1)?24:0;
232
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
233
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
234
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
235
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
234
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
235
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
236
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -243,8 +241,17 @@
241
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
242
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
243
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
246
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
247
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
244
+ if (fullscreen) {
245
+ QS('deskarea3x')['height'] = null;
246
+ QS('deskarea3x')['max-height'] = null;
247
+ QS('p14iframe')['height'] = null;
248
+ QS('p14iframe')['max-height'] = null;
249
+ } else {
250
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
251
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
252
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
253
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
254
+ }
255
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
256
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
257
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -312,7 +319,7 @@
319
320
function toggleNightMode() {
321
nightMode = !nightMode;
315
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
322
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
323
putstore('_nightMode', nightMode?'1':'0');
324
}
325
@@ -4491,6 +4498,7 @@
4498
}
4499
deskAdjust();
4500
updateDesktopButtons();
4501
+ adjustPanels();
4502
}
4503
4504
function deskToggleFocus() {
views/translations/default_cs.handlebars
+14
-6
@@ -1139,7 +1139,7 @@
1139
QV('autoconnectbutton1', debugmode); // Desktop
1140
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1141
1142
- if (nightMode) { QC('body').add('night'); }
1142
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1143
toggleFullScreen();
1144
1145
// Setup page visuals
@@ -1282,8 +1282,6 @@
1282
var xh2 = (uiMode > 1)?24:0;
1283
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1284
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1285
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1286
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1285
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1286
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1287
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1294,8 +1292,17 @@
1292
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1293
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1294
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1297
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1298
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1295
+ if (fullscreen) {
1296
+ QS('deskarea3x')['height'] = null;
1297
+ QS('deskarea3x')['max-height'] = null;
1298
+ QS('p14iframe')['height'] = null;
1299
+ QS('p14iframe')['max-height'] = null;
1300
+ } else {
1301
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1302
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1303
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1304
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1305
+ }
1306
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1307
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1308
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1363,7 +1370,7 @@
1370
1371
function toggleNightMode() {
1372
nightMode = !nightMode;
1366
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1373
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1374
putstore('_nightMode', nightMode?'1':'0');
1375
}
1376
@@ -5542,6 +5549,7 @@
5549
}
5550
deskAdjust();
5551
updateDesktopButtons();
5552
+ adjustPanels();
5553
}
5554
5555
function deskToggleFocus() {
views/translations/default_fr.handlebars
+14
-6
@@ -1139,7 +1139,7 @@
1139
QV('autoconnectbutton1', debugmode); // Desktop
1140
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1141
1142
- if (nightMode) { QC('body').add('night'); }
1142
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1143
toggleFullScreen();
1144
1145
// Setup page visuals
@@ -1282,8 +1282,6 @@
1282
var xh2 = (uiMode > 1)?24:0;
1283
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1284
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1285
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1286
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1285
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1286
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1287
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1294,8 +1292,17 @@
1292
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1293
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1294
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1297
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1298
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1295
+ if (fullscreen) {
1296
+ QS('deskarea3x')['height'] = null;
1297
+ QS('deskarea3x')['max-height'] = null;
1298
+ QS('p14iframe')['height'] = null;
1299
+ QS('p14iframe')['max-height'] = null;
1300
+ } else {
1301
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1302
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1303
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1304
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1305
+ }
1306
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1307
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1308
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1363,7 +1370,7 @@
1370
1371
function toggleNightMode() {
1372
nightMode = !nightMode;
1366
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1373
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1374
putstore('_nightMode', nightMode?'1':'0');
1375
}
1376
@@ -5542,6 +5549,7 @@
5549
}
5550
deskAdjust();
5551
updateDesktopButtons();
5552
+ adjustPanels();
5553
}
5554
5555
function deskToggleFocus() {
views/translations/default_ja.handlebars
+14
-6
@@ -1139,7 +1139,7 @@
1139
QV('autoconnectbutton1', debugmode); // Desktop
1140
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1141
1142
- if (nightMode) { QC('body').add('night'); }
1142
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1143
toggleFullScreen();
1144
1145
// Setup page visuals
@@ -1282,8 +1282,6 @@
1282
var xh2 = (uiMode > 1)?24:0;
1283
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1284
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1285
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1286
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1285
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1286
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1287
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1294,8 +1292,17 @@
1292
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1293
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1294
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1297
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1298
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1295
+ if (fullscreen) {
1296
+ QS('deskarea3x')['height'] = null;
1297
+ QS('deskarea3x')['max-height'] = null;
1298
+ QS('p14iframe')['height'] = null;
1299
+ QS('p14iframe')['max-height'] = null;
1300
+ } else {
1301
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1302
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1303
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1304
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1305
+ }
1306
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1307
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1308
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1363,7 +1370,7 @@
1370
1371
function toggleNightMode() {
1372
nightMode = !nightMode;
1366
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1373
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1374
putstore('_nightMode', nightMode?'1':'0');
1375
}
1376
@@ -5542,6 +5549,7 @@
5549
}
5550
deskAdjust();
5551
updateDesktopButtons();
5552
+ adjustPanels();
5553
}
5554
5555
function deskToggleFocus() {
views/translations/default_nl.handlebars
+14
-6
@@ -1139,7 +1139,7 @@
1139
QV('autoconnectbutton1', debugmode); // Desktop
1140
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1141
1142
- if (nightMode) { QC('body').add('night'); }
1142
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1143
toggleFullScreen();
1144
1145
// Setup page visuals
@@ -1282,8 +1282,6 @@
1282
var xh2 = (uiMode > 1)?24:0;
1283
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1284
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1285
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1286
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1285
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1286
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1287
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1294,8 +1292,17 @@
1292
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1293
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1294
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1297
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1298
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1295
+ if (fullscreen) {
1296
+ QS('deskarea3x')['height'] = null;
1297
+ QS('deskarea3x')['max-height'] = null;
1298
+ QS('p14iframe')['height'] = null;
1299
+ QS('p14iframe')['max-height'] = null;
1300
+ } else {
1301
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1302
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1303
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1304
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1305
+ }
1306
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1307
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1308
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1363,7 +1370,7 @@
1370
1371
function toggleNightMode() {
1372
nightMode = !nightMode;
1366
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1373
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1374
putstore('_nightMode', nightMode?'1':'0');
1375
}
1376
@@ -5542,6 +5549,7 @@
5549
}
5550
deskAdjust();
5551
updateDesktopButtons();
5552
+ adjustPanels();
5553
}
5554
5555
function deskToggleFocus() {
views/translations/default_pt.handlebars
+14
-6
@@ -1139,7 +1139,7 @@
1139
QV('autoconnectbutton1', debugmode); // Desktop
1140
//QV('DeskClip', debugmode); // Clipboard feature, not completed so show in in debug mode only.
1141
1142
- if (nightMode) { QC('body').add('night'); }
1142
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; }
1143
toggleFullScreen();
1144
1145
// Setup page visuals
@@ -1282,8 +1282,6 @@
1282
var xh2 = (uiMode > 1)?24:0;
1283
QS('p3users')['max-height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1284
QS('p3events')['height'] = 'calc(100vh - ' + (50 + xh) + 'px)'; // 124
1285
- QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1286
- QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1285
QS('p5filetable')['height'] = 'calc(100vh - ' + (99 + xh) + 'px)'; // 160
1286
QS('p13filetable')['height'] = 'calc(100vh - ' + (127 + xh + xh2) + 'px)'; // 124
1287
QS('serverMainStats')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)'; // 110
@@ -1294,8 +1292,17 @@
1292
QS('p15agentConsole')['max-height'] = 'calc(100vh - ' + (84 + xh + xh2) + 'px)';
1293
QS('p15agentConsoleText')['height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1294
QS('p15agentConsoleText')['max-height'] = 'calc(100vh - ' + (81 + xh + xh2) + 'px)';
1297
- QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1298
- QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1295
+ if (fullscreen) {
1296
+ QS('deskarea3x')['height'] = null;
1297
+ QS('deskarea3x')['max-height'] = null;
1298
+ QS('p14iframe')['height'] = null;
1299
+ QS('p14iframe')['max-height'] = null;
1300
+ } else {
1301
+ QS('deskarea3x')['height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1302
+ QS('deskarea3x')['max-height'] = 'calc(100vh - ' + (74 + xh + xh2) + 'px)';
1303
+ QS('p14iframe')['height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1304
+ QS('p14iframe')['max-height'] = 'calc(100vh - ' + (23 + xh + xh2) + 'px)';
1305
+ }
1306
QS('p43iframe')['height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1307
QS('p43iframe')['max-height'] = 'calc(100vh - ' + (84 + xh) + 'px)';
1308
QS('p16events')['height'] = 'calc(100vh - ' + (50 + xh + xh2) + 'px)';
@@ -1363,7 +1370,7 @@
1370
1371
function toggleNightMode() {
1372
nightMode = !nightMode;
1366
- if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
1373
+ if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; }
1374
putstore('_nightMode', nightMode?'1':'0');
1375
}
1376
@@ -5542,6 +5549,7 @@
5549
}
5550
deskAdjust();
5551
updateDesktopButtons();
5552
+ adjustPanels();
5553
}
5554
5555
function deskToggleFocus() {