#10: use the system name as page headline and title
This commit is contained in:
parent
c837d9b028
commit
b01dabf8cc
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue