Hide or customize "Node-RED Map All The Things" Header (#188)
Add command listening to topbar logo
This commit is contained in:
parent
e54b4dbef5
commit
f62a8e9445
@ -80,7 +80,7 @@
|
||||
|
||||
<body>
|
||||
<div id="topbar">
|
||||
<a href="https://nodered.org"><img src="images/node-red.png" width="60" height="24" alt="NRed"/></a>
|
||||
<a href="https://nodered.org"><img id="toplogo" src="images/node-red.png" width="60" height="24" alt="NRed"/></a>
|
||||
<span class="topbar" id="topwords"> Node-RED - map all the things</span>
|
||||
</div>
|
||||
<div id="results">
|
||||
|
@ -2066,6 +2066,11 @@ function doCommand(cmd) {
|
||||
document.getElementById("topwords").innerText = cmd.toptitle;
|
||||
}
|
||||
}
|
||||
if (cmd.hasOwnProperty("toplogo")) {
|
||||
if (!inIframe ) {
|
||||
document.getElementById("toplogo").src = cmd.toplogo;
|
||||
}
|
||||
}
|
||||
if (cmd.hasOwnProperty("clear")) {
|
||||
doTidyUp(cmd.clear);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user