mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Guest desktop sharing with time range.
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
var StatusStrs = ["Disconnected", "Connecting...", "Setup...", "Connected", "Intel® AMT Connected"];
|
||||
var webPageFullScreen = false;
|
||||
var expire = '{{{expire}}}';
|
||||
if (expire != '') { QH('p11power', format("Expires at {0}", printTime(new Date(parseInt(expire))))) }
|
||||
if (expire != '') { QH('p11power', printFlexDateTime(new Date(parseInt(expire)))); }
|
||||
|
||||
function start() {
|
||||
window.onresize = deskAdjust;
|
||||
@@ -1161,6 +1161,7 @@
|
||||
function printDate(d) { return d.toLocaleDateString(urlargs.locale); }
|
||||
function printTime(d) { return d.toLocaleTimeString(urlargs.locale); }
|
||||
function printDateTime(d) { return d.toLocaleString(urlargs.locale); }
|
||||
function printFlexDateTime(d) { if (printDate(new Date()) == printDate(d)) { return format("Expires at {0}", printTime(d)); } else { return format("Expires {0}", printDateTime(d)); } }
|
||||
|
||||
start();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user