mirror of
https://github.com/sbender9/signalk-raymarine-autopilot.git
synced 2020-11-18 19:37:28 -08:00
feature: add more display modes in GUI (#9)
This commit is contained in:
parent
fcbd729cdf
commit
e473d2ff55
BIN
GUI-help.png
BIN
GUI-help.png
Binary file not shown.
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 215 KiB |
@ -185,6 +185,11 @@ html {
|
|||||||
left: 140px;
|
left: 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#typeValIcon {
|
||||||
|
left: 48px;
|
||||||
|
width: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
#sendIcon {
|
#sendIcon {
|
||||||
left: 120px;
|
left: 120px;
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAyklEQVQoz8XOIU4DARCF4Y+iIO02IeAxCERFRRWFW+DgAAjugK8gNXCFUlQNWHQNBDD1yGZTgmw3g9jNssmGSphR8+bN/I8/rc2aMnDkaf3RQAhX6ywtUyFMtX6z7IFDB5WpBvp0Xk5nvurQxEwIC89eLIQwk1Qtu2i7lYmiV260i00BmuuBpr5LF/qaoGeeQxPvwsrYsUb5u+HEnUx4y6FbxgUk9eDa0KO0UEa2f1J1TSzLRCEsTXTz5UYl/o5THfsyH17dS/1PfQMplUPMhfqpHwAAAABJRU5ErkJggg==);
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAyklEQVQoz8XOIU4DARCF4Y+iIO02IeAxCERFRRWFW+DgAAjugK8gNXCFUlQNWHQNBDD1yGZTgmw3g9jNssmGSphR8+bN/I8/rc2aMnDkaf3RQAhX6ywtUyFMtX6z7IFDB5WpBvp0Xk5nvurQxEwIC89eLIQwk1Qtu2i7lYmiV260i00BmuuBpr5LF/qaoGeeQxPvwsrYsUb5u+HEnUx4y6FbxgUk9eDa0KO0UEa2f1J1TSzLRCEsTXTz5UYl/o5THfsyH17dS/1PfQMplUPMhfqpHwAAAABJRU5ErkJggg==);
|
||||||
@ -197,7 +202,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#errorIcon {
|
#errorIcon {
|
||||||
left: 80px;
|
left: 82px;
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAwElEQVR4AZXRtXUDMBQAwOvDjaEMwwBhWiE0RKiy9wiWYc4W3iSoGcKRS71n9qmU9FH7+izbtWVZr5pyHsR0PMiqMOjdp2MDYMCxT++GSfKCYILEhOBVHoAbf+YA+/YBc/5cA/T4dwagpATg1L8eYFU0XfPRlGgDKIi6az7qFhWAoqgTlTXRKSoC61I6gJRuPRV+XjPSWSqcK/9mVD6a8e+qcphjSMYEQZZkyJvKtTwbUiHvsdmCgV7Ldu1a1qtdZTafSCFQvo25AAAAAElFTkSuQmCC);
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAwElEQVR4AZXRtXUDMBQAwOvDjaEMwwBhWiE0RKiy9wiWYc4W3iSoGcKRS71n9qmU9FH7+izbtWVZr5pyHsR0PMiqMOjdp2MDYMCxT++GSfKCYILEhOBVHoAbf+YA+/YBc/5cA/T4dwagpATg1L8eYFU0XfPRlGgDKIi6az7qFhWAoqgTlTXRKSoC61I6gJRuPRV+XjPSWSqcK/9mVD6a8e+qcphjSMYEQZZkyJvKtTwbUiHvsdmCgV7Ldu1a1qtdZTafSCFQvo25AAAAAElFTkSuQmCC);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +220,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#countDownCounter {
|
#countDownCounter {
|
||||||
left: 36px;
|
left: 34px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,6 +234,7 @@ html {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pilotStatus {
|
#pilotStatus {
|
||||||
@ -242,6 +248,7 @@ html {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.messageScreen {
|
.messageScreen {
|
||||||
|
@ -31,7 +31,8 @@
|
|||||||
<div class="icon18x18" id="notificationCounter">
|
<div class="icon18x18" id="notificationCounter">
|
||||||
<div id="notificationCounterText">88</div>
|
<div id="notificationCounterText">88</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="icon18x18" id="countDownCounter">8</div>
|
<div class="icon18x18" id="countDownCounter">5</div>
|
||||||
|
<div class="icon18x18" id="typeValIcon"></div>
|
||||||
<div class="icon18x18" id="errorIcon"></div>
|
<div class="icon18x18" id="errorIcon"></div>
|
||||||
<div class="icon18x18" id="receiveIcon"></div>
|
<div class="icon18x18" id="receiveIcon"></div>
|
||||||
<div class="icon18x18" id="sendIcon"></div>
|
<div class="icon18x18" id="sendIcon"></div>
|
||||||
@ -39,8 +40,8 @@
|
|||||||
<div class="icon18x18" id="powerOnIcon"></div>
|
<div class="icon18x18" id="powerOnIcon"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="bottomBarIcon"> Loading Ray Remote...</div>
|
<div id="bottomBarIcon"> Loading Ray Remote...</div>
|
||||||
<div id="headingValue"></div>
|
<div id="headingValue" onClick="changePreferedDisplayMode();"></div>
|
||||||
<div id="pilotStatus"></div>
|
<div id="pilotStatus" onClick="changePreferedDisplayMode();"></div>
|
||||||
<div class="messageScreen" id="silenceScreen">
|
<div class="messageScreen" id="silenceScreen">
|
||||||
<div id="silenceScreenText"></div>
|
<div id="silenceScreenText"></div>
|
||||||
<div id="silenceScreenMute"> Mute alarm press:</div>
|
<div id="silenceScreenMute"> Mute alarm press:</div>
|
||||||
|
@ -36,7 +36,6 @@ var touchEnd = function(event) {
|
|||||||
|
|
||||||
var ws = null;
|
var ws = null;
|
||||||
var handlePilotStatusTimeout = null;
|
var handlePilotStatusTimeout = null;
|
||||||
var handleHeadindValueTimeout = null;
|
|
||||||
var handleReceiveTimeout = null;
|
var handleReceiveTimeout = null;
|
||||||
var handleSilenceScreenTimeout = null;
|
var handleSilenceScreenTimeout = null;
|
||||||
var handleConfirmActionTimeout = null;
|
var handleConfirmActionTimeout = null;
|
||||||
@ -44,7 +43,7 @@ var handleCountDownCounterTimeout = null;
|
|||||||
var connected = false;
|
var connected = false;
|
||||||
var reconnect = true;
|
var reconnect = true;
|
||||||
const timeoutReconnect = 2000;
|
const timeoutReconnect = 2000;
|
||||||
const timeoutValue = 2000;
|
const timeoutValue = 3000;
|
||||||
const timeoutBlink = 500;
|
const timeoutBlink = 500;
|
||||||
const countDownDefault = 5;
|
const countDownDefault = 5;
|
||||||
const noDataMessage = '-- -- -- --';
|
const noDataMessage = '-- -- -- --';
|
||||||
@ -52,6 +51,7 @@ var pilotStatusDiv = undefined;
|
|||||||
var headingValueDiv = undefined;
|
var headingValueDiv = undefined;
|
||||||
var receiveIconDiv = undefined;
|
var receiveIconDiv = undefined;
|
||||||
var sendIconDiv = undefined;
|
var sendIconDiv = undefined;
|
||||||
|
var typeValIconDiv = undefined;
|
||||||
var errorIconDiv = undefined;
|
var errorIconDiv = undefined;
|
||||||
var countDownCounterDiv = undefined;
|
var countDownCounterDiv = undefined;
|
||||||
var powerOnIconDiv = undefined;
|
var powerOnIconDiv = undefined;
|
||||||
@ -67,11 +67,46 @@ var actionToBeConfirmed = '';
|
|||||||
var countDownValue = 0;
|
var countDownValue = 0;
|
||||||
var pilotStatus = '';
|
var pilotStatus = '';
|
||||||
|
|
||||||
|
var displayByPathParams = {
|
||||||
|
'navigation.headingMagnetic': {
|
||||||
|
handleTimeout: null,
|
||||||
|
typeVal: 'Mag',
|
||||||
|
usage: ['wind', 'route', 'auto', 'standby'],
|
||||||
|
value: ''
|
||||||
|
},
|
||||||
|
'navigation.headingTrue': {
|
||||||
|
handleTimeout: null,
|
||||||
|
typeVal: 'True',
|
||||||
|
usage: ['wind', 'route', 'auto', 'standby'],
|
||||||
|
value: ''
|
||||||
|
},
|
||||||
|
'environment.wind.angleApparent': {
|
||||||
|
handleTimeout: null,
|
||||||
|
typeVal: 'AWA',
|
||||||
|
usage: ['wind'],
|
||||||
|
value: ''
|
||||||
|
},
|
||||||
|
'environment.wind.angleTrueWater': {
|
||||||
|
handleTimeout: null,
|
||||||
|
typeVal: 'TWA',
|
||||||
|
usage: ['wind'],
|
||||||
|
value: ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var preferedDisplayMode = {
|
||||||
|
wind: 'environment.wind.angleApparent',
|
||||||
|
route: 'navigation.headingMagnetic',
|
||||||
|
auto: 'navigation.headingMagnetic',
|
||||||
|
standby: 'navigation.headingMagnetic'
|
||||||
|
}
|
||||||
|
|
||||||
var startUpRayRemote = function() {
|
var startUpRayRemote = function() {
|
||||||
pilotStatusDiv = document.getElementById('pilotStatus');
|
pilotStatusDiv = document.getElementById('pilotStatus');
|
||||||
headingValueDiv = document.getElementById('headingValue');
|
headingValueDiv = document.getElementById('headingValue');
|
||||||
receiveIconDiv = document.getElementById('receiveIcon');
|
receiveIconDiv = document.getElementById('receiveIcon');
|
||||||
sendIconDiv = document.getElementById('sendIcon');
|
sendIconDiv = document.getElementById('sendIcon');
|
||||||
|
typeValIconDiv = document.getElementById('typeValIcon');
|
||||||
errorIconDiv = document.getElementById('errorIcon');
|
errorIconDiv = document.getElementById('errorIcon');
|
||||||
powerOnIconDiv = document.getElementById('powerOnIcon');
|
powerOnIconDiv = document.getElementById('powerOnIcon');
|
||||||
powerOffIconDiv = document.getElementById('powerOffIcon');
|
powerOffIconDiv = document.getElementById('powerOffIcon');
|
||||||
@ -82,8 +117,20 @@ var startUpRayRemote = function() {
|
|||||||
silenceScreenTextDiv = document.getElementById('silenceScreenText');
|
silenceScreenTextDiv = document.getElementById('silenceScreenText');
|
||||||
confirmScreenDiv = document.getElementById('confirmScreen');
|
confirmScreenDiv = document.getElementById('confirmScreen');
|
||||||
countDownCounterDiv = document.getElementById('countDownCounter');
|
countDownCounterDiv = document.getElementById('countDownCounter');
|
||||||
setPilotStatus(noDataMessage);
|
setPilotStatus('');
|
||||||
setHeadindValue(noDataMessage);
|
setHeadindValue('');
|
||||||
|
var savedPreferedDisplayModeJSON = localStorage.getItem('signalk-raymarine-autopilot');
|
||||||
|
var savedPreferedDisplayMode = savedPreferedDisplayModeJSON && JSON.parse(savedPreferedDisplayModeJSON);
|
||||||
|
if (savedPreferedDisplayMode === null) {savedPreferedDisplayMode = {};}
|
||||||
|
savedPreferedDisplayMode = (typeof savedPreferedDisplayMode.preferedDisplayMode !== 'undefined') ? savedPreferedDisplayMode.preferedDisplayMode : {};
|
||||||
|
Object.keys(preferedDisplayMode).map( pilotMode => {
|
||||||
|
var pathForPilotMode = savedPreferedDisplayMode[pilotMode];
|
||||||
|
if ((typeof pathForPilotMode !== 'undefined') &&
|
||||||
|
(typeof displayByPathParams[pathForPilotMode] !== 'undefined') &&
|
||||||
|
displayByPathParams[pathForPilotMode].usage.includes(pilotMode)) {
|
||||||
|
preferedDisplayMode[pilotMode] = pathForPilotMode;
|
||||||
|
}
|
||||||
|
})
|
||||||
// demo(); return;
|
// demo(); return;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
receiveIconDiv.style.visibility = 'hidden';
|
receiveIconDiv.style.visibility = 'hidden';
|
||||||
@ -92,13 +139,16 @@ var startUpRayRemote = function() {
|
|||||||
bottomBarIconDiv.style.visibility = 'hidden';
|
bottomBarIconDiv.style.visibility = 'hidden';
|
||||||
notificationCounterDiv.style.visibility = 'hidden';
|
notificationCounterDiv.style.visibility = 'hidden';
|
||||||
countDownCounterDiv.innerHTML = '';
|
countDownCounterDiv.innerHTML = '';
|
||||||
|
typeValIconDiv.innerHTML = '';
|
||||||
wsConnect();
|
wsConnect();
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
var demo = function () {
|
var demo = function () {
|
||||||
setHeadindValue(100);
|
var headingPath = 'environment.wind.angleTrueWater';
|
||||||
setPilotStatus('WIND');
|
setPilotStatus('wind');
|
||||||
|
buildHeadindValue( headingPath, 1.74);
|
||||||
|
clearTimeout(displayByPathParams[headingPath].handleTimeout);
|
||||||
setNotificationMessage({"path":"notifications.autopilot.PilotWarningWindShift","value":{"state":"alarm","message":"Pilot Warning Wind Shift"}});
|
setNotificationMessage({"path":"notifications.autopilot.PilotWarningWindShift","value":{"state":"alarm","message":"Pilot Warning Wind Shift"}});
|
||||||
powerOffIconDiv.style.visibility = 'hidden';
|
powerOffIconDiv.style.visibility = 'hidden';
|
||||||
powerOnIconDiv.style.visibility = 'visible';
|
powerOnIconDiv.style.visibility = 'visible';
|
||||||
@ -234,6 +284,24 @@ var getNextNotification = function(skPath) {
|
|||||||
return newSkPathToAck;
|
return newSkPathToAck;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var changePreferedDisplayMode = function() {
|
||||||
|
const currentPilotStatus = pilotStatus;
|
||||||
|
const currentPreferedDisplayMode = preferedDisplayMode[currentPilotStatus];
|
||||||
|
var pathForPilotStatus = [];
|
||||||
|
if (typeof currentPreferedDisplayMode === 'undefined') {return null}
|
||||||
|
for (let [key, value] of Object.entries(displayByPathParams)) {
|
||||||
|
if ((typeof value.usage === 'object') && value.usage.includes(currentPilotStatus)) {
|
||||||
|
pathForPilotStatus.push(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const currentIndex = pathForPilotStatus.indexOf(currentPreferedDisplayMode);
|
||||||
|
const nextIndex = (currentIndex + 1) % pathForPilotStatus.length;
|
||||||
|
preferedDisplayMode[currentPilotStatus] = pathForPilotStatus[nextIndex];
|
||||||
|
localStorage.setItem('signalk-raymarine-autopilot', JSON.stringify({preferedDisplayMode: preferedDisplayMode}));
|
||||||
|
setHeadindValue(displayByPathParams[preferedDisplayMode[currentPilotStatus]].value);
|
||||||
|
typeValIconDiv.innerHTML = displayByPathParams[preferedDisplayMode[currentPilotStatus]].typeVal;
|
||||||
|
}
|
||||||
|
|
||||||
var confirmTack = function(cmd) {
|
var confirmTack = function(cmd) {
|
||||||
var message = 'Repeat same key<br>to confirm<br>tack to ';
|
var message = 'Repeat same key<br>to confirm<br>tack to ';
|
||||||
if (cmd === 'tackToPort') {
|
if (cmd === 'tackToPort') {
|
||||||
@ -303,6 +371,21 @@ var wsConnect = function() {
|
|||||||
"format": "delta",
|
"format": "delta",
|
||||||
"minPeriod": 900
|
"minPeriod": 900
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "navigation.headingTrue",
|
||||||
|
"format": "delta",
|
||||||
|
"minPeriod": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "environment.wind.angleApparent",
|
||||||
|
"format": "delta",
|
||||||
|
"minPeriod": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "environment.wind.angleTrueWater",
|
||||||
|
"format": "delta",
|
||||||
|
"minPeriod": 900
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "notifications.autopilot.*",
|
"path": "notifications.autopilot.*",
|
||||||
"format": "delta",
|
"format": "delta",
|
||||||
@ -312,8 +395,6 @@ var wsConnect = function() {
|
|||||||
};
|
};
|
||||||
var subscriptionMessage = JSON.stringify(subscriptionObject);
|
var subscriptionMessage = JSON.stringify(subscriptionObject);
|
||||||
ws.send(subscriptionMessage);
|
ws.send(subscriptionMessage);
|
||||||
handlePilotStatusTimeout = setTimeout(() => {setPilotStatus(noDataMessage)}, timeoutValue);
|
|
||||||
handleHeadindValueTimeout = setTimeout(() => {setHeadindValue(noDataMessage)}, timeoutValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ws.onclose = function() {
|
ws.onclose = function() {
|
||||||
@ -356,14 +437,15 @@ var dispatchMessages = function(jsonData) {
|
|||||||
update.values.forEach((value) => {
|
update.values.forEach((value) => {
|
||||||
if (value.path === "steering.autopilot.state") {
|
if (value.path === "steering.autopilot.state") {
|
||||||
clearTimeout(handlePilotStatusTimeout);
|
clearTimeout(handlePilotStatusTimeout);
|
||||||
handlePilotStatusTimeout = setTimeout(() => {setPilotStatus(noDataMessage)}, timeoutValue);
|
handlePilotStatusTimeout = setTimeout(() => {
|
||||||
|
console.log('timeout:'+pilotStatus);
|
||||||
|
setPilotStatus('');
|
||||||
|
}, timeoutValue);
|
||||||
setPilotStatus(value.value);
|
setPilotStatus(value.value);
|
||||||
} else if (value.path === "navigation.headingMagnetic") {
|
|
||||||
clearTimeout(handleHeadindValueTimeout);
|
|
||||||
handleHeadindValueTimeout = setTimeout(() => {setHeadindValue(noDataMessage)}, timeoutValue);
|
|
||||||
setHeadindValue(Math.round(value.value * (180/Math.PI)));
|
|
||||||
} else if (value.path.startsWith("notifications.autopilot")) {
|
} else if (value.path.startsWith("notifications.autopilot")) {
|
||||||
setNotificationMessage(value);
|
setNotificationMessage(value);
|
||||||
|
} else {
|
||||||
|
buildHeadindValue(value.path, value.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -371,19 +453,46 @@ var dispatchMessages = function(jsonData) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var buildHeadindValue = function(path, value) {
|
||||||
|
var displayByPathParam = displayByPathParams[path];
|
||||||
|
|
||||||
|
if (typeof displayByPathParam === 'undefined') {
|
||||||
|
console.log('unknown path:' + path);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
value = Math.round(value * (180/Math.PI));
|
||||||
|
displayByPathParam.value = ((typeof value === 'undefined') || isNaN(value)) ? noDataMessage : ' ' + value + '°';
|
||||||
|
clearTimeout(displayByPathParam.handleTimeout);
|
||||||
|
displayByPathParam.handleTimeout = setTimeout(() => {
|
||||||
|
displayByPathParams[path].value = noDataMessage;
|
||||||
|
console.log('timeout:{'+pilotStatus+'}['+path+']'+displayByPathParams[path].value);
|
||||||
|
if (preferedDisplayMode[pilotStatus] == path) {
|
||||||
|
setHeadindValue(displayByPathParams[path].value);
|
||||||
|
}
|
||||||
|
}, timeoutValue, path);
|
||||||
|
if (preferedDisplayMode[pilotStatus] == path) {
|
||||||
|
if (typeValIconDiv.innerHTML !== displayByPathParam.typeVal) {
|
||||||
|
typeValIconDiv.innerHTML = displayByPathParam.typeVal;
|
||||||
|
}
|
||||||
|
setHeadindValue(displayByPathParams[path].value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var setHeadindValue = function(value) {
|
var setHeadindValue = function(value) {
|
||||||
if (value !== '') {
|
if (pilotStatus === '') { value = ''}
|
||||||
value = ((typeof value === 'undefined') || isNaN(value)) ? noDataMessage : 'Mag:' + value + '°';
|
headingValueDiv.innerHTML = ((typeof value === 'undefined') || (value === '')) ? noDataMessage : value;
|
||||||
}
|
|
||||||
headingValueDiv.innerHTML = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var setPilotStatus = function(value) {
|
var setPilotStatus = function(value) {
|
||||||
if (typeof value === 'undefined') {
|
if (typeof value === 'undefined') {
|
||||||
value = noDataMessage;
|
value = '';
|
||||||
}
|
}
|
||||||
pilotStatusDiv.innerHTML = value;
|
|
||||||
pilotStatus = value;
|
pilotStatus = value;
|
||||||
|
if (value === '') {
|
||||||
|
setHeadindValue(noDataMessage);
|
||||||
|
pilotStatusDiv.innerHTML = noDataMessage;
|
||||||
|
} else { pilotStatusDiv.innerHTML = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
var setNotificationMessage = function(value) {
|
var setNotificationMessage = function(value) {
|
||||||
@ -448,11 +557,15 @@ var cleanOnClosed = function() {
|
|||||||
notificationCounterDiv.style.visibility = 'hidden';
|
notificationCounterDiv.style.visibility = 'hidden';
|
||||||
silenceScreenDiv.style.visibility = 'hidden';
|
silenceScreenDiv.style.visibility = 'hidden';
|
||||||
notificationCounterTextDiv.innerHTML = '';
|
notificationCounterTextDiv.innerHTML = '';
|
||||||
|
typeValIconDiv.innerHTML = '';
|
||||||
notificationsArray = {};
|
notificationsArray = {};
|
||||||
skPathToAck = '';
|
skPathToAck = '';
|
||||||
actionToBeConfirmed = '';
|
actionToBeConfirmed = '';
|
||||||
pilotStatus = '';
|
pilotStatus = '';
|
||||||
clearTimeout(handleHeadindValueTimeout);
|
Object.keys(displayByPathParams).map( path => {
|
||||||
|
clearTimeout(displayByPathParams[path].handleTimeout);
|
||||||
|
displayByPathParams[path].value = '';
|
||||||
|
});
|
||||||
clearTimeout(handlePilotStatusTimeout);
|
clearTimeout(handlePilotStatusTimeout);
|
||||||
setPilotStatus('');
|
setPilotStatus('');
|
||||||
setHeadindValue('');
|
setHeadindValue('');
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 33 KiB |
Loading…
x
Reference in New Issue
Block a user