#10: use the system name as page headline and title

This commit is contained in:
wellenvogel 2021-12-02 17:52:51 +01:00
parent c837d9b028
commit b01dabf8cc
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@
</head>
<body>
<div class="main">
<h1>NMEA 2000 Gateway </h1>
<h1 id="headline">NMEA 2000 Gateway </h1>
<div class="row">
<span class="label">connected</span>
<span class="value" id="connected"></span>

View File

@ -98,6 +98,12 @@ function resetForm(ev) {
el.dispatchEvent(changeEvent);
}
}
let name=jsonData.systemName;
if (name){
let el=document.getElementById('headline');
if (el) el.textContent=name;
document.title=name;
}
});
}
function checkMaxClients(v) {